|
|
| Next: Seriously - What's the point of Fedora? |
| Author |
Message |
bob123 External

Since: Nov 04, 2010 Posts: 8
|
Posted: Sat Dec 04, 2010 3:10 am Post subject: Hidden directory Archived from groups: comp>os>linux>setup (more info?) |
|
|
Hi,
How I can see what is in this weird directory ? (first below)
Thanks in advance
[root@cbsl29 util]# ls -lbi
total 44
1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
655361 drwxr-xr-x 2 root root 4096 Oct 13 16:04 Drivers\ Emulex
835585 drwxr-xr-x 3 root root 4096 Oct 13 16:10 Drivers\ HBA\ Anywhere
2228225 drwxr-xr-x 2 root root 4096 Oct 21 16:26 Drivers\ HP
786433 drwxr-xr-x 2 root root 4096 Oct 13 19:25 Drivers\ Powerpath
11 drwx------ 2 root root 16384 Apr 4 2010 lost+found |
|
| Back to top |
|
 |
François_Patte External

Since: Jun 06, 2004 Posts: 32
|
Posted: Sat Dec 04, 2010 4:10 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Le 04/12/2010 08:08, bob123 a écrit :
> Hi,
>
> How I can see what is in this weird directory ? (first below)
>
> Thanks in advance
>
> [root@cbsl29 util]# ls -lbi
> total 44
> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
ls -l Oct\ 18Tab
With the Tab key, bash will make the correct completion of what it sees
after 18
--
François Patte
Université Paris Descartes |
|
| Back to top |
|
 |
bob123 External

Since: Nov 04, 2010 Posts: 8
|
Posted: Sat Dec 04, 2010 4:10 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
OK
are your sure ?
the name is \177\177\177
not Oct 18 14:23 \177\177\177
no ?
"François Patte" a écrit dans le
message de groupe de discussion : idctjp$6s9$1@speranza.aioe.org...
> Le 04/12/2010 08:08, bob123 a écrit :
>> Hi,
>>
>> How I can see what is in this weird directory ? (first below)
>>
>> Thanks in advance
>>
>> [root@cbsl29 util]# ls -lbi
>> total 44
>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>
> ls -l Oct\ 18Tab
>
> With the Tab key, bash will make the correct completion of what it sees
> after 18
>
> --
> François Patte
> Université Paris Descartes |
|
| Back to top |
|
 |
Lew Pitcher External

Since: May 16, 2007 Posts: 92
|
Posted: Sat Dec 04, 2010 10:55 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On December 4, 2010 02:08, in comp.os.linux.setup, nomail.RemoveThis@nowhere.com wrote:
> Hi,
>
> How I can see what is in this weird directory ? (first below)
>
> Thanks in advance
>
> [root@cbsl29 util]# ls -lbi
> total 44
> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
Assuming that you use the bash shell, the command
ls -a $'\177\177\177'
should list the contents of the directory.
[snip]
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------ |
|
| Back to top |
|
 |
Lew Pitcher External

Since: May 16, 2007 Posts: 92
|
Posted: Sat Dec 04, 2010 12:12 pm Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On December 4, 2010 10:55, in comp.os.linux.setup, lpitcher.RemoveThis@teksavvy.com
wrote:
> On December 4, 2010 02:08, in comp.os.linux.setup, nomail.RemoveThis@nowhere.com
> wrote:
>
>> Hi,
>>
>> How I can see what is in this weird directory ? (first below)
>>
>> Thanks in advance
>>
>> [root@cbsl29 util]# ls -lbi
>> total 44
>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>
> Assuming that you use the bash shell, the command
>
> ls -a $'\177\177\177'
>
> should list the contents of the directory.
Oops....
That will work if the directory is named with a binary name.
OTOH, if the directory name is literally "\177\177\177", then
ls -a '\177\177\177'
should list the contents of the directory.
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------ |
|
| Back to top |
|
 |
The Natural Philosopher External

Since: Jul 06, 2009 Posts: 186
|
Posted: Sat Dec 04, 2010 3:10 pm Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Lew Pitcher wrote:
> On December 4, 2010 10:55, in comp.os.linux.setup, lpitcher.RemoveThis@teksavvy.com
> wrote:
>
>> On December 4, 2010 02:08, in comp.os.linux.setup, nomail.RemoveThis@nowhere.com
>> wrote:
>>
>>> Hi,
>>>
>>> How I can see what is in this weird directory ? (first below)
>>>
>>> Thanks in advance
>>>
>>> [root@cbsl29 util]# ls -lbi
>>> total 44
>>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>> Assuming that you use the bash shell, the command
>>
>> ls -a $'\177\177\177'
>>
>> should list the contents of the directory.
>
> Oops....
>
> That will work if the directory is named with a binary name.
>
> OTOH, if the directory name is literally "\177\177\177", then
It would show up as "\\177\\177\\177"
in an ls command
>
> ls -a '\177\177\177'
>
> should list the contents of the directory.
>
indeed, but it isn't.
> HTH |
|
| Back to top |
|
 |
Lew Pitcher External

Since: May 16, 2007 Posts: 92
|
Posted: Sat Dec 04, 2010 3:10 pm Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On December 4, 2010 14:13, in comp.os.linux.setup, tnp RemoveThis @invalid.invalid
wrote:
> Lew Pitcher wrote:
>> On December 4, 2010 10:55, in comp.os.linux.setup, lpitcher RemoveThis @teksavvy.com
>> wrote:
>>
>>> On December 4, 2010 02:08, in comp.os.linux.setup, nomail RemoveThis @nowhere.com
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> How I can see what is in this weird directory ? (first below)
>>>>
>>>> Thanks in advance
>>>>
>>>> [root@cbsl29 util]# ls -lbi
>>>> total 44
>>>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>>> Assuming that you use the bash shell, the command
>>>
>>> ls -a $'\177\177\177'
>>>
>>> should list the contents of the directory.
>>
>> Oops....
>>
>> That will work if the directory is named with a binary name.
>>
>> OTOH, if the directory name is literally "\177\177\177", then
>
> It would show up as "\\177\\177\\177"
>
> in an ls command
Not necessarily....
~/tmp $ ls
~/tmp $ mkdir '\177\177\177'
~/tmp $ ls -a
. .. \177\177\177
It depends on what your ls(1) defaults are.
>> ls -a '\177\177\177'
>>
>> should list the contents of the directory.
>>
>
> indeed, but it isn't.
>> HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------ |
|
| Back to top |
|
 |
bob123 External

Since: Nov 04, 2010 Posts: 8
|
Posted: Sun Dec 05, 2010 6:10 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
it is a binary name
thanks
"Lew Pitcher" a écrit dans le message de groupe de
discussion : 7HwKo.4399$%83.1830@newsfe16.iad...
> On December 4, 2010 14:13, in comp.os.linux.setup, tnp.DeleteThis@invalid.invalid
> wrote:
>
>> Lew Pitcher wrote:
>>> On December 4, 2010 10:55, in comp.os.linux.setup, lpitcher.DeleteThis@teksavvy.com
>>> wrote:
>>>
>>>> On December 4, 2010 02:08, in comp.os.linux.setup, nomail.DeleteThis@nowhere.com
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> How I can see what is in this weird directory ? (first below)
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> [root@cbsl29 util]# ls -lbi
>>>>> total 44
>>>>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>>>> Assuming that you use the bash shell, the command
>>>>
>>>> ls -a $'\177\177\177'
>>>>
>>>> should list the contents of the directory.
>>>
>>> Oops....
>>>
>>> That will work if the directory is named with a binary name.
>>>
>>> OTOH, if the directory name is literally "\177\177\177", then
>>
>> It would show up as "\\177\\177\\177"
>>
>> in an ls command
>
> Not necessarily....
>
> ~/tmp $ ls
>
> ~/tmp $ mkdir '\177\177\177'
>
> ~/tmp $ ls -a
> . .. \177\177\177
>
> It depends on what your ls(1) defaults are.
>
>
>>> ls -a '\177\177\177'
>>>
>>> should list the contents of the directory.
>>>
>>
>> indeed, but it isn't.
>>> HTH
>
> --
> Lew Pitcher
> Master Codewright & JOAT-in-training | Registered Linux User #112576
> Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
> ---------- Slackware - Because I know what I'm doing. ------
>
> |
|
| Back to top |
|
 |
Nico Kadel-Garcia External

Since: Jul 05, 2009 Posts: 42
|
Posted: Sun Dec 05, 2010 7:09 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
On Dec 4, 2:08 am, "bob123" wrote:
> Hi,
>
> How I can see what is in this weird directory ? (first below)
>
> Thanks in advance
>
> [root@cbsl29 util]# ls -lbi
> total 44
> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
> 655361 drwxr-xr-x 2 root root 4096 Oct 13 16:04 Drivers\ Emulex
> 835585 drwxr-xr-x 3 root root 4096 Oct 13 16:10 Drivers\ HBA\ Anywhere
> 2228225 drwxr-xr-x 2 root root 4096 Oct 21 16:26 Drivers\ HP
> 786433 drwxr-xr-x 2 root root 4096 Oct 13 19:25 Drivers\ Powerpath
> 11 drwx------ 2 root root 16384 Apr 4 2010 lost+found
find . -exec ls -ld "{}" \;
That's not sorted, and it gives you all the other directories, too.
But the binary names are going to give you an adventure anyway.
And by the way, you can look up what those characters mean at
http://www.robelle.com/smugbook/ascii.html, and numerous sites. It
looks like someone accidentally named that directory with the "delete"
character, probably trying to correct a mistyped name while copying
material. It happens, but it shouldn't happen as root, eh? |
|
| Back to top |
|
 |
Dario Niedermann External

Since: Sep 13, 2009 Posts: 3
|
Posted: Sun Dec 05, 2010 9:10 am Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
bob123 wrote:
> How I can see what is in this weird directory ? (first below)
>
> Thanks in advance
>
> [root@cbsl29 util]# ls -lbi
> total 44
> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
find . -inum 1196033 -exec ls {} \;
--
> head -n1 /etc/*-{version,release} && uname -moprs
Slackware 12.2.0
Linux 2.6.27.31-smp i686 AMD Turion(tm) 64 Mobile Technology MK-36 GNU/Linux |
|
| Back to top |
|
 |
Doug Freyburger External

Since: Dec 06, 2010 Posts: 10
|
Posted: Mon Dec 06, 2010 1:10 pm Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
bob123 wrote:
> Hi,
>
> How I can see what is in this weird directory ? (first below)
>
> Thanks in advance
>
> [root@cbsl29 util]# ls -lbi
> total 44
> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
I take it that's the one you mean. It's name is <DEL><DEL><DEL>. Not
easy to type in most situations.
Most shell and terminal driver combinations allow you to quote the next
character with ^V.
Your keyboard is likely mapped to send ^H for Backspace but it might
be mapped to send <DEL> or /177 for Del.
Try "cd ^V<Del>^V<Del>^V<Del>" Sorry for the very ugly mixed notion
for 6 special characters.
> 655361 drwxr-xr-x 2 root root 4096 Oct 13 16:04 Drivers\ Emulex
Then again these files have spaces and backslashes in them. No good can
come from that. Unless you know why files with those names are there
(CIFS file sharing anyone?) consider cleaning them up. It's a lot
easier to "rm -ri *" than to play with quoting special characters. |
|
| Back to top |
|
 |
Michal Jaegermann External

Since: Jun 06, 2004 Posts: 64
|
Posted: Mon Dec 06, 2010 7:10 pm Post subject: Re: Hidden directory [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Doug Freyburger wrote:
> bob123 wrote:
>> Hi,
>>
>> How I can see what is in this weird directory ? (first below)
>>
>> Thanks in advance
>>
>> [root@cbsl29 util]# ls -lbi
>> total 44
>> 1196033 drwxr-xr-x 2 root root 4096 Oct 18 14:23 \177\177\177
>
> I take it that's the one you mean. It's name is <DEL><DEL><DEL>. Not
> easy to type in most situations.
Why do you need to type that directly? In bash:
echo -n -e "\0177\0177\0177" | od -c
See what you will get. Instead of "\0177" you can use "\x7f" if you
prefer.
$ mkdir -p $( echo -n -e "\0177\0177\0177" )/{a,b,c}
$ find $( echo -n -e "\0177\0177\0177" )
???
???/b
???/a
???/c
$ rm -rf $( echo -n -e "\0177\0177\0177" )
There is really not a whiff of a problem. Renaming this directory
is equally simple.
Michal |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|