Linux Quiz: Ultimate Trivia Questions!

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Sandeep_patade
S
Sandeep_patade
Community Contributor
Quizzes Created: 1 | Total Attempts: 274
Questions: 20 | Attempts: 274

SettingsSettingsSettings
Linux Quiz: Ultimate Trivia Questions! - Quiz

.


Questions and Answers
  • 1. 

    .............is the command used to create a new directory.

    • A.

      Mkdir

    • B.

      Newdir

    • C.

      Dir

    • D.

      Mk/dir

    Correct Answer
    A. Mkdir
    Explanation
    The command "mkdir" is used to create a new directory.

    Rate this question:

  • 2. 

    Command used to create an empty file.

    • A.

      Mtfile

    • B.

      Touch

    • C.

      Intouch

    • D.

      File

    Correct Answer
    B. Touch
    Explanation
    The correct answer is "touch". The touch command is used to create an empty file in various operating systems, including Linux and Unix. It updates the access and modification timestamps of the file, and if the file does not exist, it creates a new empty file with the specified name.

    Rate this question:

  • 3. 

    Which command will display your IP address?

    • A.

      Ifconfig

    • B.

      Ping

    • C.

      Netstat

    • D.

      Ipconfig

    Correct Answer
    A. Ifconfig
    Explanation
    ipconfig is the windows command for displaying your ip address. ping will test a network connection. netstat will display networking information.

    Rate this question:

  • 4. 

    Which command do you use to display the differences between two files?

    • A.

      Df

    • B.

      Diff

    • C.

      Comp

    • D.

      Sdiff

    Correct Answer
    B. Diff
    Explanation
    df will display free disk space. comp is the windows command for comparing the contents of two files. sdiff will merge two files

    Rate this question:

  • 5. 

    Which command will create a new directory?

    • A.

      Rmdir

    • B.

      Md

    • C.

      Mkdir

    • D.

      Make

    Correct Answer
    C. Mkdir
    Explanation
    rmdir will remove a directory. md is the windows command to make a new folder. make will recompile a group of programs

    Rate this question:

  • 6. 

    Which command will display the current directory?

    • A.

      Uname

    • B.

      Whoami

    • C.

      Pwd

    • D.

      Cd

    Correct Answer
    C. Pwd
    Explanation
    cd will change the directory. whoami will display current user. uname will display system information

    Rate this question:

  • 7. 

    Which command will allow you to run a command as another user?

    • A.

      Runas

    • B.

      Su

    • C.

      Sudo

    • D.

      Chroot

    Correct Answer
    B. Su
    Explanation
    runas is the equivalant Windows command. sudo allows you to run the command under superuser privileges, chroot will run the command under a different directory.

    Rate this question:

  • 8. 

    The files under this directory are deleted when the system is rebooted.

    • A.

      /var

    • B.

      /etc

    • C.

      /tmp

    • D.

      /dev

    Correct Answer
    C. /tmp
    Explanation
    The /tmp directory is a temporary directory where files are stored that are only needed for a short period of time. These files are often created by programs or scripts during their execution. When the system is rebooted, the /tmp directory is cleared, deleting all the files stored in it. This ensures that any temporary files that were left behind from previous sessions are removed, freeing up disk space and maintaining system cleanliness.

    Rate this question:

  • 9. 

    If you want to give read/write/execute rights to the file owner while giving read/execute rights to the group and other, which command do you use?

    • A.

      Chmod 644

    • B.

      Chmod 755

    • C.

      Chmod 655

    • D.

      Chmod 744

    Correct Answer
    B. Chmod 755
    Explanation
    The command "chmod 755" is used to give read/write/execute rights to the file owner while giving read/execute rights to the group and other. In Linux, the "chmod" command is used to change the permissions of a file or directory. The three digits in the command represent the permissions for the owner, group, and others respectively. The number 7 represents read, write, and execute permissions, while the number 5 represents read and execute permissions. Therefore, "chmod 755" grants the necessary permissions as specified in the question.

    Rate this question:

  • 10. 

    If you want to modify the file owner, which command do you use?

    • A.

      Xcacls

    • B.

      Chgrp

    • C.

      Chmod

    • D.

      Chown

    Correct Answer
    D. Chown
    Explanation
    The chown command is used to modify the file owner. This command allows the user to change the ownership of a file or directory to a different user or group. By using chown, the user can transfer the ownership rights to another user, granting them full control over the file or directory. This command is commonly used in Unix-like operating systems to manage file ownership and permissions.

    Rate this question:

  • 11. 

    Which command will kill a named process?

    • A.

      Killall

    • B.

      Taskkill

    • C.

      Kill

    • D.

      Tskill

    Correct Answer
    A. Killall
    Explanation
    The correct answer is "killall". The killall command is used to terminate or kill a named process in Linux. It sends a signal to the specified process, causing it to terminate. This command is useful when you want to end multiple instances of a process running on your system.

    Rate this question:

  • 12. 

    Which command will display detailed information about a running process?

    • A.

      Tasklist

    • B.

      Psinfo

    • C.

      Pslist

    • D.

      Psservice

    Correct Answer
    C. Pslist
    Explanation
    Pslist is a command that displays detailed information about a running process. It provides information such as process ID, CPU usage, memory usage, and other details related to the running processes on a system. This command is commonly used in Windows operating systems to gather information about processes and troubleshoot any issues related to them.

    Rate this question:

  • 13. 

    What will schedule a command to run at a later time?

    • A.

      Crontab

    • B.

      Waitfor

    • C.

      Schtask

    • D.

      Exec

    Correct Answer
    A. Crontab
    Explanation
    Crontab is a command in Unix-like operating systems that allows users to schedule commands or scripts to run at specific times or intervals. It is commonly used to automate repetitive tasks or schedule system maintenance. By using crontab, users can specify the exact time and frequency at which a command should be executed, making it the correct answer for scheduling a command to run at a later time.

    Rate this question:

  • 14. 

    What does GNU stand for?

    • A.

      Gnu’s not Unix

    • B.

      Geek Needed Unix

    • C.

      General Unix

    • D.

      None of the Above

    Correct Answer
    A. Gnu’s not Unix
    Explanation
    GNU stands for "Gnu's not Unix" because the acronym GNU was created as a recursive acronym, which means that it stands for itself. The phrase "Gnu's not Unix" is a play on words, indicating that although GNU shares similarities with Unix, it is not a direct derivative or clone of Unix. This reflects the philosophy behind the GNU Project, which aimed to develop a free and open-source operating system that is compatible with Unix but independent from it.

    Rate this question:

  • 15. 

    What command is used to clear up the command prompt window?

    • A.

      Clr

    • B.

      Clrwin

    • C.

      Cls

    • D.

      Clear

    Correct Answer
    D. Clear
    Explanation
    The correct answer is "clear" because it is the command used to clear up the command prompt window. This command clears all the previous commands and output from the window, providing a clean and empty prompt for new commands.

    Rate this question:

  • 16. 

    "cat" is the command used to?

    • A.

      Change directory

    • B.

      Move directory

    • C.

      Come out of shell

    • D.

      See the contents of file

    Correct Answer
    D. See the contents of file
    Explanation
    The "cat" command is used to display the contents of a file in the terminal. It is commonly used to quickly view the contents of text files without opening them in an editor. By running the "cat" command followed by the file name, the file's contents will be printed to the terminal.

    Rate this question:

  • 17. 

    DHCP stands for?

    • A.

      Dynamic Host Configuration Protocol

    • B.

      Dual Host Configuration Protocol

    • C.

      Dynamic Host Computer Protocol

    • D.

      None of the above

    Correct Answer
    A. Dynamic Host Configuration Protocol
    Explanation
    DHCP stands for Dynamic Host Configuration Protocol. This protocol is used to automatically assign IP addresses and other network configuration settings to devices on a network. It allows for the efficient management and allocation of IP addresses, making it easier to set up and maintain a network. The other options, Dual Host Configuration Protocol and Dynamic Host Computer Protocol, are not correct and do not exist. Therefore, the correct answer is Dynamic Host Configuration Protocol.

    Rate this question:

  • 18. 

    The language linux uses is?

    • A.

      C ,C++

    • B.

      C+

    • C.

      English

    • D.

      A+

    Correct Answer
    A. C ,C++
    Explanation
    Linux is an open-source operating system that is primarily written in the C programming language. C is a low-level language that provides direct access to memory and hardware, making it suitable for developing operating systems. Additionally, Linux also includes components written in C++ which is an extension of the C language, providing object-oriented programming capabilities. Therefore, the correct answer is C, C++ as these are the primary languages used in Linux development.

    Rate this question:

  • 19. 

    What does the PIPE symbol do?

    • A.

      Redirects files

    • B.

      Saves files

    • C.

      Reduce amount of info on the screen

    • D.

      Increase the amount of info on the screen

    Correct Answer
    C. Reduce amount of info on the screen
    Explanation
    The PIPE symbol in computing is used to redirect the output of one command to another command, allowing for the manipulation and filtering of data. It does not save or increase the amount of information on the screen, but rather reduces it by selectively displaying only the desired output.

    Rate this question:

  • 20. 

    Which command will check files for errors?

    • A.

      Fcsk

    • B.

      Fsck

    • C.

      Kfsc

    • D.

      Chkf

    Correct Answer
    B. Fsck
    Explanation
    The command "fsck" is used to check and repair filesystem errors in Unix-like operating systems. It stands for "file system consistency check" and is typically used to scan and fix issues with the filesystem structure, such as incorrect metadata or corrupted data blocks. By running "fsck", the user can ensure the integrity of their files and prevent further damage or data loss.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 25, 2014
    Quiz Created by
    Sandeep_patade
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.