Iii. basic forms of command for Linux learning

Source: Internet
Author: User

First, the command format

command [options] [parameters]

    • Attention:

1. And do not follow the command use this format

2. When there are multiple options, they can be written together

3. Simplified and complete options (-a equivalent to--all)

4. Brackets are optional, meaning that there can be no

Second, the contents of the query directory:

ls [options] [file or directory]

    • Options:

Options

Describe

-A Show all files, including hidden files (hidden files are all starting with.)
-L Show more information
-D View the directory properties (for example: ls–l/etc/represents the details of all the files under the directory, and if you use ls–ld/etc/, the details of this directory are viewed)
-H humanized display size (normal size shown in bytes, i.e. b)
-I. Display Inode (displays the ID number of each file)

1. Interpretation of basic permissions

Using Ls-l will appear something like this, the preceding is the file permission information

Example:-rw-r--r--

-representative file type (-file D directory l soft connect file)

Rw-u owner

r--G belongs to group

r--O Other People

R Read W write X Execute

The above example means that this is a file, the owner of the file has a readable writable permission, the user group has a readable permission to the file, the other person has a readable permission to the file, the number 1 represents the reference count, representing the file was called several times, the root of the 1 after the owner, The root behind the owner is the owning group, the number behind the owning group represents the size of the file, in bytes (if you want to see a more obvious point you can use the command LS-LH this is to display the file size in kilobytes), the following date represents the last time the file was modified, including the month, date, time, The last is the file name.

Iii. basic forms of command for Linux learning

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.