Use of shortcut keys under mac

System command

1. Mac shortcut key for displaying hidden file commands: command + shift +.

2. Display the content of the file on the control panel: directly use the cat command for the file in the current directory: cat .ssh, or directly write the full path: cat ~/.ssh

3. Display all folders and file names under the current path: ls

4. Open folder command: open the folder under the current path: open.; Open the specified folder under the current folder: open folderName: open img; open the file under the current file: open filename. suffix

5. Command to create a folder under the current file: mkdir folder name

6. Create a file command in the current folder: touch filename

7. Delete folder command: rm folderName -rf -r means reverse recursion downwards -f means force

8. Delete file command: rm filename -f Note that filename needs to be suffixed, otherwise it cannot be deleted

 

 

Guess you like

Origin blog.csdn.net/tangxiujiang/article/details/109264003