Basic Linux Quiz: Knowledge Trivia!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By DBeech
D
DBeech
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,054
| Attempts: 1,054 | Questions: 18
Please wait...
Question 1 / 18
0 %
0/100
Score 0/100
1. .............is the command used to create a new directory.

Explanation

The command "mkdir" is used to create a new directory.

Submit
Please wait...
About This Quiz
Basic Linux Quiz: Knowledge Trivia! - Quiz

Can you identify Basic Linux? Linux is a group of open-source Unix-like functional systems based on the Linux Kernel, and an operating system Kernel first came out with in September 1991 by Linux Torvalds. Linus is usually packaged in a Linux distribution. Popular Linux distributions consist of Debian, Fedora, and... see moreUbuntu. This cool quiz is for anyone who is interested in Basic Linux and how it works. see less

Personalize your quiz and earn a certificate with your name on it!
2. What command is used to copy a file?

Explanation

The command "cp" is used to copy a file. This command allows the user to create a duplicate of a file in a different location or with a different name. By using "cp", the user can easily make backups or create multiple versions of a file without modifying the original.

Submit
3. What command is used to copy a file?

Explanation

The command "cp" is used to copy a file. It stands for "copy" and is a commonly used command in Unix-based operating systems. By using the "cp" command followed by the name of the file to be copied and the destination directory, the file is duplicated and saved with the same name in the specified location. This command is essential for creating backups, duplicating files, or transferring them to different directories.

Submit
4. Command used to create an empty file.

Explanation

The correct answer is "touch". The touch command is used to create an empty file in Unix and Linux systems. It updates the access and modification timestamps of the file if it already exists, or creates a new empty file if it doesn't exist.

Submit
5. "cat" is the command used to

Explanation

"cat" commands show the complete contents of the file that is being used.

Submit
6. What is the command to delete a file?

Explanation

The command "rm" is used to delete a file in various operating systems, including Unix and Linux. It stands for "remove" and is followed by the name of the file that needs to be deleted. This command permanently removes the file from the system, and it cannot be recovered once deleted.

Submit
7. What command creates an empty directory?

Explanation

The command "mkdir" is used to create a new directory in a file system. When this command is executed, it creates an empty directory with the specified name. This allows users to organize their files and folders in a structured manner. By using "mkdir", users can easily create a blank directory without any files or subdirectories inside it.

Submit
8. What command clears the contents of your terminal display?

Explanation

The "clear" command is used to clear the contents of the terminal display. This command is commonly used when the screen becomes cluttered with previous commands and outputs, and the user wants to start with a clean slate. By typing "clear" and pressing enter, the terminal screen will be cleared, making it easier to read and navigate.

Submit
9. What command creates an empty directory?

Explanation

The "mkdir" command is used to create a new directory in a file system. By typing "mkdir" followed by a directory name, an empty directory with that name will be created. This command is commonly used in command line interfaces to organize files and folders.

Submit
10. What is the command to delete a file?

Explanation

The command "rm" is used to delete a file.

Submit
11. What command is used to change directories?

Explanation

The command "cd" is used to change directories in a command line interface. It stands for "change directory" and allows the user to navigate to a different folder or directory within the file system. By typing "cd" followed by the name or path of the desired directory, the user can switch to that location and access its contents. This command is commonly used in operating systems such as Unix, Linux, and Windows.

Submit
12. What command shows you what directory you are in?

Explanation

The command "pwd" stands for "print working directory" and it is used to display the current directory that the user is in. By typing "pwd" in the command line, the user can see the full path of their current directory, allowing them to easily navigate and understand their file system structure.

Submit
13. What command is used to change the permissions of a file?

Explanation

The command "chmod" is used to change the permissions of a file. This command allows the user to modify the read, write, and execute permissions for the owner, group, and others. By using the appropriate options and parameters with the "chmod" command, the user can easily adjust the file permissions to restrict or grant access as needed.

Submit
14. What command is used to change a file name?

Explanation

The "mv" command is used to change a file name. This command allows the user to rename a file by specifying the current name of the file and the desired new name. It is commonly used in command line interfaces to manage files and directories. By using the "mv" command, the user can easily modify the name of a file without altering its content or location.

Submit
15. What is the command to run a program with elevated permissions?

Explanation

The command "sudo" is used to run a program with elevated permissions. "sudo" stands for "superuser do" and allows a user with administrative privileges to execute commands as the root user or another user with higher privileges. By using "sudo" before a command, the user is prompted to enter their password, and if authenticated, the command is executed with elevated permissions. This is commonly used in Unix-like operating systems to perform tasks that require administrative access, such as installing software or modifying system files.

Submit
16. Which is the command used to remove or delete file without confirmation msg?

Explanation

"rm" this command removes/deleates the file which is not required,but it does not display confirmation message.

Submit
17. What command is used to display your previous commands?

Explanation

The up arrow, Up arrow, and history commands are used to display previous commands. By pressing the up arrow key, you can cycle through your command history and view the commands you have previously entered. Similarly, the Up arrow key performs the same function. The history command can be used to display a list of all the commands you have entered in the current session. These commands are useful for quickly accessing and reusing previous commands without having to retype them.

Submit
18. What do you type in to move to the parent directory?

Explanation

To move to the parent directory, you need to type "cd .." in the command line. The "cd" command stands for "change directory" and the ".." represents the parent directory. By typing "cd ..", you are instructing the system to move up one level in the directory hierarchy. This is useful when you want to navigate out of the current directory and access files or folders in the parent directory.

Submit
View My Results

Quiz Review Timeline (Updated): Sep 16, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Sep 16, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 08, 2019
    Quiz Created by
    DBeech
Cancel
  • All
    All (18)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
.............is the command used to create a new directory.
What command is used to copy a file?
What command is used to copy a file?
Command used to create an empty file.
"cat" is the command used to
What is the command to delete a file?
What command creates an empty directory?
What command clears the contents of your terminal display?
What command creates an empty directory?
What is the command to delete a file?
What command is used to change directories?
What command shows you what directory you are in?
What command is used to change the permissions of a file?
What command is used to change a file name?
What is the command to run a program with elevated permissions?
Which is the command used to remove or delete file without...
What command is used to display your previous commands?
What do you type in to move to the parent directory?
Alert!

Advertisement