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

25th February 2009, 02:06 PM
|
|
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.
|

25th February 2009, 02:16 PM
|
 |
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.
|

25th February 2009, 07:49 PM
|
 |
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'?
|

25th February 2009, 08:27 PM
|
 |
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.
|

25th February 2009, 09:52 PM
|
 |
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...
|

25th February 2009, 11:57 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314

|
|
Quote:
Originally Posted by RupertPupkin
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
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.
|

26th February 2009, 12:24 AM
|
 |
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.
|

26th February 2009, 12:27 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314

|
|
Quote:
Originally Posted by sidebrnz
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 ".".
|

26th February 2009, 12:47 AM
|
 |
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.
|

26th February 2009, 12:51 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Farum, Denmark
Age: 28
Posts: 314

|
|
Quote:
Originally Posted by sidebrnz
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...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 07:28 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|