当前位置:网站首页>Mac common shortcut key, MAC start FTP

Mac common shortcut key, MAC start FTP

2020-11-06 01:27:58 Elementary school students in IT field

Command + K Clear the screen

Command + T new label

Command + M minimize windows

Command +W Close the current tab

Command + S Save terminal output

Command + D Separate the current tab vertically

Command + Shift + D Separate the current tab horizontally

Command + shift + { or } towards the left / Switch the label to the right

Ctrl + d Delete a character , It's equivalent to the usual Delete key ( If the command line does not have all the characters , It's equivalent to exit; Processing multiple lines of standard input also means eof)
Ctrl + h Backspace to delete a character , It's equivalent to the usual Backspace key
Ctrl + u Delete the characters before the cursor to the beginning of the line
Ctrl + k Delete the characters before the cursor to the end of the line
Ctrl + c Cancel the command entered in the current line , amount to Ctrl + Break
Ctrl + a Move the cursor to the beginning of the line (Ahead of line), It's equivalent to the usual Home key
Ctrl + e Move the cursor to the end of the line (End of line)
Ctrl + f Cursor forward (Forward) Move a character position
Ctrl + b Cursor back (Backward) Move a character position
Ctrl + l Clear the screen , Equivalent to execution clear command
Ctrl + p Call up the previous command history (Previous) command , Equivalent to the usual up arrow
Ctrl + n Call up the next item in command history (Next) command , Equivalent to the usual up arrow
Ctrl + r Show : Sign prompt , Search related historical commands according to user input (reverse-i-search)

Second most commonly used shortcut key :
Alt + f Cursor forward (Forward) Move to next word
Alt + b Cursor back (Backward) Move to the previous word
Ctrl + w Delete the word from the front of the cursor to the current position (Word) The beginning of
Alt + d Delete from the cursor position to the end of the current word
Ctrl + y Paste the last deleted word

start-up ftp

start-up ftp service
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

close ftp service
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

Try installing more than once brew install lftp Has been an error , In the end, it was amended , Change to brew install lftp

Usage method :https://blog.csdn.net/monkeyduck/article/details/17006959
https://blog.csdn.net/sun_dangyang/article/details/81814270

mac Next switch users

In execution mac Get into root Time error .su:sorry, Later, the following method was used successfully .
The first form :
mac Next switch to root user

sudo -s   perhaps sudo su

Then follow the prompts to enter the password ; The user name shows sh-3.2#, there # To represent means to have root jurisdiction ,
At this time , Input again

su -

You can go in root user
If you want to in sh-3.2 Switch to the user directory directly , Then perform exit that will do
 Insert picture description here

then , What should we do if we want to switch to ordinary users ?

su - user name
(- And the user There is a space between the names )

 WeChat ID

版权声明
本文为[Elementary school students in IT field]所创,转载请带上原文链接,感谢