Solved

Redhat9 hidden folder - Howto

Posted on 2004-03-24
3
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Title # Comments Views Activity
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 130
linux - yum package installation issue 2 156
Internal CA server 6 131
Zimbra and Renewing SSL Certficate 9 53
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

738 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