"Linux notes (002)"--CENTOS7 basic commands for document operation

Source: Internet
Author: User

First, CD--Changedirectory

A) switch to the/demolm/folder

b) Go back to the user's Home root directory: Which account is logged in will enter which user's root directory

Second, pwd--printworkingdirectory

A) View current working directory

Three, mkdir--makedirectory

A) Create a/test/directory

Four, touch--

A) Create a test.txt file

Five, RM--ReMove

A) Delete the Test.txt file

b) Delete the Test folder

c) Delete/test2/files and folders at the same time

Vi. CP-Copy

A) Copy the/test1/folder under Test1.txt to the/test2/folder

b) Copy the/test1/folder and the files in it to the/test2/folder

c) You can also use wildcard characters to perform advanced operations

*: Indicates all files and folders

?: Represents a character

Seven, MV--Move

A) Move the/test2/test1/folder to the/demolm/

Eight, find--

A) find the Test1.txt file

b) Find the file that starts with test

c) Find the file with the owner as root in the current directory

Nine, cat--concatenate

A) View/etc/services

b) Head/tail similar to Cat

View Top 10 rows

View after 10 lines

c) Similar to cat more, one screen display/etc/services

d) The cat command redirects output to text and outputs/etc/services content to/demolm/test.txt

Mask

2017-09-30 13:39 Friday

"Linux notes (002)"--CENTOS7 basic commands for document operation

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.