Linux commands usually consist of the following three parts:
Command[-option][argument]
- command is the order to run itself, and plainly is a software (program)
- option is optional, that is, some commands do not have options, and the options are to control the state and behavior of the command.
- argument is a parameter, is the command to manipulate the file, path, data, etc., is also optional, because some commands do not need to manipulate these content, if not, select the default
For example, cooking is an order, and we can add options such as fast and tasty, and the parameters are the ingredients, so we can say "make a tasty pork."
Command abbreviation:
Ls:list (List contents)
Cd:change directory (change directory)
Su:switch User (switch users)
Rpm:redhat Package Manager (Red Hat Pack manager)
Pwd:print Work directory (prints the current directory, showing the absolute path of the current working directory)
Ps:process status (Process state, Windows-like Task Manager) Common parameters:-AUXF
PS-AUXF Show Process Status
Df:disk Free (its function is to display the amount of available disk space information and spatial node information.) In other words, it is reported how much free space is left in any installed device or directory.
Rmdir:remove directory (delete directory)
Rm:remove (delete directory or file)
Cat:concatenate (Chained)
- Show entire file at once $ cat filename
- Create a file from the keyboard. $ cat > FileName (only new files can be created and existing files cannot be edited)
- Merge several files into one file: $cat file1 file2 > file
Insmod:install module (loading modules)
Ln:link files (link file)
Ln-s:link-soft (creates a soft link, which is equivalent to creating a shortcut)
Touch:touch's intention is not to create a file, but to modify the file's access and modification time, modify the file's timestamp
Man:manual (Manual)
Mkfs:make file System (create FileSystem)
Fsck:file system Check (checking file system)
Uname:unix Name
Du:disk usage (disk usage, how much disk usage is reported)
Lsmod:list modules (List module)
Mv:move file (moving files, equivalent to clipping)
Fg:foreground (foreground, prominent place)
Bg:background (background)
Chown:change owner (change owners, change permissions)
Chagrp:change Group (change groups)
Chmod:change mode (change modes)
Umount:unmount (uninstall)
Http://www.cnblogs.com/surge/p/3807919.html
The most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user, and the user and the shell environment are switched to root. The PATH environment variable error does not occur unless you switch the shell environment. After the SU switch to the root user, PWD, found that the working directory is still the normal user's working directory, and after the Su-command switch, the working directory becomes the working directory of root. Use the echo $PATH command to see how the Su and Su-future environment variables are different. And so on, to switch from the current user to another user, you should use the Su-command.
The shell is the interaction between the user and the job system, the user modifies its environment, sets or cancels the environment variables of the shell, caters to the user's needs and hobbies, the shell itself is a computer program, written in C, to assist the user and the operating system communication between the design, Manage user and core (Dernel) dialogue, and change the operating system instructions to machine code, in fact, PC users commonly used DOS itself when a shell.
The English word abbreviation for Linux common commands