- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "Magic" file/directory - how to ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 05:17 AM
08-03-2001 05:17 AM
"Magic" file/directory - how to ?
be that kind of file/directory that doesn't show up in directory listing, but can be accessed only when referenced explicitly by its name...
How is done such "magic" file? To my knowledge
"everything" is listed in directory list. Shouldn't (or I am wrong...) also be the matter od permissions. If you
can't access some file/directory you should at least from
viewing directory list see that the file is there...
Roman D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 06:44 AM
08-03-2001 06:44 AM
Re: "Magic" file/directory - how to ?
Maybe some invisible characters in front of the names or behind them, so you can not list them through regular command but can access them by exact name, try
ll *file_name
or ll file_name*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 06:50 AM
08-03-2001 06:50 AM
Re: "Magic" file/directory - how to ?
If you are talking of hidden directories like in DOS I dont think u can have them in Unix , however direcotires created with special characters or starting with . donot get listed in ls -l commnad but definaltey u can see them in ls -la option.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 06:52 AM
08-03-2001 06:52 AM
Re: "Magic" file/directory - how to ?
Perhaps you want to do an 'ls' with the '-a' and '-b' flags.
The '-a' (for non-root users) lists files whose names begin with a period (.).
The '-b' flag forces printing of nongraphic characters in octal \ddd notation.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 06:57 AM
08-03-2001 06:57 AM
Re: "Magic" file/directory - how to ?
The first, not so creative one is to use a file starting with a ".", e.g. ".foobar"
Non-root users will only see the file when using "ls -a".
The second, a bit more creative, is to create a file "foobar
In a similar way you can construct a file that becomes unvisible for specific situations.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2001 01:30 PM
08-03-2001 01:30 PM
Re: "Magic" file/directory - how to ?
Regards,
Shawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2001 09:33 PM
08-05-2001 09:33 PM
Re: "Magic" file/directory - how to ?
Well acording to what the are saying (System administration guide or something) every subdirectory
of the "snapshoted" directory has its own ".snapshot"
directory except that it is "hidden" and that "subdirectory
.snapshot" doesn't show in (normal) directory listing.
(they say if that wouldn't be so, many comandy like find, ls etc. would work correctly). They only "let" that "root"
".snapshot" directory is shown up...
I was just wondering how they do that... It doesn't fall
in my mind that can use "trick" with "control characters".
I will check...
Roman D .