Unix File SystemDIrectory Help Please answer the questions i
Unix File System/DIrectory Help
Please answer the questions in the green boxes, thank you!
abs 1 of 3 A Y X CS210 Introduction to Unix cd: change current directory 1. Execute the command cd/var/log. What is your current working directory? 2. There is a directory named mail inside the /var/log directory. What is the absolute path to that directory? Given your working directory, what is the relative path to that directory? What is the relative path to the /var directory? Make sure you test your answers by running the cd command. 3. Execute cd r. What is your working directory? 4. Execute cd mjmora. What is your working directory? 5. Execute cd How does the charater modify the behavior of the cd command? 6. Absolute and relative pathnames can be mixed. Consider the following path /usr/include/curl/././. ////../boost/ random/. ./math. Simplify that path so it does not use relative references (hint: try it with the cd command). 7. The following diagram corresponds to a portion of the filesystem in blue Fill out the empty elements. To find the correct answers, you will need to navigate through the blue.cs.sonoma.edu file system using the cd command and use the ls directory to list files. golang pkg test api SrcSolution
cd: change directory questions
1) /var/log
2) absolute path is /var/log/mail
3) / (root directory) will be the current working directory
4) no such file or directory
5) cd - will switch you to the previous directory For example, if you are in /usr/bin/tmp, and go to /etc., you can type cd - to go back to /usr/bin/tmp. You can use this to toggle back and forth between two directories.
6)the final path will be /usr/include/boost/math
mkdir
1) -p|--parent will be used if you are trying to create a directory with top-down approach. That\'s create parent directory then child and so on iff none exists.
yes the command will succeed in making
2) mkdir -p /vehicles/bicycles/mountain
mkdir -p /vehicles/cars/pickup
mkdir -p /vehicles/cars/sedan/compact
mkdir -p /vehicles/cars/suv
mkdir -p /jet/cargo/
mkdir -p /jet/fighter
rm
1) rm -rf vehicles/cars/sedan
not answering all questions as per chegg policy we are supposed to give answers for first 4 questions
