Linux Basics-Measuring how much you can score

Source: Internet
Author: User

  1. Date command

    1. Display current date, format: 2016-08-08

    2. Show today is the day of the week

    3. Set the current date to 2008-08-0808:08

  2. ls command

    1. Show only hidden files for the specified directory

    2. Displays only directories under the specified directory (without looking at the file)

    3. Displays all files or directories that start with L, end with a lowercase letter, and have at least one digit in the middle of the/var directory

    4. Displays a file or directory that starts with any digit in the/etc directory and ends in a non-numeric number

    5. Displays a file or directory that starts with a non-letter in the/etc/directory followed by a letter and any other character of any length

    6. Displays all files or directories in the/etc directory that begin with a non-numeric end of M

    7. Displays all files or directories ending with. D in the/etc directory

    8. Displays files or directories with the. conf ending with the/etc directory and beginning with m,n,r,p

    9. All files or directories in the display directory that start with 1, end with a lowercase letter, and appear in the middle of an arbitrary character

    10. Displays files or directories that start with any digit in the/etc directory and end with a non-digit

    11. Displays a file or directory that starts with a non-letter, followed by a letter and any other character of any length, in the/etc directory

  3. mkdir command

    1. Using the alias command, each day to the/etc/directory of all files, back up to/testdir/under the new directory, and the new directory format is BACKUPYYYY-MM-DD, the backup process is visible

    2. First create the/testdir/rootdir directory, then copy the/root all the next files into the directory, and ask to retain the original permissions

    3. How to create a/testdir/dir1/x, /testdir/dir1/y,/testdir/dir1/x/a, /testdir/dir1/x/b,/testdir/dir1/y/a,/testdir/dir1/y/b

    4. How to create/TESTDIR/DIR3,/TESTDIR/DIR4,/TESTDIR/DIR5,/testdir/dir5/dir3,/testdir/dir5/dir4  

  4. CP command

    1. Copy all hidden files in the current directory to the specified folder

    2. copy/etc directory, all files or directories starting with M, ending with non-digits   to the/tmp/magedu.com directory

    3. copy/usr/share/man directory, All text   pieces or directories ending with a man, followed by a number, to the/tmp/man directory

    4. copy/etc directory, all files or directories ending with. conf and beginning with N,m,r,p to the  /tmp/conf.d/directory

    5. /etc/ The first six lines of the passwd file are converted to uppercase characters after the output

  5. Users and Groups

    1. Create user Gentoo, additional group is bin and root, default shell is/bin/csh, annotation information is "Gentoo distribution"

    2. Create the following user, group, and group memberships

      1. Group with the name Admins

      2. User Natasha, using admins as a subordinate group

      3. User Harry, also use admins as a subordinate group

      4. User Sarah, not interactive login system, and not a member of admins, Natasha, Harry,sarah password are CentOS

  6. TR command

      1. Convert the contents of the/etc/issue file to uppercase after saving to the/tmp/issue.out file

      2. Convert the current system logged on user's information to uppercase and save to the/tmp/who.out file

      3. /root/the list of files to be displayed as a line, separated by a space between the filenames.

      4. file1 file are: " 1 2 3 4 5 6 7 8 9 10 "Calculates the sum of all numbers

      5. Delete empty lines of the specified file

  7. Text Processing tools (grep, regular expressions, cut, head, tail, sort, uniq)

    1. Maximum percent value of partition space usage detected

    2. User name, UID, and shell type with maximum user UID detected

    3. Identify the permissions of/tmp and display them digitally

    4. Counts the number of connections for each remote host IP that is currently connected to this machine and sorts from large to small

    5. Use extended regular expressions to represent 0-9, 10-99, 100-199, 200-249, 250-255, respectively

    6. Remove all whitespace characters from the beginning of lines in the/etc/grub2.conf file that begin with whitespace

    7. Add # At the beginning of each line of/root/install.log

    8. Add # to the beginning of a line in the/etc/fstab file that does not start with #

    9. Statistics for all RPM files in the package directory on the CentOS installation CD-ROM the number of repetitions of the second-to-last field

(Total 40 questions, a-f each question 2 points g each question 4 minutes altogether 98 minutes)


This article is from the "11892760" blog, please be sure to keep this source http://11902760.blog.51cto.com/11892760/1873920

Linux Basics-Measuring how much you can score

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.