2. Linux basic commands

  Everything in linux is a file, there is no folder, only a directory, and a directory is also a kind of file

1. Some commonly used keys:

Switch the mouse cursor back from the virtual machine: Ctrl+Alt

Drag dialogs within Ubuntu: Alt key + left mouse button drag

Clear screen: Ctrl+L

End current input: Ctrl+C

2. Linux basic commands:

Display detailed information of all files in the root directory Command: ls -l /

Display all files in the root directory: ls /

View all languages ​​supported by the system: local

View all encoding types supported by the system: local -a

View current time: date

View files in the current directory: ls

View all files in the current directory including hidden files (files starting with .): ls -a

Create a directory named aa in the current directory: mkdir aa

Create a multi-level directory in the current directory: mkdir -p aa/bb/cc

Delete a directory named aa in the current directory: rmdir aa

Delete a file named b.txt in the current directory: rm b.txt

From the current directory to the user directory ~, switch to the desktop directory under the user directory ~/Desktop: cd desktop

Move the file 666.txt to the bb directory: mv 666.txt bb

Move the file 666.txt in the directory bb back to the desktop directory: mv bb/666.txt desktop

Create a new 1.txt file in the current directory (if there is already this file, just modify the last modification time of the file): touch 1.txt

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325254279&siteId=291194637