Old boy Linux+python High-paying employment class first off after class on-machine combat test questions

Source: Internet
Author: User

Old boys education Linux+python high-paying employment class first off after class on-machine combat

(The third Sky Machine Test question)

(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 include 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 /tmp/oldboy .

4, on the basis of question 3, using awk to fetch the passwd file, the third column of line three to redirect to/tmp/ In the Oldboy/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/1838020

Old boy Linux+python High-paying employment class first off after class on-machine combat test questions

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.