Old boy Linux operation and Maintenance Foundation No. 2728 period after-class study effect on machine closed book Examination question explanation
Http://edu.51cto.com/course/course_id-5577.html
If you feel good, please give him a little like and evaluation. This will inspire him to return to the desire of the small partner more strongly!
Old Boys Education Linux operation and maintenance employment class after the first week after-school study effect ability on machine big investigation
(10 points for each topic 130 points, over 100 can be, please give detailed steps)
1, create the directory /data/oldboy , and create the file Oldboy.txt in the directory , and then write the contents in the file oldboy.txt "inet addr : 10.0.0.8 bcast:10.0.0.255 mask:255.255.255.0 "(does not contain quotation marks).
2, the title 1 in the oldboy.txt file content through the command filter only output the following content:
10.0.0.8 10.0.0.255 255.255.255.0
3. Move the Oldboy directory in title 1 to the/ tmp directory and copy the/etc/passwd file to the/tmp/oldboy the next.
4, on the basis of question 3, using awk to fetch the passwd file, the third column of line three to redirect to/tmp/oldboy/ In the Test.txt file.
5, on the basis of the title 3, the request to delete the file with the command RM prompts the following to prohibit the use of RM , and make the effect permanent effect.
[Email protected] oldboy]# rm-f passwd
Do not use RM command.
6, on the basis of the title 3 , delete /tmp/oldboy/ under passwd other than the file.
7, on the basis of the title 3 , please print the/etc/passwd file in the line 2-5 (no less than three methods)
8, on the basis of the title 3 , use the command to replace the root position and /bin/bash location in the passwd file ? Will all the first and last column locations be swapped?
Cases:
Default: Root:x:0:0:root:/root:/bin/bash
After modification: /bin/bash:x:0:0:root:/root:root
9 . Replace all strings containing oldgirl in the/data directory and its subdirectories with all files that end with the extension. txt as oldboy.
Search/oldboy all 7 days ago file with log ending greater than 1M move / tmp
One, what is the runlevel of Linux, describe the meaning of different numbers of Linux running levels ? ( additional questions )
Please describe the difference between buffer and cache ( additional questions ).
Please say what you know the following characters in Linux can represent the meaning ( additional questions ).
~ - . .. | > >> < << !
Answer format:
part 1 :.....
Part 2 :.....
Part 3 :.....
This article is from the "Old Boys Linux Training" blog, make sure to keep this source http://oldboy.blog.51cto.com/2561410/1752116
Linux OPS Basics Command pen Questions--See how much you will?