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.
Community Discussion