LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2006, 04:40 AM   #1
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Linux And Hidden Files


It just dawned on me

How do i mark files as hidden
other than prefix .?

i want to hide the fxd and Jpg files Freevo leaves everywhere.
 
Old 01-20-2006, 05:36 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Only way I know of is the . in front of the name. You could throw them all in a .directory that is hidden.
 
Old 01-20-2006, 07:03 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
theres really no way to "hide" files. The traditional way to is to use a "." prefix, even then, the files not hidden, its just a common convention.

You could, however, get a patch that can actually hide files. there is one distro that uses some new file system layout (but i forget its name, sorry), im told it uses a patch that causes Linux to hide files, but the files are still assessable if you try to open them (that way, programs still function, and the user sees a new file system layout)
 
Old 01-20-2006, 07:19 AM   #4
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by SciYro
theres really no way to "hide" files. The traditional way to is to use a "." prefix, even then, the files not hidden, its just a common convention.

You could, however, get a patch that can actually hide files. there is one distro that uses some new file system layout (but i forget its name, sorry), im told it uses a patch that causes Linux to hide files, but the files are still assessable if you try to open them (that way, programs still function, and the user sees a new file system layout)
i'm not really after secure hiding just hide them from cluttering directory listings
 
Old 01-20-2006, 07:36 AM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
what about using a filter in your file manager?
 
Old 01-20-2006, 06:09 PM   #6
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by SciYro
what about using a filter in your file manager?
yea i use the on in konqueror

just hoping there something a little more universal.
 
Old 01-20-2006, 08:21 PM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I'm not seeing what the problem with using dotfiles is. They were created for exactly your purpose...
 
Old 01-20-2006, 10:53 PM   #8
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by bulliver
I'm not seeing what the problem with using dotfiles is. They were created for exactly your purpose...
i wanted to avoid editing all the XML files that frevo creates.

pointing to the jpg files without a dot.
 
Old 01-21-2006, 12:08 PM   #9
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
universal?!?!!?!??!?!?!

its X, its not universal. KDE and GNOME might use X, but they are not compatible, neither are they compatible with other file managers.
 
Old 01-21-2006, 07:36 PM   #10
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by SciYro
universal?!?!!?!??!?!?!

its X, its not universal. KDE and GNOME might use X, but they are not compatible, neither are they compatible with other file managers.
whats the rant about?

universal = Console, Desktop Environment, and X apps.

filter in konqueror doesnt hide things all the time from browsing in other programs, the console etc


i guess there just isnt a hidden tab like Windows.


i'll have edit freevo and all the fxd files to make it read fxd files in a completely different directory or change the names to have dots in them.

Last edited by carl0ski; 01-21-2006 at 07:45 PM.
 
Old 01-22-2006, 01:21 AM   #11
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
The point is that dotfiles serves the exact same purpose as the hidden bit in Windows -- they are both purely for aesthetic convention -- and they have no security or access implications. Individual programs decide how to handle the display of listings of files in directories and whether to hide certain stuff. Perhaps there are some Linux programs that are implemented in a way that doesn't properly hide dotfiles, or intentionally shows them; but that is not a fault of dotfiles or the system. Just like you can easily list hidden files in Windows if you wanted to.
 
Old 01-22-2006, 01:21 AM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
i'll have edit freevo and all the fxd files to make it read fxd files in a completely different directory or change the names to have dots in them.
I don't know how freevo is set up, but it may be easier to take Trickykid's suggestion and leave the filenames alone, but configure it to place them in a dot directory.
 
Old 01-22-2006, 02:31 AM   #13
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by bulliver
I don't know how freevo is set up, but it may be easier to take Trickykid's suggestion and leave the filenames alone, but configure it to place them in a dot directory.
Freevo by default reads/creates
a .fxd database file and a .jpg
of the identical name of the .avi/video file
in the same directory as the video file is located

the .fxd keeps a refernce to the the .jpg so i cant edit it manually to a different dir or add . to it.

but fxd is going to be tricky considering i must be in the same dir as the file.
 
Old 01-22-2006, 07:25 PM   #14
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
thats what the dotfile is for.

Its that, or use a kernel patch, because there is no way to hide anything in the file system across programs that each read the file system, and determine how it should be shown to you, short of a kernel patch, or a filter on glibc using a LD_PRELOAD thing to add a filter (which i think hasn't been done, so youd have to make it yourself).

And in windows, its all the same environment, what your asking for is completely different.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidden files? sonic04002 Linux - Newbie 2 11-09-2005 01:48 PM
Linux Hidden files ajkannan83 Linux - Software 5 10-06-2005 02:29 AM
hidden files Jeebizz Slackware 4 04-22-2005 07:18 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
hidden files Alwyn Linux - Newbie 2 01-27-2005 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 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