NEW
Font size
WorksheetsFiles and Directories
Total questions: 10
Worksheet time: 5mins
What are file permissions used for?
File permissions are used to delete files.
File permissions are used to encrypt files.
File permissions are used to organize files.
File permissions are used to control access to files.
What is the purpose of the File System Hierarchy?
To encrypt files and directories for security purposes
To provide a structured organization and storage system for files and directories in an operating system.
To create a backup of files and directories
To limit access to certain files and directories
Name three file manipulation commands.
ls, cd, touch
grep, sed, awk
chmod, chown, chgrp
cp, mv, rm
How do you navigate to a parent directory in the command line?
cd /
cd ~
cd /parent
cd ..
What is the importance of file system organization?
File system organization is only important for security purposes.
File system organization is important for efficient storage, data access, performance, and security.
File system organization only affects data access.
File system organization has no importance.
What are the three types of file permissions?
read, write, execute
start, stop, pause
copy, paste, delete
open, save, close
What is the root directory in the File System Hierarchy?
/
/var
/home
/root
How do you create a new directory in the command line?
mkdir [directory_name]
rm [directory_name]
touch [directory_name]
cd [directory_name]
What is the purpose of the 'ls' command?
To create a new file.
To delete files and directories.
To rename files and directories.
To list files and directories.
What is the difference between absolute and relative paths?
Absolute paths specify the exact location of a file or directory in relation to the root directory, while relative paths specify the location of a file or directory in relation to the current working directory.
Absolute paths and relative paths are the same thing.
Absolute paths are used for files and relative paths are used for directories.
Absolute paths specify the location of a file or directory in relation to the current working directory, while relative paths specify the exact location of a file or directory in relation to the root directory.
