Solved

Redhat9 hidden folder - Howto

Posted on 2004-03-24
3
283 Views
Last Modified: 2010-04-20
How to hidden the folder in Redhat9 without using GUI such as GNOME or KDE...i mean in command line...thanks
0
Comment
Question by:learner79
3 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 10673850
normally you can create a hidden folder by add a dot infont of the folder name like this

mkdir .hiddenfolder

so the folder can not be see in normal way, but still can see using ls -al

if the folder already exist, try create as mentioned above and copy the data inside .

but why hidden it, try to thinking of protect it, that's mean restrict users to access other folders except his own by using chroot, have a check here http://www.tjw.org/chroot-login-HOWTO/
0
 
LVL 12

Accepted Solution

by:
stefan73 earned 20 total points
ID: 10675667
Hi learner79,

You can use all kinds of weird file names for your folder. For example, you can use the "cursor up" escape sequence in your file name:

perl -e 'rename "old file", "old file\x1b[A"'


Resulting in a different ls output:
sns452!mnstefan:~/other_stuff/hiding [107]> touch A B C
sns452!mnstefan:~/other_stuff/hiding [108]> ll
total 0
-rw-r--r--   1 mnstefan mnmaf          0 Mar 25 12:25 A
-rw-r--r--   1 mnstefan mnmaf          0 Mar 25 12:25 B
-rw-r--r--   1 mnstefan mnmaf          0 Mar 25 12:25 C
sns452!mnstefan:~/other_stuff/hiding [109]> perl -e 'rename "B", "B\x1b[A"'
sns452!mnstefan:~/other_stuff/hiding [110]> ll
total 0
-rw-r--r--   1 mnstefan mnmaf          0 Mar 25 12:25 A
-rw-r--r--   1 mnstefan mnmaf          0 Mar 25 12:25 C
sns452!mnstefan:~/other_stuff/hiding [111]>





More sequences:
http://www.inwap.com/pdp10/ansicode.txt

But that won't keep someone determined off your directory.

Cheers,

Stefan
0
 

Author Comment

by:learner79
ID: 10684199
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question