Linux (1)

Source: Internet
Author: User
Tags bz2

1, experimental environment: oneRHEL6.5Virtual Machines

Experimental requirements: Practice the following basic operations command--

creating directories and Files --mkdir Touch Ln

Create a directory option p Cascade Create multiple directories and folders

Mkdir-p

Touch Create file {..} represents multiple creation of a file. txt file suffix name

ln creates a hard link Delete the original file can also use the equivalent copy

Ln-s Create soft link Delete original file can not use equivalent shortcut

copy, move, delete files or directories --CP MV RM

Cp

MV move rename

Rm-r recursive f does not prompt mandatory

find a file or directory --which find

Winch Finding where all commands are located

Find -name name -type type

-F File -d Directory

filter grep-v Reverse Lookup

start with ^ End # .....

Compress gzip bzip2 tar

Gzip-9 compression High compression

Bzip2-9 High Compression

Tar archive and release

TAR-JCVF gg.tar.bz2/benet/st202/19.doc.gz This is filed.

TAR-ZXVF gg.tar.bz2-c/benet/s2t202

VI Editor

:set nu displays line number

:e New

:Wq Save and exit

DD Delete Row

yy Copy

:q! Force Exit

use the man command to see how the Date command is used,

Mastering the use of the date command allows you to directly display the effect of the year - month - day : 2012-04-01 11:22

Experimental results: Mastering the specific use effect of each command

2. Experimental environment: One RHEL6.5 virtual Machine

Lab Requirements: Check the path after logging in to the system, then go to/tmp/directory, createBenets1and theBenets2two directories, inBenets1and theBenets2Create an empty file inside the directoryStudent; in/home/directory to create aTeacherthe directory that willBenets1copied toteacher/directory, you willBenets2move toteacher/in the directory;/directory, look for the system namedStudentthe file. In the/etc/Create a soft link file under directoryIfcfg-eth0, point to/etc/sysconfig/network-scripts/ifcfg-eth0file. The/tmp002fmake a backup, delete/tmp/under theBenets1after the directory is restored.

PWD View Current Location

CD Switch Path

Create catalog -P Multi-layer creation

Touch creates an empty file

Create a Table of contents in home

Copy the Benets1 to the teacher under home

Finding Find

Soft Links Add specified position

Tar backup and recovery

Delete and restore


Experimental results: Verify the effectiveness of the experiment as described in the requirements.


Linux (1)

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.