Test your Linux knowledge (ZT)-General Linux technology-Linux technology and application information. The following is a detailed description. () Is the answer
1. Switch the working directory command (cd)
2. Command for displaying the current path (pwd)
3. in Linux, the user's operation permissions on files and directories are divided into three types: readable, writable, and executable, which are represented by (r), (w), and (x) respectively. If a user does not have a certain permission, use (-) to indicate that the user does not have this permission.
4. For common files, the first type ID of the file attribute is displayed as (-); if it is a directory, the location ID is (d ).
5. Create a sub-directory named aaa (./mkdir aaa) under the current directory)
6. Copy all C Language Programs (files with the. C extension) in the current directory to the Command (cp *. C/home/wl) in the/home/wl subdirectory)
7. Delete the empty directory command (rm)
8. copy the files and subdirectories in the source directory to the target directory. The Parameter options are available (-r)
9. Force delete all files in the myfiles sub-directories and sub-directories in the current directory (rm-f-r myfiles)
10. Rename the file aaa in the current directory to the bbb command (mv aaa bbb)
11. Search for and display the line command containing the specified string in the specified file (grep str filename Note: str is the specified string and filename is the specified file)
12. touch command to change the time of a file or directory. If the file does not exist, create a new file.
13. when setting the File Permission, common letters represent the user or user group, and a indicates the owner of the file; g indicates (the user group); (o) indicates other users; () represents all users (u + g + o ).
14. After chmod u = rw, g = rw, o = r chap1.txtis executed, the permission for chap1.txt is changed to (664)
15. After chmod 654 chap1.txt is executed, the ACL of chap1.txt is changed to (u = rw, g = rx, o = r)
16.change the owner of the file chap1.txt to the command of the ww user (chown ww chap1.txt)
17. Search for the current directory and Its subdirectories and set the file name to hell. The file owner is globus. The command (find./-name hell *-user globus)
18. Search for all files with the. c extension in the root directory, and delete all the files found. Command (find/-name *. c | rm)
19.search for lines containing letters L or l (lower-case) in the file diff.txt. Command (grep-I L diff.txt)
The kernel searches for lines in the diff.txt file that do not start with the string "He". Command (grep-v He diff.txt)
21.in the current directory, create a hard connection for hello.txt with the connection name helloln.txt. Command (ln hello.txt helloln.txt)
22. clear the information command on the screen (clear)
23 Use symbol> 2 to indicate ()
24. MPS queue function (output redirection)
25. Run the (man) command to check the online manual.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service