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: