CS计算机代考程序代写 1. Assume dir abc does not exist in your pwd. Write the commmand line to create directory def inside directory abc thereby creating both directories at the same time with that one command line.

1. Assume dir abc does not exist in your pwd. Write the commmand line to create directory def inside directory abc thereby creating both directories at the same time with that one command line.

A:

2. What command line and explanation confirms the previous command completed successfully.

A:
3. Write the command line to remove directory abc and its contents?

A:

4. What command line and explanation confirms the previous command completed successfully.

A:

5. Assume your pwd has no files or directories. Create an empty file abc with present date and time, next create an empty directory called abc. What happens and Why?

A:

6. Assume your pwd has no files or directories. Create an empty directory abc, using touch try create an empty file called abc. What happens and Why?

A:

7. (2 Marks) You got an error message when doing Q5 but not when doing Q6. Why? Explain the purpose of the touch command and give a legitimate use case for using touch to change a file’s timestamp.

A:

• (2 Marks) What are the two ways to remove an empty directory? Explain with a use case where each command might be used?
A: