Which set of file permission characters corresponds to a symbolic link?
In the long-format directory listing produced by commands such as ls -l, the very first character of the permission string denotes the file type. A regular file is shown with a leading -, a directory with d, a socket with s, and a symbolic link with l. Therefore, permissions displayed as lrwxrwxrwx identify the entry as a symbolic link, since the leading l is the designated file-type flag for links.
ls -l
-
d
s
l
lrwxrwxrwx
Community Discussion