Summary of Ubuntu commonly used commands
1. How to switch Ubuntu to root user
sudo su or sudo -i
Log out of the root user
exit
2. mv: move files or folders
There are only four possibilities for moving files and folders:
- Move file to file (file rename)
- Move the file to the folder
- Move folder to folder (folder rename)
- Move the folder to the folder
- mv file name 1 file name 2 (file moved to file (file rename))

- mv file name folder name (file is moved to the folder)

- mv folder name 1 folder name 2 (folder 1 exists) (folder moved to folder (folder rename))

- mv folder name 1 folder name 2 (both folders exist) (the folder is moved to the folder)

3. Delete file: rm

Continuously updating. . .