LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   @ character in directory or command listing (https://www.linuxquestions.org/questions/linux-newbie-8/%40-character-in-directory-or-command-listing-4175455975/)

mett23 03-28-2013 09:17 PM

@ character in directory or command listing
 
Hi,

I'm wondering what is the meaning of the @ character when you're listing directories or as the result of a command like netstat.
For example: "@/var/run/hald/"

Is that a kind of symbolic link reference or socket?
Or is it a kind of temporary process which will disappear?

I couldn't find it on the net, the ascii charset says it means a nul character but I don't think it is related.

I was wondering where I should look for it.

10x!

evo2 03-28-2013 09:37 PM

Hi,

if you are using 'ls -F' then a "@" at the *end* of the filename indicates that it is a symlink. I'm not familiar with seeing a "@" *before* the filename. You can get more information about the files you are looking at using 'ls -l'.

HTH,

Evo2.

shivaa 03-28-2013 10:59 PM

Those are actually socket files:
Code:

~$ ls -l @/var/run/hald/
ls: cannot access @/var/run/hald/: No such file or directory

~$ ls -l /var/run/hald/
srwxrwxrwx ------------ /var/run/hald/
~$ file /var/run/hald/
/var/run/hald/: socket

As far as I am concerned, '@' before filename is just a pointer that points to a particular port.

mett23 03-29-2013 09:53 PM

thanks a lot!


All times are GMT -5. The time now is 03:59 AM.