Old boy Linux Combat training Junior Class second pre-class exam questions

Source: Internet
Author: User
Tags system log

################################################################
This article extracts from the old boy Linux practical operation and maintenance Training Center before the exam question (answer part)
If reproduced, please be sure to keep the link and copyright information herein.
Welcome to Yun-Brother together to Exchange Linux/unix website operation and Maintenance technology!
Website operation and Maintenance Exchange Group: 114580181 45039636 37081784
Old boy qq:31333741
Mail:[email protected]
===============================================================
Old boy Linux Training contact
Enquiry: qq:357851641 31333741 70271111 11914883
Tel: 18911718229 18901398229
Website address:
http://www.etiantian.org   http://oldboy.cc
Blog:http://oldboy.blog.51cto.com
################################################################
[Purpose of examination]
Review and preview the students after class.

[Test questions]
Description

Please give the relevant command answer to the question, write to the bottom of the question (if it is not possible to Google search, write the answer, the mark is the search to get (half the score)). The following are the command results for the CentOS Linux root environment.

Exam questions (15): Total 100 points, required to complete within 15 minutes

tip: The following commands will focus on but are not limited to the following commands (both of which were reserved for preview last week): chkconfig cat ls Tail ln find WC tar cut grep egrep

1. Filter out all directories in a directory (not including the following subdirectories)?

Answer:

2, if the current directory is

[Email protected] oldboy]# pwd

/oldboy

Now because of the need to cut into the/TMP directory to operate

[Email protected] oldboy]# cd/tmp

[Email protected] tmp]# pwd

/tmp

Operation completed, want to quickly return to the last entry directory, that is/oldboy, how to do (not with the Cd/oldboy command)

Answer:

3: There are a lot of files in a directory (LS viewing a lot of screen), want to see the most recently updated files. How to see?

Answer:

4. When configuring Apache, execute the./configure--prefix=/application/apache2.2.17 to compile the Apche, after make install completes, wants the user's access path to be simpler, needs to give/ application/apache2.2.17 directory to make a link,/application/apache allows managers to access the Apache installation directory through/application/apache, please give the command.

Answer:

5. The access log of the Apache service is known to be logged by day in the server local directory/app/logs, due to space tension, now required, access log only keep the last 7 days log! How can I resolve this? Please provide a workaround or configure or process the command. (Tip: You can start with the Apache service configuration or from the generated log.) )

Answer:

6. When debugging the system service, want to be able to view the system log/var/log/message update, how to do?

Answer:

7. How do I print the line number and content of the nginx.conf content of the configuration file?

Answer:

8. Make the Network File Sharing service NFS, only on the 3 level on the boot, how to do?

Answer:

9.linux system operating level is generally 0-6, please say the meaning of each level respectively.

Answer:

10.linux system to see the Chinese garbled, how to solve the garbled problem?

Answer:

11. How to optimize the Linux system (do not check the information, can not say too specific)?

Answer:

12./etc/directory for Linux system default configuration files and service startup commands

A. Please use tar to package/etc entire Directory (package and compress)

B. Please use TAR to package/etc entire Directory (packaging and compression, but need to exclude/etc/services files)

C. Please unzip the a command to the/tmp directory (preferably only with the tar command)

Answer:

13. The following commands and results are known:

[Email protected] ~]$ echo "I am Oldboy,myqq is 31333741" >>oldboy.txt

[email protected] ~]$ cat Oldboy.txt

I am OLDBOY,MYQQ is 31333741

Now you need to fetch the oldboy,31333741 string from the file, give the command.

(Hint: can be implemented with but not limited to the cut command)

Answer:

14. How do I view the number of lines for a/etc/services file?

Answer:

15. Filter out the contents of the line containing the/etc/services 3306 and 1521.

Answer:

Special Note: The above questions for the training center Junior Class 60 divided into a pass, basically to meet the teaching requirements.   

Beginner Linux Brothers are interested and [seriously] do this article and the answer to the question to the following, and leave the mailbox friend, I will send an answer to you.
I'm sorry to fool you with the answer, brother.

Old boy Linux Combat training Junior Class second pre-class exam 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.