Problem 3 (12 points): Answer the following questions about the \'.\' and .. dir
ID: 3593046 • Letter: P
Question
Problem 3 (12 points): Answer the following questions about the '.' and .. directories assuming you are currently in the /usr/local/bin directory for each question a) What specific directory (absolute path) does .refer to (in this case)? b) What specific directory (absolute path) does ".. refer to (in this case)? c) f you were to run the command cd../../lib, what would be the new current working directory? (give the absolute path) d) If you were to run the command cd./system, what would be the new current working directory? (give the absolute path) e) Are the .' and'.. directories considered to be visible or hidden? LISTING FILES Problem 4 (10 points): Answer the following questions about the ls command a) What Is command line (flags) will display the filenames, the file sizes, and file type classifications in a single column, one per line? b) What Is command lne sts files and directories of the /var directory in a comma separated list along with the file inode number? c) The command Is -R / lists all files and directories in the root filesystem d) The command ls-ult displays the files in the current directory in long format sorted time e) Give a command for listing all of the files inside of the /sbin directory (including hidden files) as a comma-separated list, and sorted from most-recently modified to least-recently modified f) The Is command can colorize the output it displays (yours may or may not be turned on by default, but the man page will instruct you on how to turn it on). Using color to distinguish file allows users to quickly locate filesExplanation / Answer
a) '.' means that it is current directory.For example,generally we use single dot to run a script from home directory or some other location like ./install-app.sh. Which means that file is in the current directory.
b)'..' represents the directoryr above the current directory. That means it's a parent directory of current folder.
c) If we run the command cd ../../lib, then the corrent directory would be lib directory.
d) If we run the command cd ./system, then the file ./system will run.
e) These directories are considered to be visual.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.