list files in 'hitlar' mode

ls -Fhitlar
Was playing with the shell. It struck to me, just by rearranging the parameters, i was able to remember what they did and in a cool way. Enter the 'hitlar' mode. bash-3.2$ ls -hitlar Shows all items with inodes, in list view, human readable size, sorted by modification time in reverse, bash-3.2$ ls -Fhitlar Shows the same with classification info. Add the hitlar mode alias to your .bashrc. bash-3.2$ echo "alias hitlar='ls -Fhitlar'" >> ~/.bashrc bash-3.2$ hitlar bash-3.2$ hitlar filename
Sample Output
bash-3.2$ ls -Fhitlar
total 16K
11865157 drwx--S--- 4 srinis22 apac 4.0K Jul 11 05:58 ../
13783814 -rwxrwxrwx 1 srinis22 apac    0 Jul 11 05:58 bcd.sql*
13783815 -rwxrwxrwx 1 srinis22 apac    0 Jul 11 05:58*
13783816 -rwxrwxrwx 1 srinis22 apac    0 Jul 11 05:58*
13783817 drwxrwxrwx 2 srinis22 apac 4.0K Jul 11 05:59 dir1/
13783818 drwxrwxrwx 2 srinis22 apac 4.0K Jul 11 05:59 dir2/
13783812 drwxr-sr-x 4 srinis22 apac 4.0K Jul 11 05:59 ./
13783819 -rwxrwxrwx 1 srinis22 apac    0 Jul 11 05:59 asdf*
13783813 -rwxrwxrwx 1 srinis22 apac   17 Jul 11 06:00 abc.txt*

By: ringzero
2011-07-11 10:29:34
ls 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? 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.


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: