Linux Command Learning (1) -- ls command, linux Command learning ls

Source: Internet
Author: User

Linux Command Learning (1) -- ls command, linux Command learning ls

The first thing you need to know is the command prompt.

[Root @ localhost ~] #

Current login user (root)

Host Name (localhost)

Current Directory (Home Directory)

Super User prompt (#)

Normal user prompt ($)

 

1.1 Command Format

Command [Option] [parameter]

Note: Some commands are not in this format.

Multiple options can be written together

Abbreviated option-a is equivalent to -- all

 

1.2 several simple common commands

Command 1: ls [Option] [file or directory]

Command: Query contents in a directory

Option:

-A: displays all files, including hidden files (abbreviated as -- all)

-L display details

-D. view directory properties.

-H humanized display file size

-I: Display inode (index node)

Ls-a displays all files. Files starting with. are hidden files.

Ls-l permission reference count the last modification time of the file size of the group to which the owner belongs

 

Permission: 10 digits

First: file type (-file; d directory; l soft link) in addition to (Block device files, character device files, socket files and pipeline files)

Rw-r -- r-x (r-read, w-write, x-execution)

U owner g owner group o others

Ls-d

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.