Ubuntu by default has an alias to point to ls.
I find it much better to use a customized tree command instead.
Contents of file ltree:
#ls --color=always $argu | less -R
tree -C $argu | less -R[/code]
I add the following to ~/.bashrcalias dir='ltree'[/code]
Now on executing dir, I get a beautiful colored hierarchy of directories and files.
Other useful aliases are:
la='ls -la' #Included by default in Ubuntu
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.