LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2012, 06:13 AM   #1
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Rep: Reputation: Disabled
Angry What is the use of ls -lsat


Hi guys,

What is the use of command "ls -lsat".????????
 
Old 04-06-2012, 06:14 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Code:
man ls
 
1 members found this post helpful.
Old 04-06-2012, 02:21 PM   #3
matrix13
Member
 
Registered: Nov 2006
Location: Kerala, India
Distribution: Arch Linux
Posts: 134

Rep: Reputation: 25
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.
 
1 members found this post helpful.
Old 04-06-2012, 02:26 PM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,425

Rep: Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826Reputation: 2826
Talk about sheer lazyness. That's not even trying
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration