Linux Operating System Quiz-3

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 Catherine Halcomb
C
Catherine Halcomb
Community Contributor
Quizzes Created: 1428 | Total Attempts: 5,961,110
Questions: 13 | Attempts: 1,078

SettingsSettingsSettings
Linux Operating System Quiz-3 - Quiz

Linux Quiz


Questions and Answers
  • 1. 

    Which Linux command is used to search for a specific word.

    • A.

      More

    • B.

      Cat

    • C.

      Grep

    • D.

      Pipe

    Correct Answer
    C. Grep
    Explanation
    The correct answer is "grep". The grep command is used in Linux to search for a specific word or pattern within a file or multiple files. It allows users to find and display lines that contain the specified word, making it a powerful tool for text searching and filtering. This command is often used in combination with other commands and can be customized with various options to refine the search.

    Rate this question:

  • 2. 

    Which command is used to list the files present in the directory you are in

    • A.

      Grep

    • B.

      More

    • C.

      Cat

    • D.

      Ls

    Correct Answer
    D. Ls
    Explanation
    The command "ls" is used to list the files present in the directory you are in. It provides a detailed view of the files, including their names, sizes, permissions, and timestamps. By running the "ls" command without any arguments, it will display the files and directories in the current directory. This command is commonly used in the command line interface of Unix-like operating systems to navigate and manage directories and files.

    Rate this question:

  • 3. 

    Which command is used to Change Directory?

    • A.

      Cd

    • B.

      Cat

    • C.

      Grep

    • D.

      Ls

    Correct Answer
    A. Cd
    Explanation
    The command "cd" is used to change the current directory in a command line interface. It allows the user to navigate through different directories in the file system. By typing "cd" followed by the desired directory name, the user can switch to that directory and perform operations within it. This command is essential for efficient file management and organization.

    Rate this question:

  • 4. 

    Which command would you use to check the disk space used on a system?

    • A.

      Grep

    • B.

      Netstat

    • C.

      Df

    • D.

      More

    Correct Answer
    C. Df
    Explanation
    The correct answer is "df". The df command is used to check the disk space used on a system. It displays information about the file system's total size, used space, available space, and the mount point of each file system on the system. By using df, users can easily determine the amount of disk space being used and how much is still available.

    Rate this question:

  • 5. 

    Which command is used to separate commands so you can do multiple things simultaneously?

    • A.

      Pipe

    • B.

      Grep

    • C.

      More

    • D.

      Less

    Correct Answer
    A. Pipe
    Explanation
    The correct answer is "pipe". The pipe command in Unix-like operating systems allows the output of one command to be used as the input for another command. This allows for the execution of multiple commands simultaneously, where the output of one command serves as the input for the next command in the pipeline. By using the pipe symbol (|), commands can be connected together to perform complex tasks efficiently.

    Rate this question:

  • 6. 

    Which of these commands can be used to view the contents of a file? (tick all that apply)

    • A.

      More

    • B.

      Less

    • C.

      Cat

    • D.

      Tail

    • E.

      Top

    • F.

      All of the above

    Correct Answer(s)
    A. More
    B. Less
    C. Cat
    D. Tail
    Explanation
    The commands "more", "less", "cat", and "tail" can be used to view the contents of a file. The "more" command displays the contents of a file one screen at a time, allowing the user to scroll through it. The "less" command is similar to "more", but it also allows backward scrolling. The "cat" command displays the entire content of a file. The "tail" command displays the last few lines of a file. Therefore, all of these commands can be used to view the contents of a file.

    Rate this question:

  • 7. 

    What command do you type in to unzip a file?

    Correct Answer(s)
    gunzip, Gunzip
    Explanation
    To unzip a file, you would use the command "gunzip" or "Gunzip". This command is used to decompress files that have been compressed using the gzip compression algorithm.

    Rate this question:

  • 8. 

    What do you type in to zip an unzipped file?

    Correct Answer(s)
    gzip, Gzip
    Explanation
    To zip an unzipped file, you would type "gzip" or "Gzip". Gzip is a file compression program commonly used in Unix and Linux systems. It is used to compress and decompress files, reducing their size for storage or transmission. By typing "gzip" or "Gzip" followed by the name of the unzipped file, the file will be compressed into a gzip format, making it smaller and easier to manage.

    Rate this question:

  • 9. 

    Which of these are used for checking connectivity? (tick all that apply)

    • A.

      Netstat

    • B.

      Ping

    • C.

      Grep

    • D.

      Pipe

    • E.

      All of the above

    Correct Answer(s)
    A. Netstat
    B. Ping
    Explanation
    Netstat and ping are used for checking connectivity. Netstat is a command-line tool that displays network connections, routing tables, and network statistics. It provides information about active connections and listening ports, which can help identify connectivity issues. Ping is a utility used to test the reachability of a host on an IP network. It sends ICMP echo request packets to the target host and waits for a response, indicating if the host is reachable. Both netstat and ping are commonly used tools for troubleshooting network connectivity problems.

    Rate this question:

  • 10. 

    All Linux systems are accessed via Quest login?

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    Many use LDAP login.

    Rate this question:

  • 11. 

    Which of the below is an executable script?

    • A.

      More tidy.log

    • B.

      ./pvod_check

    • C.

      Tail -f falm

    • D.

      Cd database/cron_scripts

    Correct Answer
    B. ./pvod_check
    Explanation
    The correct answer is "./pvod_check" because it starts with "./" which is the syntax used to execute a script or program in the current directory.

    Rate this question:

  • 12. 

    You are in the home/ssr/database/cron_scripts directory.What command do you type to return to the /home/ssr directory of this system? (tick all that apply)

    • A.

      More

    • B.

      Tail

    • C.

      CTRL + C

    • D.

      Grep

    • E.

      Cd

    • F.

      Cd ..

    • G.

      Cd ../..

    • H.

      Cd ../../..

    Correct Answer(s)
    E. Cd
    G. Cd ../..
    Explanation
    To return to the /home/ssr directory of this system, you can use the following commands: "cd" and "cd ..". The "cd" command is used to change the current directory to the specified directory, in this case, /home/ssr. The "cd .." command is used to move up one level in the directory structure. So, by using "cd .." twice, you can return to the /home/ssr directory.

    Rate this question:

  • 13. 

    If you're tailing a logfile, what command can you type in to bring back your command prompt?

    • A.

      Cat

    • B.

      ./menu

    • C.

      Man

    • D.

      CTRL+C

    • E.

      Vi

    Correct Answer
    D. CTRL+C
    Explanation
    By pressing CTRL+C, you can send an interrupt signal to the running process in the terminal. In this case, if you are tailing a logfile using the "tail" command, pressing CTRL+C will stop the tail command and bring back the command prompt, allowing you to enter new commands.

    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 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 21, 2015
    Quiz Created by
    Catherine Halcomb
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.