Linux Quiz

  1. Assume you are in your home directory, write the command to create directory EXAM, and then write a commang to change to directory EXAM

  2. Assume you are in directory EXAM, write a command to create a directory LAB and then change to directory LAB

  3. Write a command that displays the current directory you are in, and write the path to the directory you are currently in (YOU SHOULD BE IN DIRECTORY LAB under directory EXAM, which is under your home directory)

  4. Assume you are in your home directory and you have file yana.py there. Write a command to COPY this file to directory LAB keeping the same name.

  5. Assume you are in directory LAB. Write a command to COPY yana.py inside the same directory LAB. Name this new file, copyYana.py

  6. Assume you are in your home directory, write ONE command to change to directory LAB and then write a command to list the content of the directory LAB (what files and other directories are in directory LAB)

  7. Assume you are in your home directory, assume you have a file hello.py there, write a command to MOVE this file from home directory to directory EXAM

  8. Assume you are in directory LAB and you have 2 files there: yana.py and copyYana.py Write a command/commands to COPY both files to directory EXAM keeping the same names.

  9. Assume you are in your home directory, write a command to REMOVE file yana.py from home directory.

  10. Assume you are in your home directory write a command/commands to REMOVE directory LAB.

  11. Assume you are in your home directory. Write a command to remove directory EXAM.

  12. Assume you are in your home directory and you have a file program.py there. Write a command to RENAME this file in the same directory. The name of the new file should be bony.py