Monday, January 23, 2012

Viewing hidden files/folders in Ubuntu

Press Ctrl+H when in a directory containing hidden files/folders.
Hidden files/folders are now fully shown.

If you want hidden files/folders displayed at all times, open up a folder and go to
Edit>Preferences and tick "Show hidden and backup files"


Here are some Terminal commands for this purposes.

Display all files/folders, hidden ones included:
ll

or

ls -a

Display only hidden files and folders:
ls -A | grep "^\."

Display only hidden directories:
ls -A --file-type | grep "/$" | grep "^\."

Display only hidden files:
ls -A --file-type | grep -v "/$" | grep "^\."
Enjoy!

6 comments:

  1. omg next good tip on your blog ;D !

    ReplyDelete
  2. Always willing to bush up on my Ubuntu-fu...

    ReplyDelete
  3. did not know how to show hidden files!, thanks

    ReplyDelete
  4. there are hidden files in ubuntu?

    ReplyDelete