Basic Linux command format

Source: Internet
Author: User

1 start character [email protected]:~$

The first TD indicates the current login administrator name, middle @ no practical meaning, td-lenovo-ideapad-y410p represents the host name, ~ indicates the current directory (home directory), $ normal user prompt, #表示超级用户提示符.

2 command format

command [options] [parameters]

It is important to note that individual commands do not conform to this format, and when there are multiple options, they can be written together, and the simplification option is identical to the full option-a--all

Query directory Options ls command: LS [options] [file or directory]

Options:

-a displays all files, including hidden files

-L Show more information

-D View Directory properties

-H human words show file size

-I display Inode

If you execute the command ls-l:

[Email protected]:~$ ls-l Total dosage 76-rwxrwxr-x 1 TD TD 8608 December  9 18:52 a.out-rw-r--r--1 TD TD   13 December  4 11:43 dat a.txt-rw-r--r--1 TD TD 8980 November 17:18 examples.desktop-rw-rw-r--1 TD TD   72 December  9 18:52 hello.cpp-rw-rw-r--1 TD TD   31 December  4 11:56 h.py-rw-rw-r--1 TD TD   80 November 17:47 ps.pydrwxrwxr-x 3 TD TD 4096 November 20:42 Workspac EDRWXR-XR-X 2 TD TD 4096 November 23 01:24 Public Drwxr-xr-x 2 TD TD 4096 November 23 01:24 template Drwxr-xr-x 2 TD TD 4096 November 23 01:24 Video DRW XR-XR-X 2 TD TD 4096 November 23 01:24 picture Drwxr-xr-x 2 TD TD 4096 November 23 01:24 document DRWXR-XR-X 2 TD TD 4096 November 23 01:24 Download DRWXR-XR -X 2 TD TD 4096 November 23 01:24 Music drwxr-xr-x 2 TD TD 4096 November 23 03:12 Desktop

-rwxrwxr-x Explanation:

The first column of 10 characters represents the permission, the first character represents the file type (in Linux not by the file suffix name to identify the file), the most commonly used are the following three kinds:

-Represents a file, D represents a directory, and L represents a soft-linked file.

The next 9 characters are divided into three groups, rwx,rwx,r-w represent the rights of three users respectively, they are U owner, G belongs to group, o others, where R Read, w write, X execute.

Basic Linux command format

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.