Technology and General Blog

“ls” is 1 of the most routinely utilised instructions in Linux. It is made use of to listing down the documents and sub-directories inside of your recent listing. This command is similarly useful for ordinary people as properly as for procedure administrators. For that reason, currently we will share the five most functional use scenarios of the “ls” command in Linux Mint 20.

5 Most Functional Examples of Employing “ls” command in Linux:

The 5 most sensible makes use of of the “ls” command in Linux are as follows:

Illustration # 1: Listing all the Documents and Directories devoid of any Additional Details:

The most straightforward utilization of the “ls” command is to use it without the need of any extra flags or parameters. You can do this in the way revealed down below:

All the data files inside of the recent directory of our Linux method are revealed in the next graphic:

Illustration # 2: Listing all the Data files in the Final-Modified File To start with Purchase:

If you want to checklist down all the documents in the previous modified file very first get, i.e., you want to checklist down the information according to their modification time or day then you can execute the “ls” command as follows:

All the data files in the current directory of our Linux procedure in the last modified file 1st purchase are shown in the image down below:

Illustration # 3: Listing all the Hidden Data files:

The hidden information in Linux are not exhibited by utilizing the very simple “ls” command in the terminal. But they can be stated by applying the “-a” flag with the “ls” command in the adhering to method:

All the concealed documents within just the recent directory of our Linux process are demonstrated in the image under:

Illustration # 4: Listing all the Details along with Documents:

If you want to exhibit all the details along with the file names these as file sizing, day modified, file permissions, and so forth., then you can use the “ls” command in the pursuing fashion:

All the files inside of the current listing of our Linux procedure, alongside with their facts, are shown in the picture down below:

Instance # 5: Listing all the Documents in the Descending Order of their Size:

If you want to exhibit all the documents in the descending purchase of their dimensions, i.e., the most significant file to start with get, then you will have to execute the “ls” command in the next fashion:

All the data files inside the present-day listing of our Linux system in the descending get of their size are revealed in the image below:


This write-up was supposed to share the 5 most simple illustrations of applying the “ls” command in Linux. Having said that, if you want to know extra about this command’s usage, you can execute the “ls –help” command in Linux for accessing the help guide of this command. In this way, you will know about all the flags and parameters that can be put together with this command to serve distinct uses.

Leave a Reply

Your email address will not be published. Required fields are marked *