In the previous article, we introduced five types of Linux terminal commands. I believe they will be useful. Here we will continue to introduce some other Linux terminal commands. You must be familiar with these terminal commands, it saves a lot of time to search for these commands and improves work efficiency.
6. program running
1. query command: whereis command name
2. Run the X-Window program in the background: program name &
3. Forcibly exit the X-Window program: Ctrl Alt Backspace
4. View help:
(1) Concise help: command name -- help | less
(2) more help: man command name
(3) info command name
(4) help command name
5. view the system PATH: echo $ PATH
6. view the current shell Stack: echo $ SHLVL
7. </>: Input/Output redirection. |: The left input of the MPs queue is the right input of the MPs queue.
7. User Accounts
1. Add a user account: (1) User name: adduser User Account Name
(2) Set Password: passwd User Account Name
2. delete a user account: userdel User Account Name
3. Add a user group: groupadd user group name
4. delete a user group: groupdel user group name
5. Temporarily terminate the user account: passwd-l User Account Name
6. Restore the account to be terminated: passwd-u User Account Name
7. permission settings
(1) chmod-a | u | g | o |-| = r | w | x file/directory name
Where: a -- all users (all); u -- current user (user); g -- user group (group); o -- other users (other users)
-- Add permissions; --- delete permissions; = -- Set permissions
File: r -- read-Only permission (read); w -- write permission (write); x -- execute permission (execute)
Directory: r -- allow files and subdirectories in the column directory; w -- allow generation and deletion of files in the directory; x -- allow access to this directory
(2) chmod xxx file/directory name
Where: execute = 1; write = 2; read = 4
Value x: 0 -- no permission (commonly used); 1 -- can only be executed (uncommon); 2 -- can only be written (uncommon ); 3 -- write and execution only (uncommon); 4 -- read-only (common); 5 -- read-only and execution (common); 6 -- read and write (common); 7 -- read. write and execute
VIII. vi editing
1. Enter the command mode: (1) Insert I; (2) Open 0; (3) Modify c; (4) Replace r; (5) replace s
2. After going through (1), enter the full screen editing mode.
3. Command mode --> edit mode (a/I); edit mode --> command mode (Esc); command mode --> last line mode (:).
4. Save w/w newfile
5.: q/q! Exit iv;: wq save and quit
9. Network Services
1. display network interface parameters: ifconfig
2. Display System Email: mail
3. start/stop the web Service: httpd-k start | stop | restart
4. View network conditions: (1) online status: ping xxx. xxx;
(2) display network status: netstat, where: options:-a = All sockets;-l = contains network devices;-n = Digital IP;
-O = Other information;-r = route table;-t = only columns of TCP sockets;-u = only columns of UDP sockets;-w = only columns of raw sockets;
-X = only columns of unix Domain sockets
10. other classes
1. display graphics card 3D information: glxinfo and glxgears
The -- rebuild parameter must be added to the rpmbuild command. For example, rpmbuild -- rebuild ***. src. rpm. Then, find it under/usr/src /.
3. Install the iso program in FC3: directory where system-config-packages -- isodir = iso is located
Install the iso program under RH: directory where redhat-config-packages -- isodir = iso is located
These two articles end important Linux terminal commands. Pay attention to the subsequent command options during use.