LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the use of ls -lsat (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-use-of-ls-lsat-938454/)

ravi_nandula 04-06-2012 05:13 AM

What is the use of ls -lsat
 
Hi guys,

What is the use of command "ls -lsat".????????

fukawi1 04-06-2012 05:14 AM

Code:

man ls

matrix13 04-06-2012 01:21 PM

As fukawi1 said, reading the respective manual will give you a better idea about how any command works. Anyways, the command "ls" and the switches in the command denote the following (from man page).

As you may be aware, the command "ls" is used for listing the information about files.
l = use a long listing format that will list one entry per line. It will also show the permissions.
a = display hidden files and folders (hidden files in linux start with a . (period)).
s = display the size of each file in blocks.
t = sort the files according to their modification time.
I short, the command "ls -lsat" will give you a vertical list all the files and folders, including hidden ones, arranged according to their modification times.

For the record, the most commonly used switches are -a and -l.

grail 04-06-2012 01:26 PM

Talk about sheer lazyness. That's not even trying :mad:


All times are GMT -5. The time now is 06:41 AM.