Brief Introduction to linux ls commands, and introduction to linuxls

Source: Internet
Author: User

Brief Introduction to linux ls commands, and introduction to linuxls

I am familiar with linux, but I am not familiar with ls commands.

Because we usually use this command to view files in a directory


The command format is:

Ls [Option] directory or file


This article describes the two most common options:

-L: Used to list details of objects.

-A: used to list hidden objects.


First, use ls-l to list all file details in the current vpoet user's home directory, excluding hidden files.



Use ls-a to list all the hidden files in the directory and only list the file names.


See, the file with "." is hidden.



Normally, we use the-a-l option to display all the details, including hidden files.





Now we will explain a specific record in detail:




-Rwxrw-r --: indicates the File Permission. '-' indicates that the file is a normal file. rwx indicates that the file owner vpoet has 'R' read permission and 'w' write permission on the file, 'X' execution permission

Rw-indicates the access to the file in the vpoet group to which the file owner belongs.

R -- indicates other people's permissions on the file


'1' indicates the number of file links


'Vpod' indicates the file owner.


'Vpod' indicates the group to which the file belongs.


The value 2086 indicates the file size.


November 25 16:49 indicates the last file update time


Testgrep indicates the file name.




Reprinted, please note: Xiao Liu

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.