cat /etc/passwd root:x:0:0:root:/root:/bin/bash # 1) The first root is the username. # 2) The character x is used as a placeholder for password. # 3) 0 is the user ID for this user. # 4) 0 is the group ID for this user. # 5) The next root is a comment about this user. # 6) /root is the home directory for this user. # 7) And finally /bin/bash is the shell for this user.
ls -l -rw-r--r-- 1 username groupname 1031 Nov 18 09:22 /etc/passwd # 1) The first "-" is type of file (d - directory, s - special file, and - for a regular file); # 2) The next three chars (rw-) define the owner’s permission to the file. # 3) The next three chars (r–) are the permissions for the members of the same group as the file owner. # 4) The last three characters (r–) show the permissions for all other users # Print tree of nested folders namei -om /home/username/website/public