LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ls -t and ls -lt list entries in the same order? (http://www.linuxquestions.org/questions/linux-newbie-8/ls-t-and-ls-lt-list-entries-in-the-same-order-902361/)

stf92 09-10-2011 08:39 PM

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.

tbrand 09-10-2011 11:47 PM

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.

grail 09-11-2011 02:15 AM

I am not sure I see the confusion? The man page seems quite explicit about the affect of -c.

stf92 09-12-2011 02:17 AM

Quote:

Originally Posted by tbrand (Post 4468572)
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.


All times are GMT -5. The time now is 11:35 PM.