Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I run netstat --all | grep ^unix some of the socket paths that are outputted are preceded with a '@' and some aren't. I've noticed that those preceded with a '@' don't show up when browsing the file system with ls but the rest do.

What are these two kinds of sockets and what is the difference between them?

share|improve this question
up vote 9 down vote accepted

These are abstract sockets, that live outside the filesystem namespace. netstat --unix, lsof -U and other commands print an @ sign instead of the nul byte that's at the start of the pathname.

share|improve this answer
What role do those abstract sockets play in general? – Geek Sep 22 '13 at 16:05
@Geek It's just a different namespace. There is no need for filesystem access and cleanup. On the other hand anyone can grab a well-known name, so you may have to check the credentials of the server process. – Gabriel Sep 22 '13 at 16:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.