Tag: linux

Questions Related to linux

  1. Lists the settings of the OS

  2. Lists the contents of the directory

  3. List command to list contents of files

  4. Finnish words, means to direct a file to a port

  5. None of the Above


Correct Option: B
  1. fdisk

  2. crfs

  3. mkfs

  4. fs


Correct Option: C
  1. administrator

  2. admin

  3. superuser

  4. root

  5. head


Correct Option: D

Which of the following are valid Linux wildcards? (Choose all that apply)

    • and ?
  1. /

  2. ?

  3. &

  4. Z


Correct Option: A

AI Explanation

To answer this question, you need to understand Linux wildcards.

Option A) * and ? - This option is correct because * is a wildcard that represents any sequence of characters, and ? is a wildcard that represents any single character.

Option B) / - This option is incorrect because / is not a wildcard. It is used as a directory separator in Linux.

Option C) ? - This option is correct because ? is a wildcard that represents any single character.

Option D) & - This option is incorrect because & is not a wildcard. It is used as a control operator in Linux.

Option E) Z - This option is incorrect because Z is not a wildcard. It is just a letter.

The correct answer is A) * and ?. These wildcards are commonly used in Linux to represent patterns of filenames or commands.

  1. Prints the directory

  2. Shows what processes are running

  3. Print status of LPT1

  4. Produces system statistics

  5. None of the above


Correct Option: B
Explanation:

To understand what the command "ps" does, the user needs to have knowledge about command line interfaces and operating systems.

The correct answer is:

B. Shows what processes are running

Explanation:

The "ps" command is a command used in Unix-like operating systems (such as Linux and macOS) to display information about the currently running processes on the system. It provides a snapshot of the processes running at the time the command is executed, including details such as the process ID (PID), CPU and memory usage, and the parent process ID (PPID). This information is useful for monitoring system resources, troubleshooting performance issues, and managing processes on the system.

Let's go through the other options:

A. Prints the directory: This option is incorrect. The "ps" command does not print the directory. To print the current directory in a command line interface, the "pwd" command is used.

C. Print status of LPT1: This option is incorrect. The "ps" command does not print the status of LPT1. LPT1 is a parallel port used for connecting printers in older systems.

D. Produces system statistics: This option is partially incorrect. While the "ps" command displays information about processes running on the system, it does not provide comprehensive system statistics. For system statistics, other commands like "top" or "sar" may be used.

E. None of the above: This option is incorrect. As explained above, option B is the correct answer.

Therefore, the correct answer is:

The Answer is: B. Shows what processes are running

Linux allows filenames up to what number of characters?

  1. 8

  2. 11

  3. 256

  4. 512

  5. Unlimited


Correct Option: C