In: Computer Science
What are the permissions for your home directory set by your system administrator? What command did you use to answer the question? Show your session.
What is a home directory?
A home directory is a directory given to a user on a Linux operating system.
Commands:
To know which is the home directory:
$ pwd
To know what are the permissions:
$ ls -l
Session output:
Explanation:
The very first character on the line indicates the file type. A dash (-) is an ordinary file. A (d) indicates a directory, and other characters can indicate other special file types.
The next nine characters indicate the permissions for the file or directory. The nine characters consist of three groups of three, showing the permissions for the
1) owner,
2) the owner's group, and
3) the world, respectively.
'r' denotes read.
'w' denotes write.
'x' denotes execute.