Crude Linux commands-general Linux technology-Linux technology and application information. For details, refer to the following section. The command line is really a headache. A simple command is followed by a dense parameter, and I feel dizzy. In order to connect to the legendary Linux experts, the system suddenly went out. The parameters of the users who tried them one by one were almost collapsed in the past half a day, NND understands why it took a lot of learning to give up in two days. After a while in the forum, I was suddenly enlightened. I didn't learn this in lINUX. I had to learn rough at first, remember the main Commands and parameters, and I was a little impressed with others, many command parameters need to be reversed and learned and understood. Come on, and stick to it.
Ls
-A, A (all) a: List all documents, including hidden files A, excluding (.,..)
-L (long) long list, together with the data of the file size, etc.
-I (inode) prints the inode Value
-H (human-readable) lists the file capacity in a way that we can easily identify.
-F (classify) shows the directory structure
-R (Recursive) is displayed together with sub-directory content
Sorting Method
-R (reverse) reverse sorting
-S (Size) is sorted by file Size
-T (time) in chronological order
-- Sort = WORD
Sort by WORD instead of name: none-U, extension-X, size-S, time-t, version-v
-- Time = WORD
With-l, show time as WORD instead of modification time: atime-u, access-u, use-u, ctime-c, or status-c; use specified time as sort key if -- sort = time
Cp copy file
-R (recursive) can copy the entire directory
-I (interactive) if the target directory already has a file with the same name, a prompt is sent.
-F (force) if the target directory already has a file with the same name, it will be forcibly overwritten.
-P (preserve) copies the modification time and access permissions of a file while copying it.
-L (link) shortcut for creating this file
-D (no-dereference) maintains the original link during replication.
-V (verbose) displays details of the copy.
Mv mobile directories and files
-I (interactive) if the target directory already has a file with the same name, a prompt is sent.
-F (force) if the target directory already has a file with the same name, it will be forcibly overwritten.
-V (verbose) displays details of the copy.
Rm deletes directories and files
-R (recursive) can delete sub-directory Directories
-I (interactive) if the target directory already has a file with the same name, a prompt is sent.
-F (force) if the target directory already has a file with the same name, it will be forcibly overwritten.
-V (verbose) displays details of the copy.
Touch creates a blank file or modifies the modification date of an existing file
Touch [filename]
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