Linux Little Exercise

Source: Internet
Author: User

1. Display the lines in the/proc/meminfo file that begin with size s:

Law One:

Law II:

Fahsarm


Law IV:

2. Displays the lines in the/etc/passwd file that do not end in/bin/bash:

3. Show user RPC default shell program:

4. Find out the two-bit or three-digit number in/etc/passwd

5. A line that displays at least one whitespace character in the CentOS7/etc/grub2.cfg file, followed by a non-whitespace character

6. Find the line that ends with "LISTEN" followed by any number of whitespace characters in the result of the "Netstat-tan" command

7. Display user name and UID of all system users on CentOS7

8, add user bash, Testbash, basher, yes, nologin (its shell is/sbin/nologin), find the/etc/passwd user name with the shell name of the line

9, take advantage of DF and grep, remove the disk partition utilization, and from large to small sort

10. Display three user root, Mage, Wang's UID and default shell:

Find the line at the beginning of the/etc/rc.d/init.d/functions file that follows a word (including an underscore) followed by a parenthesis


This article is from the "12922045" blog, please be sure to keep this source http://12932045.blog.51cto.com/12922045/1931445

Linux Little Exercise

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.