The Linux command ls

Source: Internet
Author: User

LS: Displays the contents of the current directory

-A: Displays all files, including "." Start of hidden files

-A: Display except "." and ".." All files except the

-L: Show details of a file or directory

-I: Displays the index number of the file

-D: Displays the properties of the directory, usually in combination with-l

-H: When the file or directory size is displayed, the unit is converted, and the default is bytes. Usually used in conjunction with-l

such as: Show All files in the root directory

[Email protected]/]# ls-a

.  ..  ABC. autofsck BBB bin boot b.txt cgroup data dev etc home lib Linshi lost+found Media misc mnt Net opt Proc root sbin selinux srv sys test.txt tmp usr var zwj.txt


Display the size of files and directories

[Email protected] backup]# LS-LH

Total 8.0K

-rw-r--r--. 1 root root 625 Mar 21:35 bbs-2017-03-12.sql.tar.gz

Drwxr-xr-x. 3 root root 4.0K Mar 3 13:58 HTML


This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1905765

The Linux command ls

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.