![]() rwxr-xr-x 1 daygeek daygeek 241 Apr 6 10:49 mysql_backup_2.sh* rwxr-xr-x 1 daygeek daygeek 237 Apr 6 10:40 mysql_backup_1.sh* rw-r-r- 1 daygeek daygeek 776 Jun 14 12:00 memory-monitor.sh rw-r-r- 1 daygeek daygeek 208 May 24 12:04 jwhois-check.sh rwxr-xr-x 1 daygeek daygeek 65 Apr 16 23:23 guna_server.sh* rw-r-r- 1 daygeek daygeek 99 file-copy.sh rw-r-r- 1 daygeek daygeek 410 Apr 27 23:58 disk-space-alert.sh rwxr-xr-x 1 daygeek daygeek 1361 cpu-mem-check.sh* rw-r-r- 1 daygeek daygeek 538 May 25 19:25 cpu-alert.sh rw-r-r- 1 daygeek daygeek 616 Jun 2 13:25 cpu-alert2.sh rw-r-r- 1 daygeek daygeek 764 May 26 15:33 cpu-alert1.sh rw-r-r- 1 daygeek daygeek 78 Apr 26 11:39 bulk-package-install.sh ![]() It shows you file permission, username, group name, file size, file created date and file created time. Use the following ls command to view detailed information in the given directory contents. It can be achieved by adding -l option with ls command. It may help you to easily check list of files and directories which is there in the directory when you are not able to fit a directory contents in single page.Ģg.out cpu-alert.sh guna_server.sh* mysql_backup_2.sh* pass-multi-user.sh* port_scan.sh* service1.sh service3.sh user-add.sh*īulk-package-install.sh cpu-mem-check.sh* jwhois-check.sh mysql_backup.sh* pass-up.sh* process.sh service2a.sh servicem.sh whois-check.sh*Ĭpu-alert1.sh disk-space-alert.sh memory-monitor.sh ovh.sh* passwd-up1.sh* server-list.txt service2.sh service.sh xsos*Ĭpu-alert2.sh file-copy.sh mysql_backup_1.sh* pass-gen.sh* passwd-up.sh* service1a.sh service3a.sh test.txtĢ) How to List Directory Contents With Detailed Format? When you use ls command without any option, it will show you only files and directories name with horizontal format. The first character indicates the type of the file.Ģ-4 characters indicates permissions on owner.ĥ-7 characters indicates permissions on group.Ĩ-10 characters indicates permissions on others.ġ) List Directory Contents Using ls Command Without Any Option Each 3 characters refers the read (r), write (w), execute (x) permissions on owner, group and others.įield-1 (-|rw-|r-|r-) : File Permissions The next 9 characters in the first field represent the permissions. The first character indicates the type of the file. |-rw-r-r- | 1 | daygeek | daygeek | 14M | | 2daygeek_access.log|įield-2 (1) : The number of links or directories inside this directory.įield-6 (Jan 3 2019) : Last modification date and time of the file.įield-7 (2daygeek_access.log) : Name of the file.įirst field comes with 10 character, which indicates Linux file Permissions. The ls command output comes with seven fields. It lists bunch of information about files and directories such as file permissions, number of links, owner name, owner group, file size, time of last modification, and file/directory name. Ls stands for List, the ls command is used to display the directory contents. The ls command comes with many options and each options will give you a different kind of output that will be used for many purpose. ![]() I believe that everybody first use ls command when their logged into Linux system. ![]() I can say in other words, it’s heart for Linux user. The ls command is one of the very basic and most frequently used commands in Linux. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |