Linux Quiz
- Assume you are in your HOME directory, write the command to create
directory LAB, and then write a commang to change to directory LAB
- 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
- Assume you are in directory LAB, write a command to create directory QUIZ and then write a commang
to
change to directory QUIZ
- Assume you are in directory QUIZ, write a command to go back to directory LAB
- 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
- 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)
- 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.
- Assume you are in directory QUIZ. Write a command to RENAME
hello.py inside the same directory QUIZ. Name this new file, copyHello.py
- 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
- Assume you are in directory QUIZ. Write a command to create directory TEST
- Assume you are in directory QUIZ. Write a command to COPY file bony.py to directory TEST keeping
the same name
- Assume you are in directory QUIZ. Write a command to change to directory TEST and list all files
that currently in the directory TEST
- Assume you are in directory TEST. Write a path to this directory and then write a command to go
back
to yout HOME directory
- Assume you are in your HOME directory. Write one command to change to directory TEST
- 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
- Assume you are in your HOME directory. Write a command to REMOVE directory LAB
- Assume you are in your HOME directory. Can you change to directory QUIZ? Explain your answer.
- Assume you are in your HOME directory and you have a file
program.py there. Write a command
to REMOVE (delete)
this file
- 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
- 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