- Keyboard shortcuts in Terminal on Mac
- Work with Terminal windows and tabs
- Edit a command line
- Select and find text in a Terminal window
- Work with marks and bookmarks
- Other shortcuts
- Установите системное время в Mac OS X из командной строки
- Установите Системную дату в Mac OS X из командной строки с помощью Центрального сервера времени
- Установка даты системы Mac вручную командой терминала
- Установите системное время в Mac OS X из командной строки 2021
- Mac OS X Welcome Videos
- Установите системную дату в Mac OS X из командной строки с центральным сервером времени
- Установите системную дату Mac вручную с помощью команды терминала
- Changing system date from Terminal – OS X recovery
- Related
- WordPress on Digital Ocean’s Managed MySQL Databases
- Server load graph for StatusBoard with PHP
- Tibber – the Electric power company for the future
- Set the System Time in Mac OS X from the Command Line
- Set System Date in Mac OS X from Command Line with a Central Time Server
- Set the Mac System Date Manually by Terminal Command
Keyboard shortcuts in Terminal on Mac
Use these shortcuts to save time when using Terminal.
Work with Terminal windows and tabs
New window with same command
New tab with same command
Show or hide tab bar
Show all tabs or exit tab overview
New remote connection
Show or hide Inspector
Edit background colour
Make fonts bigger
Make fonts smaller
Split window into two panes
Close split pane
Close other tabs
Scroll to bottom
Edit a command line
Reposition the insertion point
Press and hold the Option key while moving the pointer to a new insertion point
Move the insertion point to the beginning of the line
Move the insertion point to the end of the line
Move the insertion point forwards one character
Move the insertion point backwards one character
Move the insertion point forwards one word
Move the insertion point backwards one word
Delete the line
Delete to the end of the line
Delete forwards to the end of the word
Option-D (available when Use Option as Meta key is selected)
Delete backwards to the beginning of the word
Delete one character
Forward-delete one character
Forward Delete (or use Fn-Delete)
Transpose two characters
Select and find text in a Terminal window
Select a complete file path
Press and hold the Shift and Command keys and double-click the path
Select a complete line of text
Triple-click the line
Double-click the word
Press and hold the Shift and Command keys and double-click the URL
Select a rectangular block
Press and hold the Option key and drag to select text
Copy without background colour
Copy plain text
Paste the selection
Paste escaped text
Paste escaped selection
Find using the selected text
Jump to the selected text
Open the character viewer
Work with marks and bookmarks
Mark as bookmark
Mark line and send return
Send return without marking
Insert bookmark with name
Jump to previous mark
Jump to next mark
Jump to previous bookmark
Jump to next bookmark
Clear to previous mark
Clear to previous bookmark
Select between marks
Other shortcuts
Enter or exit full screen
Show or hide colours
Open Terminal preferences
Typing Command-Full Stop (.) is equivalent to entering Control-C on the command line
Soft reset terminal emulator state
Hard reset terminal emulator state
Hold down the Command key and double-click the URL
Add the complete path to a file
Drag the file from the Finder into the Terminal window
Export selected text as
Reverse search command history
Toggle “Allow Mouse Reporting” option
Toggle “Use Option as Meta Key” option
Show alternate screen
Hide alternate screen
Open man page for selection
Search man page index for selection
Complete directory or file name
On a command line, type one or more characters, then press Tab
Display a list of possible directory or file name completions
On a command line, type one or more characters, then press Tab twice
Источник
Установите системное время в Mac OS X из командной строки
Часы в Mac OS X автоматически устанавливаются по умолчанию, но если вы хотите установить точное время или ищете решение командной строки для установки системного времени, вы можете сделать это с помощью инструмента ntpdate или стандартной «даты», команда.
Установите Системную дату в Mac OS X из командной строки с помощью Центрального сервера времени
Для ntpdate, который устанавливает дату и время на основе времени с центрального сервера, доступного через Интернет, вы должны указать его либо на серверах времени Apple, либо в pool.ntp.org следующим образом, чтобы получить точное время:
sudo ntpdate -u time.apple.com
Введите пароль администратора, когда его спросят, и вы скоро увидите что-то вроде следующего:
4 июл 14:30:11 ntpdate [28267]: настроить сервер времени 17.151.16.14 offset 0.000336 sec
Смещение в конце позволяет вам узнать, как расходятся системные часы с вновь установленным временем. В этом примере системные часы были выключены смехотворно малой долей секунды.
Обычно вам не нужно это делать, если вы используете функцию «Установить дату и время автоматически» в настройках системы даты и времени, хотя, установив часы через командную строку, вы можете быть уверены, что каждая машина в сети показывает точный в то же время.
Установка даты системы Mac вручную командой терминала
Другой подход — установить дату вручную из командной строки, используя командную строку «date», где дата находится в формате [mm] [dd] HH] MM [yy], который является месяцем Date Hour Minute Year без какого-либо разделения , Это выглядит примерно так:
В этом примере он установил бы дату «12 июля 2018 года в 12:23».
Вы можете узнать больше об установке даты с датой -help, которая также указывает, что вы даже можете установить секунды, если хотите.
Титк «даты» — это то, что вы хотели бы использовать, если у Mac, о котором идет речь, нет доступа к Интернету по той или иной причине.
Источник
Установите системное время в Mac OS X из командной строки 2021
Mac OS X Welcome Videos
Часы в Mac OS X устанавливаются автоматически по умолчанию, но если вы хотите установить точное время или ищете решение для командной строки, чтобы установить системное время, вы можете сделать это с помощью инструмента ntpdate или стандартной даты. команда.
Установите системную дату в Mac OS X из командной строки с центральным сервером времени
Для ntpdate, который устанавливает дату и время на основе времени с центрального сервера, доступ к которому осуществляется через Интернет, вы можете указать его либо на серверах времени Apple, либо на pool.ntp.org, чтобы получить точное время:
sudo ntpdate -u time.apple.com
При появлении запроса введите пароль администратора, и вскоре вы увидите что-то вроде следующего:
4 Jul 14:30:11 ntpdate: adjust time server 17.151.16.14 offset 0.000336 sec
Смещение в конце позволяет узнать, насколько отличались системные часы от вновь установленного времени. В этом примере системные часы были отключены на смехотворно малую долю секунды.
Как правило, вам не нужно делать это, если вы используете функцию «Установить дату и время автоматически» в системных настройках «Дата и время», хотя, устанавливая часы в командной строке, вы можете быть уверены, что на каждом компьютере в сети отображается точное в то же время.
Установите системную дату Mac вручную с помощью команды терминала
Другой подход состоит в том, чтобы установить дату вручную из командной строки, используя командную строку «date», где date в формате ЧЧ] MM, то есть месяц Date Hour Minute Year без разделения. Это выглядит примерно так:
Для этого примера будет установлена дата «12 июля 2018 года в 12:23».
Вы можете узнать больше об установке даты с помощью даты –help, которая также указывает, что вы можете даже установить секунды, если хотите.
Трюк с датой — это то, что вы хотели бы использовать, если у рассматриваемого Mac нет доступа в Интернет по той или иной причине.
Источник
Changing system date from Terminal – OS X recovery
When you’re booting your Mac from the recovery partition and are planning to reinstall OS X, you might be met by the following message:
An error occurred while preparing the installation. Try running again
Now, if you haven’t used your Mac for a while, the error might be caused by an incorrect system date setting. You can check this by going to utilities and opening the terminal. Once in the terminal enter the following command and hit return/enter:
The result of this command will be the date that the system currently has been set to. For some reason, it might have been reset to 2001, in which case we need to set it to the right date. To do this, we enter a new command. This command will be entered as follows:
Every bracket should be replaced with a two-digit number based on UTC time. Below you see what the command should be for your current time and date – . To avoid trouble with timezones, we will use UTC time instead (). Which means, you can just enter it exactly like this:
Enter the command and hit return. You can then check if it was set correctly by running the first command again. If the date was wrong, it was likely that which caused the error, and after you quit the terminal it should be able to install OS X just fine.
Buying a Tesla? Use my referral link at the purchase of your new Model 3, S or X and get 1500km / 1000mi of free supercharging! Get free supercharging
Related
WordPress on Digital Ocean’s Managed MySQL Databases
Earlier this year Digital Ocean launched Managed Databases. At that time, only PostgreSQL was made available, and now MySQL and Redis have finally landed as well. I have now done some experimenting with this service, and here are my first impressions. In short; Digital Ocean’s Managed Databases allow you set…
Server load graph for StatusBoard with PHP
Soon after the launch of StatusBoard I published a short example of how the app could be used to display server statistics. After a lot of feedback it seems that what was of most interest to readers was what wasn’t in the post, the graph that displays historic server load…
Tibber – the Electric power company for the future
Electric power companies, in general, are pretty much the same. Tibber however, is unlike any electricity company I had seen before. They try to utilise the data we get from smart devices, which they also sell, to save electricity, money and the environment, as well as improving comfort. It’s a…
I’m a webdeveloper based in Oslo, Norway. I currently work with web development at Nettmaker.
I would like to change the world, but they won’t give me the source…
Источник
Set the System Time in Mac OS X from the Command Line
The clock in Mac OS X sets itself automatically by default, but if you want to set the precise time or are looking for a command line solution to set system time, you can do so with a tool called ntpdate, or the standard ‘date’ command.
Set System Date in Mac OS X from Command Line with a Central Time Server
For ntpdate, which sets the date and time based on the time from a central server accessed via the internet, you’d want to point it either at Apple’s time servers or pool.ntp.org as follows to get the exact time:
sudo ntpdate -u time.apple.com
Enter the admin password when asked, and you’ll soon see something like the following:
4 Jul 14:30:11 ntpdate[28267]: adjust time server 17.151.16.14 offset 0.000336 sec
The offset at the end lets you know how divergent the system clock was with the newly set time. In this example, the system clock was off by a laughably small fraction of a second.
You generally don’t need to do this if you use the “Set date and time automatically” feature within the Date & Time system preferences, though by setting clocks through the command line you could be sure that each machine on a network shows the exact same time.
Set the Mac System Date Manually by Terminal Command
Another approach is to set the date manually from the command line by using the “date” command string, where date is in the [mm][dd]HH]MM[yy] format, which is Month Date Hour Minute Year without any separation. This looks something like:
For that example, it would set the date as “July 12 2018 at 12:23”.
You can learn more about setting the date with date –help, which also specifies that you can even set the seconds if you want to.
The ‘date’ trick is what you’d want to use if the Mac in question does not have internet access for one reason or another.
Источник