1. Basic command operations (the following commands are all input as root)
1. Enter the graphic interface from the text interface: startx
2. Create a folder: mkdir folder name
3. Access the root user from a common user: su
4. Go to the folder: cd/file path
5. Return to the previous Folder: cd ..
6. view the files and folders in the current location: ls
7. view the path of the current location: pwd
8. copy the file: cp file name/path of the new folder
9. open the file: cat file name
10. delete the file: rm file name
11. edit the file: vi/vim file name
I. edit files
N page flip
? Character (or file name) search up characters (or file name)
/Character (or file name) to search down characters (or file name)
: Enter the command
Q exit
Q! Force exit
Wq save and exit
Set nu shows the number of lines of code
0 move cursor to text start
$ Move the cursor to the end of the text
12. Copy the folder: cp-r Folder/path of the new folder
13. overwrite existing folders and sub-files with the same name and different names (step 2): rm-rf existing Folder \ cp-rf Folder/path of the new folder (with no prompt ). overwrite existing folders and files with the same name, and keep the path of different files: \ cp-rf Folder/new folder (with no prompt)
14. Move Folder: Path of the new folder in the mv folder
15. Rename the file: Old mv file name New File Name (new name)
16. Delete the folder rmdir
17. delete folders and subfolders (with a prompt): rm-r folder
18. delete folders and subfolders (with no prompt): rm-rf folder
19. find a folder or file: find/-name \ Folder name or file name-print
20. mount the optical drive: mount/dev/cdrom/mnt
21. Cancel mounting the optical drive: umount/dev/cdrom
22. Restart Linux: reboot
23. Shut down Linux: shutdown-h now
24. make TX44B0_config soft connection (similar to creating a shortcut) make distclean delete all the files that have already been compiled make Compilation
25.tar.gz unzip command: tar-zxvf ....... Tar.gz tar.bz2 decompression command: tar-jxvf ....... Tar.bz2
2.
Display Date and Time Date + % Y/% m/% d
Show Calendar Cal
Calculator Bc (Quit exits the program. scale = number indicates the number of digits to the decimal point)
3. hotkeys
TAB] Press the button twice to enable "command completion" and "file completion.
[CTRL] C: This key combination can interrupt running commands.
[CTRL] d: indicates the keyboard input end, EOF, or end of input. It can also be used to replace the exit INPUT.
4. man
The man command can be followed by a numeric parameter to indicate specific range positioning:
Number "1" indicates the USER command
Number "5" indicates the file format and rules
The number "8" indicates the command related to the system administrator.
Man page consists of the following parts:
NAMEBrief command and data name descriptions
SYNOPSISBrief Introduction to command syntax
DESCRIPTIONFor a more complete description, it is best to take a closer look at this part,
OPTIONSFor the SYNOPSIS section, list all available parameters
COMMANDSWhen this program (software) is being executed, the commands that can be issued in this program (software)
FILESSome reference instructions for the use, reference, or connection of this program or data
SEE ALSOOther reference instructions related to this command or data,
EXAMPLEExamples for Reference
BUGSRelated errors?
To make the background of the word you want to find black, you can use/word to look down ,? Word lookdown
Q: end man page
5. info page
In Linux, most software development tools come from the GNU project of the Free Software Foundation. The online documents of these tools and software are in the form of info files. The info program is a GNU hypertext help system. The info document is generally stored in the/usr/info directory. Run the info command to view the info document.
6. correct methods for ON/OFF
View online persons, who
View network connection statusNetstat-
View programs executed in the backgroundPs-aux
Write data synchronously to disk Sync
Shutdown-hNow/20:24/+ 10
Shutdown and restart Shutdown-r now/+ 10'Message' Reboot
False Shutdown Shutdown-KNow/+ 10'Message'
Mounting means to mount a device (usually a storage device) to an existing Directory. To access a file on a storage device, you must mount the partition where the file is located to an existing Directory, and then access the storage device by accessing this directory.