ls -Fhitlar

list files in 'hitlar' mode

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

These Might Interest You

  • Similar output to using MySQL with the \G at the end of a Query. Displays one column per line. Other modes include: -column Query results will be displayed in a table like form, using whitespace characters to separate the columns and align the output. -html Query results will be output as simple HTML tables. -line Query results will be displayed with one value per line, rows separated by a blank line. Designed to be easily parsed by scripts or other programs -list Query results will be displayed with the separator (|, by default) character between each field value. The default. From inside the command line this can be also changed using the mode command: .mode MODE ?TABLE? Set output mode where MODE is one of: csv Comma-separated values column Left-aligned columns. (See .width) html HTML code insert SQL insert statements for TABLE line One value per line list Values delimited by .separator string tabs Tab-separated values tcl TCL list elements Show Sample Output

    sqlite3 -line database.db
    pykler · 2010-10-09 16:10:19 0
  • I sometimes (due to mismanagement!) end up with files in a git repo which have had their modes changed, but not their content. This one-liner lets me revert the mode changes, while leaving changed-content files be, so I can commit just the actual changes made.

    git diff --numstat | awk '{if ($1 == "0" && $2 == "0") print $3}' | xargs git checkout HEAD
    lingo · 2009-09-17 22:12:50 6
  • Opens a list of files in a text editor. Using Vim as your default editor allows you to use the power of regex substitution and visual block mode to batch rename files. Found in the renameutils package sudo apt-get install renameutils

    qmv -fdo
    srconstruct · 2010-09-27 06:39:37 1
  • return to normal mode from hex mode :%!xxd -r

    b1067606 · 2013-01-11 21:09:47 0
  • Specify the size in bytes using the 'c' option for the -size flag. The + sign reads as "bigger than". Then execute du on the list; sort in reverse mode and show the first 10 occurrences. Show Sample Output

    find /myfs -size +209715200c -exec du -m {} \; |sort -nr |head -10
    arlequin · 2011-07-07 21:12:46 0
  • When the wireless card is in AP mode, list the users which are connected to the network. Show Sample Output

    wlanconfig <wireless_device> list sta
    quitaiskiluisf · 2013-06-08 13:46:51 2

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: