1.Ctrl+Alt+t, Open the command line terminal, press again to open another
2.exit, Then press Enter to close the command line terminal
-
pwd, Print the path of the current state
-
lsTo view the files in the current directory,The blue one indicates a directory, which is a folder,White indicates normal files, Because Linux does not have a graphical interface in many cases, so it uses color to distinguish file types
-
ls -l(Add a space in the middle), look at the detailed information of the file, the file can show the detailed information such as creation time in the form of a list. The one beginning with d in the front indicates a folder, and the beginning with-is an ordinary file
-
Ctrl+l, Hide the historical information of the previous command line terminal and give a new screen
-
cd xxx, Open the xxx folder. You can also use cd xx to go back to the previous directory, orcd …。
-
touch xxx,Create a file
-
mkdir xxx, Create folder
-
rm xxxDelete ordinary files. Why can't I delete D1?
-
rm -r xxxYou can directly rm to delete ordinary files, and add -r to delete folders
-
Root directory (public area, generally cannot be used) ->Home directory->In your own world, store everything in your own home directory
13. cd, Go home automatically (home directory), no longer
14.sudo xxxxxxxx,Super user administrator rights, can be used in public areas
15.Tap automatic completion. There is Desktop in this directory. I just type cd De and press Tap, and it will be automatically completed. Or cd M+Tap, can also automatically complete
16. Record history command function, up and down arrows on the keyboard, adjustable.
17.dpkg -lTo view all software installed under Ubuntu
18.dpkg -s xxx, Check if a specific software is installed
19.sudo apt-get remove xxx, Uninstall a certain software
20.sudo apt-get install xxx, Install a certain software