QuestionQ8

Storage

Which set of file permission characters corresponds to a symbolic link?

  • A -rwxrwxrwx
  • B +rwxrwxrwx
  • C lrwxrwxrwx
  • D srwxrwxrwx
Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!