Linux Quiz
- Assume you are in your home directory, write the command to create
directory EXAM, and then write a commang to change to directory EXAM
- Assume you are in directory EXAM, write a command to create a
directory LAB and then change to directory LAB
- 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)
- 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.
- Assume you are in directory LAB. Write a command to COPY
yana.py inside the same directory LAB. Name this new file, copyYana.py
- 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)
- 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
- 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.
- Assume you are in your home directory, write a command to REMOVE
file yana.py from home directory.
- Assume you are in your home directory write a command/commands to REMOVE
directory LAB.
- Assume you are in your home directory. Write a command to remove directory EXAM.
- 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