LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2011, 09:39 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,225

Rep: Reputation: 49
ls -t and ls -lt list entries in the same order?


kernel 2.6.21.5, slackware 12.0

Hi:
If I do ls -t I get a listing by file modification time. If I now do ls -lt, does the listing order change or remains the same as with ls -t? That would be all, except a thing like -c behavior being modified by the adjunct of the -t option, as in -clt, is what makes me ask this question, as well as the need to be absolutely sure.
 
Old 09-11-2011, 12:47 AM   #2
tbrand
Member
 
Registered: Jul 2006
Location: Toronto, Canada
Distribution: gentoo
Posts: 33

Rep: Reputation: 17
You can be quite sure the the output order for ls -t and ls -lt is the same. -c modifies -l and -t not vice versa.
 
Old 09-11-2011, 03:15 AM   #3
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,627

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I am not sure I see the confusion? The man page seems quite explicit about the affect of -c.
 
Old 09-12-2011, 03:17 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,225

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by tbrand View Post
You can be quite sure the the output order for ls -t and ls -lt is the same. -c modifies -l and -t not vice versa.
That's what I call a direct answer. Thank you very much.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] modify entries in a list of names :: should be easy enough, right? linux_evangelist Linux - Newbie 7 02-22-2011 08:50 AM
List 4 names from users list and output them to fbusers in numbered ascending order? fezzie Programming 4 02-10-2010 02:05 PM
How to list the 'chkconfig --list' in alphabetical order? thomas2004ch Linux - Newbie 3 01-08-2010 03:09 AM
Apache Log - entries order kirtimaan_bkn Linux - Networking 1 01-04-2007 04:35 PM
Gen Hd List +pkg Order sajjadc Red Hat 0 10-10-2005 03:08 PM


All times are GMT -5. The time now is 09:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration