LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Hidden files


Hi,

Can anyone tell me how to hide files on Linux'

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

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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, 01:07 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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:

Code:
mv test.txt .test.txt
 
Old 02-07-2011, 01:09 PM   #4
SkyEye
Member
 
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 01:10 PM.
 
Old 02-07-2011, 07:11 PM   #5
empty_net_goal
LQ Newbie
 
Registered: May 2010
Location: Washington DC
Distribution: Mostly Ubuntu and I fiddle with Arch and openSUSE
Posts: 13

Rep: Reputation: 0
reply

place a dot in front of the file name.
 
  


Reply



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 03: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 05:24 PM
[SOLVED] recursively cp all directories, files and hidden files WildDrake! Linux - Newbie 9 05-18-2010 04:39 PM
bash: mv hidden and not hidden files lupe Linux - General 4 06-22-2009 01:27 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

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