Old boy operation and maintenance network class one-time entrance examination questions

Source: Internet
Author: User

[Exam Questions]
Special Note: If the former OneTao can not be correct is pure rookie level, if the answer is lower than5one, belonging to not understandLinux.
1. Create a directory/data.
Answer: Mkdir/data


2. Create a file oldboy.txt below the/data.
Answer: Touch/data/oldboy.txt

echo "" >/data/oldboy.txt


3. Add the content for Oldboy.txt to "I am studying Linux."
answer: Echo " I am studying Linux. ">/data/oldboy.txt


4. Copy the Oldboy.txt file to/tmp.
Answer: cp/data/oldboy.txt/tmp


5. Move the/data directory to the/root.
Answer: Mv/data/root


6. Go to the Data directory under the/root directory and delete the Oldboy.txt file.
Answer: Cd/root/data

R m - F Oldboy.txt


7. After the 6th question, exit to the previous level directory and delete the data directory.
Answer: CD..

R m -RF Data


8. The known file Test.txt content is:
Test
Liyao
old boyLinuxoperation and Maintenance Practical Training centerhttp://www.etiantian.org
Registration Enquiry: qq:70271111 41117397 41117483 Tel:18600338340 18911718229
Oldboy
please give the command that does not contain the Oldboy string when outputting the contents of the Test.txt file.
Answer: Cat test. txt| grep-v Oldboy


9. Use a command to complete the creation of the directory/oldboy/test, that is to create the/oldboy directory and/oldboy/test directory
Answer: mkdir-p /oldboy/test


10. It is known that the Test.txt file already exists in/tmp, how to execute the command in order to/mnt/test.txt copy to/tmp to cover off the/tmp/test.txt, and let the system not prompt for overwrite (root permission).
Answer: \ cp-f/mnt/test.txt/tmp/test.txt


One by one .View OnlyEtt.txtfile (Total -line) within the first -to the first -the contents of the line
Answer: Cat Ett.txt | Head-n | tail-n +20


12. Analyze the picture service log to rank the log (the sum of each picture access number * picture size), take Top10, also
is to calculate the total access size for each URL
"Additional questions: work scenes with high difficulty plus points,No classmate can give up not answer.
Description: The production environment application: This function can be used for IDC website traffic bandwidth is very high, and then by analyzing the server log which elements occupy too much traffic,
in order to optimize or cut the picture, compression JS and other measures.
The subject needs to output three indicators: "Number of visits" "Number of Visits * Single File size" "File name (can take URL)"
test Data
59.33.26.105--[08/dec/2010:15:43:56 +0800] "GET/static/images/photos/2.jpghttp/1.1 "11299
"Http://oldboy.blog.51cto.com/static/web/column/17/index.shtml?courseId=43" " mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729) "
59.33.26.105--[08/dec/2010:15:43:56 +0800] "GET/static/images/photos/2.jpghttp/1.1 "11299
"Http://oldboy.blog.51cto.com/static/web/column/17/index.shtml?courseId=43" " mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729) "
59.33.26.105--[08/dec/2010:15:44:02 +0800] "GET/static/flex/vedioloading.swfhttp/1.1 "3583
"Http://oldboy.blog.51cto.com/static/flex/adobevideoplayer.swf?width=590&height=328&url=/[[dynamic ]]/2 "
"mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET
CLR 3.5.30729) "
124.115.4.18--[08/dec/2010:15:44:15 +0800] "GET/?= http/1.1 "46232"-""-"
124.115.4.18--[08/dec/2010:15:44:25 +0800] "GET/static/js/web_js.jshttp/1.1 "4460"-" "-"
124.115.4.18--[08/dec/2010:15:44:25 +0800] "GET/static/js/jquery.lazyload.jshttp/1.1 "1627"-" "-"
Answer: No


13, the/oldboy directory and its subdirectories, all the files ending with the extension. SH contain the./hostlists.txt string
Replace All to: /idctest_iplist. Additional questions: Add points , not the classmate can give up not answer.
Answer: No

Old boy operation and maintenance network class one-time entrance examination questions

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.