Question: Write a command that will output the contents of the working directory, parent directory, home directory, root directory, Write a command that will list the
- Write a command that will output the contents of the working directory, parent directory, home directory, root directory,
- Write a command that will list the directory structure of your home directory. That is to say, all the directories in your home directory and all the directories within those and so on.
- a) Assume you are in your home directory. Write a command that will change your directory to Documents using an absolute path. Then, write a command that will do the same but with a relative path.
b) Assume you are in your Desktop directory. Write a command that will change your directory to Documents using an absolute path. Then, write a command that will do the same but with a relative path.
- Write a command that will create a directory called Toaster in your Documents directory.
- Write a command that will create a file called bagel.txt that contains the text NYC has the best! inside the Documents directory.
- First, write a command that will list the contents of the Toaster directory. Then write a command that will move the bagel.txt file into the Toaster directory and list the contents again. Finally, write a command that will move the file back to your Documents directory and list the contents of Toaster
- Write a command that will create a new directory in Documents named Fridge. Create a blank file in the Fridge directory named orangejuice.txt using absolute and relative paths.
- Write a command that will create a symbolic link of orangejuice.txt to the Toaster directory using absolute and relative paths.
- Write a command that will duplicate the bagel.txt and rename the file danish.txt. Change the contents of danish.txt to say "Danishes are better than bagels". Add the line "Bagels are better than danishes" to the bagel.txt file.
- Write a command that will remove the file from the previous question that contains a lie. Points will be deducted for choosing the incorrect file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
