Professional Documents
Culture Documents
Untitled
Untitled
Untitled
What is the
command(s) to verify you are in your home directory?
2. Create five directories name them: Bob, Dennis, John, Sue and Mary.
10. Change the file permissions to read only for Owner, Groups and Other on the file1.txt.
12. Display the contents of the shadow file in the etc directory
Last time the password was changed: the date of the last time the password was changed.
Minimum password age is the number of days a password must be used for before it can be changed.
Maximum password age: The most days a password can be used before it needs to be changed.
Password warning period: the number of days before the password expires that the user is warned.
Password inactivity period: The number of days after the password expires that the account is disabled.
Account expiration date: The date when the account will stop working.
13. Display the contents of the passwd file in the etc directory
The WGET command is a program that can be used to get files from the internet. It works with HTTP,
HTTPS, and FTP protocols and can be used in scripts or on the command line.
15. Explain the difference between relative and absolute path statements.
Relative path: A path that starts in the current directory and goes somewhere else. It doesn't start
with /, which means "root." ./subdirectory/file.txt is an example.
Absolute path: A path that starts with the root directory (/) and gives the full path to the file or
directory. /home/user/subdirectory/file.txt is an example.