Linux commands (September 21, 2017 22:19:29)

Source: Internet
Author: User

CD ==change directory role switching path, for example: CD/***

Touch = = Touch to create a file. Example: Touch ellon.txt

Vim = = Complex Editor, equivalent to emeditor,editplus,notepad++

echo = = Print out content, with ">" or ">>" to overwrite and append content to the file

eg

echo "Ellon

Yeison ">ellon.txt

Cat = = View File contents

Special usage: Add multiple lines of content

Cat >>/data/ellon.txt<<eof

I am studing Linux.

Eof

EOF is to appear in pairs, and EOF can be replaced by arbitrary pairs of content.

CP ==copy Copy Command CTRL + C, for example: CP ellon.txt/tmp/

-R: Recursive, for copying directories;-P: Preserve properties.

-A: equivalent to-PDR

MV ==move, moving directories or files, for example: mv/data/root/

PWD ==print Work Directory View the path of the current user

RM = Remove Delete file or directory-f force,-R Delete directory

Production scenarios do not use RM, if not to use, you must first use the CP backup.

Alternative methods:

MV = move: Move to a temporary directory,

Can build an RM on its own is actually running MV

Find Delete:

Find is a * * * * (five-Star) command:

Man = = is used to view a command detail document. For example, the man CP will display a detailed description of the CP (copy) command. Include the meaning usage of each parameter and so on. Enter Q and the Enter will exit.

Linux commands (September 21, 2017 22:19:29)

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.