16

I'm running the zsh shell in emacs. When I run ls I get a = at the end of .sock files. What does the = mean? Is it unique to unix sockets?

18

According to the coreutils documentation under --classify (alias -F), = is for sockets:

Append a character to each file name indicating the file type. Also, for regular files that are executable, append ‘*’. The file type indicators are ‘/’ for directories, ‘@’ for symbolic links, ‘|’ for FIFOs, ‘=’ for sockets, ‘>’ for doors, and nothing for regular files. Do not follow symbolic links listed on the command line unless the --dereference-command-line (-H), --dereference (-L), or --dereference-command-line-symlink-to-dir options are specified.

3
  • Neato, thank you. Never heard of doors as a formal name before. – Edgar Aroutiounian Jan 1 '14 at 16:35
  • 2
    and if you didn't actually type --classify or --indicator-style=classify, it was probably added by an alias. – Robin Green Jan 1 '14 at 16:36
  • 1
    @EdgarAroutiounian Doors are a Solaris feature, not widely adopted, and in particular not available on Linux. – Gilles 'SO- stop being evil' Jan 1 '14 at 23:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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