The Sunflower Treasure of Linux system commands

Source: Internet
Author: User
Tags bz2

01.LINUX directory Structure "/" and "/dev" main role?

What are the common file systems in 02.Linux?

What is the cue for the graphical pseudo-character terminal in 03.Linux?

04. What is the command to view the host name?

05. What is the command to view the IP address?

06. What is the shutdown command?

07. What is the restart command?

08. What is the command to switch to the/dev directory?

09. What is the command that displays the current position?

10. How do I display the/root directory content detail properties?

11. Knock command Prompt "command not found" why are there two kinds?

12. How do I see the contents of the/boot directory?

What is the format of a complete command in 13.Linux?

14. What is the command to output the current directory? command to switch directories?

15. Switch the Operation command on the previous level directory? Go to User root's home directory?

16. What are the common wildcard characters?

What are the 17.ls common options? The respective roles?

18. What is the mobile command? What is the renamed operation?

19. What is the command to force the deletion of a folder and its contents?

When the 20.CP command is in use, what options do I need to add the source as a directory? A file with the same name appears when you copy, and you are prevented from prompting?

How many working modes does the 21.vim editor have?

22. In Vim last line mode, what can I enter without saving the exit?

23. Use the LS command to complete the following tasks to find the/etc/directory with the start of Re. conf end of File


Case 1: Copy, delete, move

– Create a subdirectory under directory/opt NTD

– Create file Readme.txt in directory/opt/ntd/, write content with vim I love Linux

– Copy the/etc/passwd and/etc/resolv.conf to the/OPT/NTD directory at the same time

– Copy file/etc/redhat-release to/root/and rename to Version.txt

– Move the file/root/version.txt to the/opt/ntd/directory

– Copy the/home directory to the/opt/ntd/directory



Case 2: Configure the following static address parameters for Linux

– Host Name: server0.example.com

– IP Address: 172.25.0.111

– Subnet Mask: 255.255.255.0

– Default gateway: 172.25.0.254

–dns Server: 172.25.254.254



Case 3: Operating on the server,

Create a new/ntddir/directory with the root user, create a new Readme.txt file in this directory, and further complete the following operations


– Write "I love Linux" to a file readme.txt


– Rename Readme.txt to Mylove.txt

– Copy the/etc/passwd,/boot, and/etc/group to the/ntddir directory at the same time

– Copy the hostname permanent configuration file to the/ntddir directory

– Copy the DNS permanent configuration file to the/ntddir directory

– Copy/boot to the/ntddir directory again, forcing overwrite


Case 4:tar making/releasing archive compression pack

– Backup/boot,/home folders, saved as boothome.tar.gz files

– Release boothome.tar.gz to Folder/root/boothome/

– Backup/usr/sbin directory, save as usrsbin.tar.bz2 file

– Release usrsbin.tar.bz2 to the/root/usrsbin/folder


Case 5: Add and test user accounts

– Create a user account named Stu01

– check/home/newly added host directory (home directory)

– Set a password for user stu01 (123456)


Case 6:usermod Modifying a user

– Create a new user stu02

– Set stu02 password to Redhat

– Modify user stu02 user name to stu03


Case 7: Group account Basic Management

– New group account Stugrp

– Add three member users (User01, root, Zhangsan) to the STUGRP group

– Remove a member from the STUGRP Group (USER01)


Case 8:CHMOD Permission settings

– Create a new/ntddir/directory with the root user, and create the file in this directory readme.txt

– Enables user Zhangsan to create/delete subdirectories in the/ntddir/directory

– Enables user Zhangsan to modify the capacity of the/ntddir/readme.txt file

Case 9:chown Attribution Settings

– New/tarena1 Directory

– Set the owner to Gelin01, group set to Tarena Group

– Gelin01 the user with RWX permissions on this directory, and no other person has any permissions on this directory

– Enable user gelin02 to access, view/tarena1 folder (hint: Add GELIN02 to Group)

– New/tarena2 Directory

– Set the genus group to Tarena

– Enables any user of the Tarena group to create and delete files in this directory

– New/tarena/public Directory

– Enable any user to have RWX permissions on this directory


Case 10: Permission settings

– Create a folder/data/test, set access permissions for the directory, give the owner and the owning group permission to read and write, and no other person has any permissions.

– recursively modify the ownership of the folder/data/test so that the owner is Zhangsan and the owning group is Tarena.


Case 11:vim Text Editor exercises, basic operations in command mode

– Writes the first 20 lines of/etc/passwd to a file/opt/pass20.txt

– Append the first 10 lines of/etc/shadow to the file/opt/pass20.txt

– Using/opt/pass20.txt, input the following:

– Move cursor in command mode: Keyboard up or down, home key, END key

– Inline Jump in command mode: to the first line of the full text (1G or GG), to the last line of the full text (G), to the 10th line of the full text (10G)

– Copy and paste in command mode:

copy 1 lines (yy), copy 3 lines (3YY)

Paste after the current line (lowercase p)


– Delete in command mode:

Delete a single character (x)

Delete to the beginning of the line (d^), to the end of the row (d$)

Delete 1 rows (dd), delete 3 rows (3DD)

– Find keywords in command mode:

Search (/word) toggle results (n, N)

Add: Uppercase C in command mode can be deleted after the cursor, and enter the input mode


Case 12: Specifying the Yum software source

Specify the available Yum software sources for Server0

The address of the –yum software Library is Http://172.25.254.254/rhel7.0/x86_64/dvd

– Configure this as the default software warehouse for virtual machine SERVER0

– Confirm the list of available warehouses

– Installing the GCC compilation tool with the Yum repository

– Install httpd software with the Yum repository

– Install SSSD software with the Yum repository




















The Sunflower Treasure of Linux system commands

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.