![]() ![]() But, if you want to display the information about the /etc/ directory, use -ld option as shown below. But if you want the details of directory then you can use -d option as., For example, if you use ls -l /etc will display all the files under etc directory. When you use “ls -l” you will get the details of directories content. Display Directory Information Using ls -ld Use ls -lh (h stands for human readable form), to display file size in easy to read format. Display File Size in Human Readable Format Using ls -lh Field 7 – File name: The last field is the name of the file.In this example, ‘Jun 13 15:27’ specifies the last modification time of the file. Field 6 – Last modified date & time: Sixth field specifies the date and time of the last modification of the file.In this example, ‘9275204’ indicates the file size. Field 5 – Size: Fifth field specifies the size of file.In this example, this file belongs to ”team-dev’ group. Field 4 – Group: Fourth field specifies the group of the file.In this example, this file is owned by username ‘ramesh’. Field 3 – Owner: Third field specifies owner of the file.In this example, 1 indicates only one link to this file. Field 2 – Number of links: Second field specifies the number of links for that file.Each 3 characters refers to the read, write, execute permissions for user, group and world In this example, -rw-r-– indicates read-write permission for user, read permission for group, and no permission for others. Field 1 – File Permissions: Next 9 character specifies the files permission.Following are the possible file type options in the 1st character of the ls -l output. In the example above the hyphen (-) in the 1st character indicates that this is a normal file. 1st Character – File Type: First character specifies the type of the file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |