Linux Quiz Preparation

1. What directory you are in when you login to our Unix system? Write the path of that directory.

2. What is a command to RENAME the file?

3. Assume you are in your home directory, write the command to create directory LAB and the command to change to directory LAB

4. Assume you are in your home directory and you have file hello.py there. Write a command to MOVE this file to directory LAB you just created

5. Assume you are in home directory, write a command to REMOVE file hello.py from home directory

6. Assume you are in home directory, write a command to change to directory LAB , and to create a new directory EXAM under directory LAB

7. Assume you are in home directory, write a command to change to directory EXAM

8. Assume you are in home directory, assume you have a file yana.py there, write a command to COPY this file from home directory to directory EXAM

9. Assume you are in home directory and you have 3 files: p1.py, p2.py and p3.py. Write a command to MOVE ALL 3 files to directory LAB. Try to write ONE command for this task!

10. Assume you are in home directory, write a command to REMOVE directory EXAM