Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-07-2011, 02:05 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Hidden files


Can anyone tell me how to hide files on Linux'

Kind Regards.
Old 02-07-2011, 02:07 PM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390

Hidden files in Unix and Linux start with a dot.

To hide the file my.test, rename it to .my.text

Hope this helps.

BTW: To see them use ls -la or ls -a whatever you prefer.
Old 02-07-2011, 02:07 PM   #3
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
On Unix operating systems, directories and files are hidden by putting a period before the name. So if you wanted to make the file "test.txt" hidden, you would do:

mv test.txt .test.txt
Old 02-07-2011, 02:09 PM   #4
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Depends on your file system and more technical what not. But if you are looking for the quick kill (a la hidden files in Windows), rename the file with a "." at the beginning of the file name.

Eg: if the file was named file.png rename it to .file.png

EDIT: Pressing Ctrl + h will toggle hide status of hidden files in Nautilus (which is the default file browser in your distro, Mint)

Last edited by SkyEye; 02-07-2011 at 02:10 PM.
Old 02-07-2011, 08:11 PM   #5
LQ Newbie
Registered: May 2010
Location: Washington DC
Distribution: Mostly Ubuntu and I fiddle with Arch and openSUSE
Posts: 13

Rep: Reputation: 0

place a dot in front of the file name.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make find exclude hidden files (.files) Rotwang Linux - General 2 08-08-2011 04:58 AM
[SOLVED] Delete regular files (not hidden files) with find + rm in one line older than 15 Virtuose Linux - Newbie 1 01-08-2011 06:24 PM
[SOLVED] recursively cp all directories, files and hidden files WildDrake! Linux - Newbie 9 05-18-2010 05:39 PM
bash: mv hidden and not hidden files lupe Linux - General 4 06-22-2009 02:27 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 09:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration