One, common Operation command 1. Linux command syntax format
command [options] [parameters]
A few notes:
The ① option determines the different operations, and the parameters determine the Action object
② Case Sensitive
③ commands, options, parameters with spaces or tab spacing
④ Multiple options to merge
⑤ a line can write multiple commands, use between commands;
⑥ if the command is too long, you can use \ Cont.
2.Linux Common Commands Try 2.1 echo-display string
2.2 who-List logged-in user information
In addition to this command, the WHO, W, WhoAmI, TTY, and other commands are used to list the pieces of information
2.3 chgrp-Change the user group to which the file belongs
The above command will change the A11 user group wt to root
2.4 chmod-Changing the access rights of a file
2.4.1 Method 1: Change permissions in an absolute way
chmod ocal-number filename
The above command uses the absolute method to change the A11 of the file to: All users can execute
2.4.2 Method 2: Change permissions in a symbolic way
chmod mode filename
The above command uses the symbolic method to change the use limit of the file A22 to: All users can execute
2.5 mkdir-using option-M to specify access permissions when creating a directory
Create directory test, only file read, write, execute permissions
2.7 find-searching for files in the directory
Search the AA folder under the current file and display the contents of this file
2.8 grep-Searches the file for a string that matches the pattern
grep [options] pattern filename
2.9 sort-to file content as required
Sort [options] ... filename
In this example, sort by the second column, if the reverse sort can add option-r
2.10 wc-Statistics file line count, Word count, number of bytes
WC [options] [filename]
2.11 cp-Copy a source or directory file to a destination file or directory
CP [option] source file or directory destination file or directory
Copy the name file under the AA directory to the BB directory
2.12 mv-Rename a file or directory, or move a file from one directory to another
MV [option] source target
Move the book file under the AA directory to the BB directory
2.13 ps-Viewing process information that is running on the current system
PS [Options]
Lists the basic information for each process related to the current shell
2.14 gzip--compressing and decompressing files
Compress the name file into GZ format
Extract the Neme file and list the details
2.15 unzip-Zip-format compressed file decompression
Decompression Story.zip
Second, summary
The Linux system provides a lot of commands, which are not as simple as I thought it would be for beginners who often use the Windows graphical interface. In this experiment, I tried a lot of simple Linux operation commands. Many of the commands were first seen and unfamiliar. But they are very versatile, and a command with different options can have different functions. But with so many commands in Linux, it's really hard to memorize. So to continue to use, try them, encounter will not go to check, and slowly can remember. In fact, these commands are like a block, a single look is very dull, but if you combine them, will spell out a variety of interesting things. We have to keep trying and discovering new and interesting things in our commands, and learning Linux slowly can become interesting.
Linux Experiment Two Summary