1.
A ____________ is a set of data structures that usually resides on part of a disk and that holds directories of files.
Correct Answer
A. Filesystems
Explanation
A filesystem is a set of data structures that usually resides on part of a disk and holds directories of files. It provides a way for organizing and storing files in a hierarchical structure. It manages how files are stored, accessed, and organized on a storage device such as a hard drive or SSD. Filesystems also handle tasks such as file naming, file permissions, and file metadata. They are essential for the efficient and secure management of files on a computer system.
2.
A ____________ structure frequently takes the shape of a pyramid.
Correct Answer
C. Hierarchical
Explanation
A hierarchical structure frequently takes the shape of a pyramid because it is organized in a way where there are different levels or tiers, with each level being subordinate to the one above it. This creates a pyramid-like shape, with the highest level at the top and the lower levels branching out below it. This type of structure is commonly used in organizations, systems, and relationships where there is a clear chain of command or authority.
3.
The _______ is always at the top of a hierarchical structure.
Correct Answer
B. Root
Explanation
In a hierarchical structure, the root is always at the top. The root serves as the main or starting point of the structure, from which all other elements or nodes branch out. It is the foundation or base of the hierarchy, providing support and organizing the entire structure. Therefore, the root is the correct answer as it consistently occupies the topmost position in a hierarchical arrangement.
4.
Every file has a ______________.
Correct Answer
D. Filename
Explanation
The term "filename" refers to the name of a file, which is used to identify and distinguish it from other files. It is a common practice to assign a unique and descriptive name to each file, allowing users to easily recognize and locate specific files within a file system. The filename often includes a combination of letters, numbers, and symbols, and it may also include an extension to indicate the file type.
5.
_______________ give the shell and other programs information about you and your preferences.
Correct Answer
A. Startup Files
Explanation
Startup files are used to give the shell and other programs information about the user and their preferences. These files are executed when a user logs in and contain commands and settings that customize the user's environment. They can include configurations for the shell, environment variables, aliases, and other settings that the user wants to apply every time they start a session. By using startup files, users can conveniently set up their preferred environment and ensure that it is consistently applied whenever they log in.
6.
Command-line _______ dictates the ordering and separation of the elements on a command line.
Correct Answer
B. Syntax
Explanation
The term "command-line syntax" refers to the specific rules and structure that must be followed when entering commands on a command line interface. It dictates the proper ordering and separation of the elements, such as command names, options, and arguments, to ensure that the command is executed correctly.
7.
An ________ is an argument that modifies the effects of a command.
Correct Answer
B. Option
Explanation
An option is an argument that modifies the effects of a command. Options provide additional functionality or customization to a command by allowing the user to specify different settings or parameters. They are typically used to tailor the behavior of a command according to the user's requirements or preferences. Options can be specified alongside the command to alter its default behavior and achieve specific outcomes.
8.
To kill a line you must press _____________.
Correct Answer
B. Control+U
Explanation
To kill a line, you must press Control+U. This key combination is commonly used in text editors and command line interfaces to delete the entire line of text that the cursor is currently on. By pressing Control+U, you can quickly remove a line of text without having to manually select and delete it.
9.
A ________ is the execution of a command by Linux.
Correct Answer
A. Process
Explanation
In Linux, a process refers to the execution of a command or program. It is an instance of a running program that has its own memory space and resources. Linux operates on a multitasking environment, allowing multiple processes to run concurrently. Therefore, a process is the correct answer as it accurately describes the execution of a command in Linux.
10.
What feature prevents you from overwriting already existing files?
Correct Answer
C. Noclobbler
Explanation
The feature that prevents you from overwriting already existing files is "Noclobbler". This feature ensures that when you try to save a file with the same name as an existing file, it will not overwrite the existing file but instead prompt you to choose a different name or location for the new file. This helps to prevent accidental loss of data and allows you to manage your files more effectively.
11.
A ______ is a pointer to a file.
Correct Answer
A. Link
Explanation
A link is a pointer to a file. It is used to establish a connection or reference between different files or directories. It allows users to access or navigate to a specific file or directory location without having to physically move or copy the file. By using a link, users can easily organize and manage their files by creating shortcuts or references to the original file.
12.
________ changes permissions on a file or directory.
Correct Answer
D. Chmod
Explanation
Chmod is the correct answer because it is a command used in Unix-like operating systems to change the permissions of a file or directory. It allows the user to modify the read, write, and execute permissions for the owner, group, and others. This command is commonly used to control access to files and directories, ensuring the appropriate level of security and privacy.
13.
Where are temporary files stored?
Correct Answer
B. /tmp
Explanation
Temporary files are stored in the "/tmp" directory. This directory is commonly used by operating systems and applications to store temporary files that are only needed for a short period of time. It is a common practice to store temporary files in this directory because it is accessible to all users and can be easily cleaned up by the system. Other options listed (/temp, /usr/tmp, and Tmp) are not standard directories for storing temporary files.
14.
________ is where the Variable data is stored
Correct Answer
B. /var
Explanation
The correct answer is "/var" because in most computer systems, the "/var" directory is used to store variable data. This directory contains files that are expected to change in size and content as the system is running. It typically includes log files, temporary files, and other data that is not critical for the system to function properly.
15.
Cd does what?
Correct Answer
B. Changes the directory
Explanation
The command "cd" is used in the command line interface to change the current working directory. It allows the user to navigate through the file system by moving to a different directory. By typing "cd" followed by the desired directory name, the user can change their current location to that directory. Therefore, the correct answer is "Changes the directory".
16.
The ___ character can accommodate for 1 character as a wildcard.
Correct Answer
A. ?
Explanation
The "?" character can accommodate for 1 character as a wildcard.
17.
A __________ is a command that processes input stream of data and produces an output stream.
Correct Answer
C. Filter
Explanation
A filter is a command that processes an input stream of data and produces an output stream. Filters are commonly used in computer programming and operating systems to manipulate and transform data. They can be used to extract specific information, modify data, or perform calculations on the input stream. By applying a filter, the desired output is obtained by processing the input data in a specific way.
18.
The shell uses a _______ to connect standard output from one command and link it as the input to another command.
Correct Answer
B. Pipe
Explanation
A pipe is used by the shell to connect the standard output of one command and link it as the input to another command. This allows the output of the first command to be processed or used as input by the second command, enabling the chaining of multiple commands together in a Unix-like shell environment.
19.
What command sends output in two directions?
Correct Answer
A. Tee
Explanation
The command "Tee" sends output in two directions. It takes input from a source and sends it to both standard output and one or more files. This allows the user to view the output on the screen while simultaneously saving it to a file for future reference or analysis.
20.
A__________ structure frequently takes shape of a pyramid.
Correct Answer
D. Hierarchy
Explanation
A hierarchy is a structure that is often represented as a pyramid, with different levels or tiers of authority or importance. In a hierarchy, there is a clear chain of command or levels of power, with each level being subordinate to the one above it. This structure is similar to a pyramid, where the top level has the most authority and the lower levels have less authority. Therefore, a hierarchy frequently takes the shape of a pyramid.
21.
The Linux filesystem is called a?
Correct Answer
A. Tree
Explanation
The Linux filesystem is referred to as a "tree" because it follows a hierarchical structure similar to a tree. The root directory acts as the main trunk, and all other directories and files branch out from it. This tree-like structure allows for easy organization and navigation of files and directories within the Linux system.
22.
A______ is the part of the filename that follows an embedded period.
Correct Answer
C. Filename extensions
Explanation
The term "filename extensions" refers to the part of a filename that follows the embedded period. It is a common practice in computer systems to use filename extensions to indicate the file type or format. For example, in the filename "document.docx", the ".docx" part is the filename extension, which indicates that the file is a Microsoft Word document. Therefore, the correct answer is "Filename extensions".
23.
Every file has a______?
Correct Answer
B. Pathname
Explanation
A pathname is a string of characters that specifies the location of a file or directory in a file system. It provides the complete address or path to access a specific file or directory within the file system hierarchy. Therefore, every file has a pathname that uniquely identifies its location within the file system.
24.
A _________________ traces a path from the working directory to a file.
Correct Answer
A. Relative Pathname
Explanation
A Relative Pathname is a type of pathname that traces a path from the current working directory to a specific file. It does not start from the root directory but rather provides a relative path based on the current location. This allows for easier navigation and referencing of files within the directory structure.
25.
A________ is a command that processes an input stream of data to produce an output stream of data.
Correct Answer
A. Filter
Explanation
A filter is a command that processes an input stream of data to produce an output stream of data. Filters are commonly used in programming and computer systems to manipulate and transform data. They can be used to extract specific information, remove unwanted data, or modify the data in some way. By applying a filter to an input stream, the desired output stream is generated based on the specified criteria or operations.
26.
The _______ utility also accepts input from either a file or standard input.
Correct Answer
C. Lpr
Explanation
The utility "Lpr" is capable of accepting input from either a file or standard input.
27.
The ________ utility takes its input from the file specified on the command line, or when a file is not specified from standard input; it sends a output to standard output.
Correct Answer
C. Sort
Explanation
The "Sort" utility takes its input from the file specified on the command line, or when a file is not specified from standard input; it sends an output to standard output.
28.
The _________ utility displays the line containing the string you specify.
Correct Answer
A. Grep
Explanation
The correct answer is "Grep". Grep is a utility command in Unix and Unix-like operating systems that is used to search for a specific pattern or string in a file. It displays the line(s) that contain the specified string.
29.
A_______ is a series of one or more commands that can be connected by pipes.
Correct Answer
D. Jobs
Explanation
The correct answer is "jobs" because in a computer context, "jobs" refers to a series of one or more commands that can be connected by pipes. These commands can be executed sequentially or simultaneously, allowing for efficient data processing and manipulation. The use of pipes enables the output of one command to serve as the input for the next command, creating a chain of commands that perform a specific task or achieve a desired result.
30.
Changes access permissions on a file.
Correct Answer
D. Chmod
Explanation
Chmod is the correct answer because it is a command used to change the access permissions of a file. It allows the user to specify who can read, write, or execute the file. Pwd is used to print the current working directory, Getfacl is used to get the access control list of a file, Cd is used to change the current directory, and Mkdir is used to create a new directory.
31.
Displays a files’s ACL
Correct Answer
A. Getfacl
Explanation
Getfacl is the correct answer because it is a command that displays the Access Control List (ACL) of a file. ACL is a set of permissions that determine the access rights of users and groups to a file or directory. The Getfacl command allows users to view the specific permissions and access levels granted to different users and groups for a particular file.
32.
Associates you with another working directory.
Correct Answer
D. Cd
Explanation
The command "cd" is used to change the working directory in a command line interface. It allows you to navigate to a different directory in the file system. By using "cd", you can associate yourself with another working directory and access its contents.
33.
Displays the pathname of the working directory.
Correct Answer
A. Pwd
Explanation
The correct answer is "pwd" because it is a command that is used in Unix-based operating systems to display the current working directory. When you run the "pwd" command, it shows you the full pathname of the directory you are currently in. This can be useful when navigating through the file system or when you need to know the exact location of a particular file or directory.
34.
Creates a directory
Correct Answer
D. Mkdir
Explanation
The correct answer is "Mkdir" because the command "mkdir" is used to create a new directory. It allows the user to specify the name and location of the directory that needs to be created. The other options mentioned in the question, such as "chmod", "cd", "getacl", and "pwd", are not used for creating directories.
35.
Sends standard input to both a file and standard output.
Correct Answer
B. Tee
Explanation
The command "tee" is used to read from standard input and write to both standard output and a file. It is commonly used in shell scripts to display the output of a command on the screen and save it to a file simultaneously. In this case, the command "tee" is the correct answer because it aligns with the given statement that it sends standard input to both a file and standard output.
36.
Displays a list of suspend jobs and jobs running in the background.
Correct Answer
A. Jobs
Explanation
The answer "Jobs" is correct because the given statement is describing a feature or command that displays a list of suspend jobs and jobs running in the background. The "Jobs" command is commonly used in Unix-based operating systems to view the status of background processes or jobs that have been suspended. It provides information such as the job ID, status, and command associated with each job.
37.
Moves a process to the background
Correct Answer
E. Bg
Explanation
The command "Bg" is used to move a process to the background. This means that the process will continue running, but it will no longer be tied to the current terminal session. This is useful when you want to free up the terminal for other tasks while allowing the process to run in the background.
38.
Moves one string of characters to another
Correct Answer
A. Tr
Explanation
The given answer "Tr" is the correct answer because it is the first string of characters in the given list. The question asks for moving one string of characters to another, but it does not specify which string should be moved or where it should be moved to. Therefore, the first string "Tr" can be considered as the correct answer.
39.
Moves a process to the foreground
Correct Answer
C. Fg
Explanation
The correct answer is "Fg". In the context of computer processes, "Fg" stands for "foreground". When a process is moved to the foreground, it means that it is given priority and is actively running and interacting with the user. This is in contrast to running a process in the background, where it continues to execute but does not require user interaction.
40.
A _____ is a set of data structures that usually resides on a part of a disk that holds directories of files
Correct Answer
C. Filesystem
Explanation
A filesystem is a set of data structures that usually resides on a part of a disk that holds directories of files. It organizes and manages the storage of files and directories, allowing for easy access and retrieval of data. The filesystem defines the structure and organization of files and directories, including their names, locations, and permissions. It provides a hierarchical structure that allows users to navigate and manage their files efficiently.
41.
A _____________ structure frequently takes the shape of a pyramid.
Correct Answer
B. Hierarchical
Explanation
A hierarchical structure frequently takes the shape of a pyramid because it is organized in a way where there are multiple levels or tiers, with each level having a specific authority or control over the level below it. This creates a pyramid-like shape, where the top level has the highest authority and the subsequent levels have decreasing levels of authority. This type of structure is commonly found in organizations or systems where there is a clear chain of command and a well-defined hierarchy of power and control.
42.
Each of the default rules that getfacl displays start with ________.
Correct Answer
C. Default:
Explanation
Each of the default rules that getfacl displays start with "default:".
43.
A ____ is a pointer to a file.
Correct Answer
A. Link
Explanation
A link is a pointer to a file. In computer systems, a link is a reference or connection to a specific file or directory. It allows users to access and open the file by following the link. By using a link, users can navigate through different files and directories in a hierarchical structure. Therefore, a link serves as a pointer that directs users to a specific file location.
44.
When you remove all _______ links to a file, you will not be able to access the file through a symbolic link.
Correct Answer
C. Hard
Explanation
When you remove all hard links to a file, you will not be able to access the file through a symbolic link. This is because hard links are direct references to the file's inode, which is the data structure that stores information about a file. When all hard links are removed, the inode is deleted, making it impossible to access the file through any symbolic link that may have been created.
45.
An ___________ is a token, such as a filename, string of text, number, or other object that a command acts on.
Correct Answer
B. Argument
Explanation
An argument is a token that a command acts on. It can be a filename, string of text, number, or any other object. When a command is executed, it requires an argument to specify what it should act upon.
46.
An _________ is an argument that modifies the effect of a command.
Correct Answer
A. Option
Explanation
An option is a choice that modifies the effect of a command. When giving a command, there may be different options or choices available to modify the outcome or behavior of that command. For example, in a computer program, the user may have the option to save a file in different formats or with different settings. The option chosen will determine how the command is executed and what the result will be. Therefore, an option is an argument that modifies the effect of a command.
47.
The shell provides the ____________ feature that prevents overwriting a file using redirection.
Correct Answer
C. Noclobber
Explanation
The shell provides the "noclobber" feature that prevents overwriting a file using redirection. This feature ensures that when redirecting output to a file, if the file already exists, it will not be overwritten. Instead, an error message will be displayed, preventing accidental data loss or file corruption.
48.
The shell uses a _______ to connect standard output of one command to standard input of another command.
Correct Answer
A. Pipe
Explanation
A pipe is used by the shell to connect the standard output of one command to the standard input of another command. This allows the output of the first command to be directly used as input for the second command, enabling the chaining of multiple commands together.
49.
A _____ is a series of one or more commands that can be connected by pipes.
Correct Answer
D. Job
Explanation
A job is a series of one or more commands that can be connected by pipes. This means that multiple commands can be executed in sequence, with the output of one command being used as the input for the next command. This allows for complex operations and data manipulation to be performed efficiently.
50.
A set of data structures that resides on part of a disk and holds directories of files is called a _______.
Correct Answer
B. Filesystem
Explanation
A set of data structures that resides on part of a disk and holds directories of files is called a filesystem. A filesystem is responsible for organizing and managing the files and directories on a disk, allowing users to access and manipulate them. It provides a hierarchical structure that allows for easy navigation and storage of data.