IT LESSON 1 ,FILES AND FOLDERS
Answers of textbook exercises
Fill in the Blanks
- D e s k t o p is just another folder.
- A collection of information stored is called a f i l e.
- A collection of related files is called a f o l d e r.
- The command c d is used to move from one folder to another..
- The command c d . . is used to switch to the previous folder.
State True or False
- rm/del command is used to remove a file. -True
- mkdir command is used for creating a file. -False
- ls/dir command lists out only the files. -False
- cd command is used for going from one folder to the other. -True
- cd.. will take you to the root directory. -False
Match the Following
| d. cd cybersquare |
2. Go back to the parent folder | e. cd.. |
3. List all the files and directories | a. ls/dir |
4. Create a folder (directory) | b. mkdir foldername |
5. Go back to the root folder | c. cd/ |
Multiple choice questions
- Desktop is
- A folder
- A file
- Just a screen which holds nothing
- None of the above
- pwd/cd command is used to
- Find out your current directory in the terminal
- Show the current password
- Change the current password
- None of the above
- Command 1:cd /Users/cybersquare
Command 2:(Ubuntu/Windows):pwd/cd
will display the following.
- /Users/cybersquare
- cybersquare
- /users
- Cannot find out
- Command 1:mkdir cybersquare
Command 2:cd cybersquare
Which folder are you in now?
a. Can’t say
b.cybersquare
c. Root folder
d. The commands are wrong.
- cd stands for
- Change directory.
- Code directory
c. Cyber directory
d. None of the above
Answer in one word or one sentence
- What is a file?
A file is a collection of data which is stored on computer storage media.
- What is a folder?
A folder is a collection of related files that you have grouped together.
- What is a subfolder?
Folder inside another folder is called a subfolder.
- Write down the command to create a folder in your name on ubuntu/Windows?
mkdir foldername
- Write down the command to go to a parent folder on Ubuntu/Windows?
cd ..
Answer the following
- Explain the command rm/rmdir
The rm command is used to remove a file in Ubuntu/Linux/Mac. rmdir command is used to delete a folder in Windows.
- What is the use of command cd?
The command cd is used to change from one folder to the other. CD stands for change directory.
- What is the use of ls/dir command?
The ls/dir is used to list out files and folders inside the current directory.