Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th February 2009, 02:06 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
How to hide files without renaming them?

Hello.

Is there any way to make files hidden without renaming them to ".something"?

I am using KDE 4.2.

Thanks in advance.
Reply With Quote
  #2  
Old 25th February 2009, 02:16 PM
Simian Man's Avatar
Simian Man Offline
Registered User
 
Join Date: Sep 2008
Location: Tallahassee
Age: 28
Posts: 336
Not as far as I know. Unlike Windows, there is no separate "hidden" flag.
Reply With Quote
  #3  
Old 25th February 2009, 07:49 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,613
Hidden files can always be seen anyway. Are there still people who haven't aliased ls to at least 'ls -a'?
Reply With Quote
  #4  
Old 25th February 2009, 08:27 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
I don't think you can hide arbitrary individual files, but you can hide all files in a given directory by mounting it as root directory for instance. Only root can umount to make the files visible again.

Assuming / is mounted on /dev/sda1:

Code:
mkdir hiddenfiles
touch hiddenfiles/hidden1.doc
su -c 'mount /dev/sda1 hiddenfiles'
Now when you ls hiddenfiles you will just see the root filesystem, hidden1.doc will not be viewable unless root umounts the directory.

Can't see why this would be useful though.
Reply With Quote
  #5  
Old 25th February 2009, 09:52 PM
AdamW's Avatar
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,760
"Are there still people who haven't aliased ls to at least 'ls -a'? "

Well, er, yes, because I don't always want to see hidden files...
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
Reply With Quote
  #6  
Old 25th February 2009, 11:57 PM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
Quote:
Originally Posted by RupertPupkin View Post
Hidden files can always be seen anyway. Are there still people who haven't aliased ls to at least 'ls -a'?
I have not aliased ls. And anyway, I don't need to hide files from the command line. Hiding them in GUI applications such as Dolphin would be plenty.

Quote:
Originally Posted by sideways View Post
I don't think you can hide arbitrary individual files, but you can hide all files in a given directory by mounting it as root directory for instance. Only root can umount to make the files visible again.

Can't see why this would be useful though.
LOL, no, neither can I. But thanks anyway.
Reply With Quote
  #7  
Old 26th February 2009, 12:24 AM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
I don't have Dolphin, but in Nautilus, you just click on View and un-check Show Hidden Files.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #8  
Old 26th February 2009, 12:27 AM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
Quote:
Originally Posted by sidebrnz View Post
I don't have Dolphin, but in Nautilus, you just click on View and un-check Show Hidden Files.
Yes, but I am pretty sure that only hides files beginning with ".".
Reply With Quote
  #9  
Old 26th February 2009, 12:47 AM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
Well, yes, of course. But then, in Linux (or any form of Unix, for that matter) a hidden file is a file who's name starts with "." so that's exactly what you'd expect, isn't it?
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #10  
Old 26th February 2009, 12:51 AM
SpectrumDT Offline
Registered User
 
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314
Quote:
Originally Posted by sidebrnz View Post
Well, yes, of course. But then, in Linux (or any form of Unix, for that matter) a hidden file is a file who's name starts with "." so that's exactly what you'd expect, isn't it?
And that is exactly my problem.

Not all files can be renamed without a price. For example, LaTeX generates a bunch of auxiliary files (.ind, .idx, .aux, .bib...) that I almost never need to edit manually, so I would like to hide them. But of course, if I rename them LaTeX won't be able to find them and will have to create new ones...
Reply With Quote
Reply

Tags
files, hide, renaming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
renaming files in the directory creeping death Programming & Packaging 18 21st May 2009 04:24 PM
Amarok renaming files trigpoint Using Fedora 0 2nd January 2008 12:32 PM
many files renaming pitat450 Using Fedora 3 9th February 2006 09:44 PM
renaming files with sed Sarnix Using Fedora 6 4th June 2005 05:43 PM
renaming rpmbuild --rebuild files robghealey Using Fedora 4 15th April 2005 11:13 AM


Current GMT-time: 07:28 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat