LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Enter directory with name "." (https://www.linuxquestions.org/questions/linux-security-4/enter-directory-with-name-673049/)

RattleSn@ke 09-29-2008 06:20 AM

Enter directory with name "."
 
Hi there,

We have some strange directories on a server, see listing below:
root: /var/tmp # ls -lash
total 2078
2 drwxrwxrwt 14 root wheel 2.0K Sep 29 12:27 .
2 drwxr-xr-x 3 1018 wheel 512B Dec 6 2006 .
2 drwxr-xr-x 29 root wheel 512B Aug 3 2007 ..

As you see, there is a directory named ".", but I can't figure out how to enter this directory. And ofcourse I don't mean the single-dot dir that means 'current directory'!

Thanks!
Onno.

bkcreddy17 09-29-2008 06:43 AM

Code:

2 drwxrwxrwt 14 root wheel 2.0K Sep 29 12:27 .
this is a soft link create to
Code:

2 drwxr-xr-x 3 1018 wheel 512B Dec 6 2006 .
using
Code:

#ln -s ./
which is a current directory.
you can remove the soft link by
Code:

#rmdir ./
or
#rm -rf ./



All times are GMT -5. The time now is 02:58 AM.