Linux command format, ls command

Source: Internet
Author: User

Command format:
commands [-options] [parameters]
Ls-la/etc
1. Individual commands do not follow this format
2, when there are multiple options, you can write together, most of the order can be arbitrary
3. Simplified options and complete options
-A equals--all

ls command:
LS list/bin/list display directory file-a All-l verbose-D View Directory Properties-I view the file or folder I node-lh file size in the appropriate units display
Ls-ld/etx Viewing directory information

Ls-l
-RWX------. 2 zrw zrw 4096 April 12:59 a.txt
ZRW is the owner, only one can change
ZRW is the owning group
4096 File Size
April 11 12:59 Last modified on
Ls-lh
-RWX------. 2 zrw zrw 4.0K April 12:59 a.txt
File size using the appropriate units

-rw-r--r--
1 bits represents the file type,-represents a file, D represents a directory, L represents a soft link file, and three common
R Read W write X Execute
2-4 Bits represents the owner, 5-7 is the owning group, and 8-10 means the other person

Linux command format, ls command

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.