Linux Quiz

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

  2. Assume you are in directory LAB, and assume you have a file hello.py in directory LAB. Write a command to MOVE the file from directory LAB to HOME directory keeping the same name

  3. Assume you are in directory LAB, write a command to create directory QUIZ and then write a commang to change to directory QUIZ

  4. Assume you are in directory QUIZ, write a command to go back to directory LAB

  5. Assume you are in directory LAB, and assume you have a file yana.py in directory LAB. Write a command to COPY the file from directory LAB to directory QUIZ changing the name of the file to bony.py

  6. 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 your HOME directory)

  7. Assume you are in your home directory and you have file hello.py there. Write a command to COPY this file to directory QUIZ keeping the same name.

  8. Assume you are in directory QUIZ. Write a command to RENAME hello.py inside the same directory QUIZ. Name this new file, copyHello.py

  9. Assume you are in your home directory, write ONE command to change to directory QUIZ and then write a command to list the content of the directory QUIZ. List all files you currently have in directory QUIZ

  10. Assume you are in directory QUIZ. Write a command to create directory TEST

  11. Assume you are in directory QUIZ. Write a command to COPY file bony.py to directory TEST keeping the same name

  12. Assume you are in directory QUIZ. Write a command to change to directory TEST and list all files that currently in the directory TEST

  13. Assume you are in directory TEST. Write a path to this directory and then write a command to go back to yout HOME directory

  14. Assume you are in your HOME directory. Write one command to change to directory TEST

  15. Assume you are in directory TEST. Write a command to change to directory QUIZ which is one level ubove and then write a command to REMOVE directory TEST

  16. Assume you are in your HOME directory. Write a command to REMOVE directory LAB

  17. Assume you are in your HOME directory. Can you change to directory QUIZ? Explain your answer.

  18. Assume you are in your HOME directory and you have a file program.py there. Write a command to REMOVE (delete) this file

  19. Assume you are in your HOME directory and you have file quiz.py there. Write a program to RENAME the file to new_quiz.py

  20. Assume you are in your HOME directory and yuo have file new_quiz.py there. Write a program to COPY the file in the same directory. Name the copy file: copy_new_quiz.py