show the last modified date on directory and file

ls -al
it does provide much more information , the owner , group , the size in byte , and the last modified time a file or directory was ls -al : list all in long format
Sample Output
gnu@robby:~/opensnc-src0.1.2$ ls -al
total 128
drwxr-xr-x  14 gnu gnu  4096 2009-07-22 22:50 .
drwxr-xr-x 139 gnu gnu 12288 2009-11-12 13:06 ..
-rwxr-xr-x   1 gnu gnu  7992 2009-07-22 07:54 CMakeLists.txt
drwxr-xr-x   2 gnu gnu  4096 2009-07-09 00:23 config
-rwxr-xr-x   1 gnu gnu   133 2009-05-31 17:36 configure
drwxr-xr-x   2 gnu gnu  4096 2009-05-31 17:34 gui
drwxr-xr-x   2 gnu gnu  4096 2009-05-31 17:36 images
drwxr-xr-x   2 gnu gnu  4096 2009-07-24 01:32 languages
drwxr-xr-x   2 gnu gnu  4096 2009-07-20 05:03 levels
drwxr-xr-x   2 gnu gnu  4096 2009-07-22 08:36 licenses
-rwxr-xr-x   1 gnu gnu 18326 2009-05-31 17:36 license.txt
drwxr-xr-x   2 gnu gnu  4096 2009-07-08 21:17 musics
drwxr-xr-x   2 gnu gnu  4096 2009-05-31 17:34 quests
-rwxr-xr-x   1 gnu gnu 30172 2009-07-22 22:43 readme.html
drwxr-xr-x   2 gnu gnu  4096 2009-07-09 00:57 samples
drwxr-xr-x   2 gnu gnu  4096 2009-07-22 08:09 screenshots
drwxr-xr-x   3 gnu gnu  4096 2009-07-22 08:33 src
drwxr-xr-x   2 gnu gnu  4096 2009-05-31 17:34 themes

-11
By: eastwind
2009-11-12 12:27:32
ls

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: