SUMMARY 2: Can't see a directory...

From: Bousquet Francois <Francois.Bousquet_at_cgi.ca>
Date: Tue Jul 20 2004 - 13:05:28 EDT
To delete the file or folder:

Use "ls -li" to get the inode number (first column)

then 

find . -type d -inum 125842 -exec rm -r '{}' \;

to delete the folder or file


-----Original Message-----
From: Bousquet Francois [mailto:Francois.Bousquet@cgi.ca]
Sent: July 20, 2004 12:20 PM
To: Mailing List - SunManagers (E-mail)
Subject: SUMMARY: Can't see a directory...


An "ls -lb" command is the answer..

Thanks everyone for the quick answer.

-----Original Message-----
From: Bousquet Francois
Sent: July 20, 2004 11:16 AM
To: Mailing List - SunManagers (E-mail)
Subject: Can't see a directory...


When I list the content of /etc something weird happens :

# ls -l /etc
total 517
lrwxrwxrwx   1 root     root          14 Jul  9  2002 TIMEZONE ->
./default/init
drwxr-xr-x   2 adm      adm          512 Jul 10  2002 acct
lrwxrwxrwx   1 root     root          14 Jul  9  2002 aliases ->
./mail/aliases
drwxr-xr-x   2 root     sys          512 Jul  9  2002 ami
drwxr-xr-x   2 root     bin          512 Jul 10  2002 apache
-rwxr--r--   1 root     sys          360 Jul 10  2002 asppp.cf

[ removed to simplify output ]

lrwxrwxrwx   1 root     root          19 Jul  9  2002 volcopy ->
../usr/sbin/volcopy
-r--r--r--   1 root     bin          962 Jul 10  2002 vold.conf
lrwxrwxrwx   1 root     root          16 Jul  9  2002 wall ->
../usr/sbin/wall
lrwxrwxrwx   1 root     root          17 Jul  9  2002 whodo ->
../usr/sbin/whodo
lrwxrwxrwx   1 root     root          16 Jul  9  2002 wtmpx ->
../var/adm/wtmpx
drwxr-xr-x   2 root     sys          512 Aug 19  20
#


Now look at the last line of the ls command output, there is a directory
with an invisible name and a wierd date ?

How can I "cd" into it ?
How can I "ls" its content ?
How can I "rm" it ?


- Frangois
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Jul 20 13:20:39 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:35 EST