Linux common Commands (iii)

Source: Internet
Author: User

Command format: Command "-Selection" "Parameters"

LS: Display directory file/bin/ls option-l-d-a-i-H

mkdir: Create new directory/bin/mkdir option-p recursively create directory

CD: Switch directories

PWD: Displays the location of your current directory

. A dot represents the current directory

.. Two points representing the previous level of the directory

RmDir: Delete Empty directory

CP: The original file or directory target directory to be copied; -r Copy Directory-p retains the file attributes and can also be renamed.

MV: Cut and rename

RM: Delete file or directory-r Delete directory-F enforcement

Touch: Create an empty file

Cat: View File contents

TAC: File content upside down display

More: Pagination shows the contents of a file

Less: As with more functions, you can page up

Head: View the first few lines of the file options-n 20 to view the first 20 lines, the first 10 rows are displayed by default.

Tail: Opposite the head function

LN: Generate link file-s creates a soft connection equivalent to a shortcut.    Hard Links: Synchronizing updates. Determine whether a soft or hard link can see the i-node number. Hard link I-node The original file I-node number is the same. Hard links can not be set for the directory, soft connection is possible, hard links can not be set across partitions. A soft connection is possible. The soft Connect permission is 3 rwx with arrows pointing.


Linux common Commands (iii)

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.