Solved

Redhat9 hidden folder - Howto

Posted on 2004-03-24
3
281 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS vpc peering connection 1 48
Steps to follow for Maintenance of Servers 4 62
Run DOS2UNIX and then execute the command 21 70
VMware Tools Install On Linux Problem 3 58
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" …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

805 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