Linux Admin Commands Aptitude Questions and Answers

Linux Admin Commands Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux Admin Commands.
Submitted by Nidhi, on May 04, 2020

This section contains Aptitude Questions and Answers on Linux Admin Commands.

1) Which Linux command is used to know, how long a computer has been running?
  1. startup
  2. uptime
  3. startuptime
  4. time

2) There are the following statements that are given below, which of them are the correct about the "service" command in the Linux system?
  1. The service command is used to start a service by calling the associated script.
  2. The service command is used to stop service by calling the associated script.
  3. The service command is used to pause a service by calling the associated script.
  4. The service command is used to restart a service by calling the associated script.

Options:

  1. A and B
  2. A, B, and D
  3. B, C, and D
  4. A, B, C, and D

3) Which of the following directory contains the scripts related to service used in the Linux operating system?
  1. /etc/services/
  2. /etc/scripts/
  3. /etc/init.d/
  4. /etc/services/scripts/

4) There are the following statements that are given below, which of them are the correct about the "uptime" command in the Linux system?
  1. We can get the current system time using uptime command.
  2. We can get the number of users logged in, using uptime command.
  3. This command also displays CPU load average.
  4. This command also displays the duration for which the computer has been running.

Options:

  1. A and B
  2. B and D
  3. A, B, and D
  4. A, B, C, and D

5) Which option is used to know only system running time using the "uptime" command?
  1. -p
  2. -u
  3. -l
  4. -k

6) There are the following statements are given below, which of them are the correct about the "ps" command in the Linux system?
  1. This command is used to display information about processes running in the system.
  2. This command displays the memory occupied by a system call.
  3. This command displays the process id of the running processes.
  4. This command displays the name of the running processes.

Options:

  1. A and B
  2. A, B, and C
  3. A, C, and D
  4. A, B, C, and D

7) Which exact command is used to display the signal names used in the Linux operating system?
  1. signal -all
  2. kill -p
  3. kill -l
  4. kill -s

8) There are the following options that are given below, which of them are correct signals used in the Linux?
  1. SIGINT
  2. SIGHUP
  3. SIGQUIT
  4. SIGKILL

Options:

  1. A and B
  2. A, B, and C
  3. A, C, and D
  4. A, B, C, and D

9) Which exact command is used to kill a running process using process id?
  1. killall <process id>
  2. kill -9 <process id>
  3. kill -p <process id>
  4. kill -s <process id>

10) Which exact command is used to kill a process by name?
  1. killall <process name>
  2. kill -n <process name>
  3. kill -p <process name>
  4. kill -s <process name>

11) Which of the following command is used to know about the swap memory of the system?
  1. swapmem
  2. free
  3. sw
  4. sp

12) Which of the following commands are used to kill a running process in the Linux system?
  1. kill
  2. killall
  3. pkill
  4. xkill

Options:

  1. A and B
  2. A, B, and C
  3. A, C, and D
  4. A, B, C, and D

13) Which of the following signal is used to PAUSE and STOP the processes?
  1. SIGSTOP
  2. SIGSTP
  3. SIGPAUSE
  4. SIGPS

14) Which of the following command is used to display the memory map of processes in the Linux system?
  1. pmap
  2. memmap
  3. map
  4. procmap

15) There are the following statements that are given below, which of them are the correct about the "last" command in the Linux system?
  1. This command displays the information about the last logged in timing for the user.
  2. The last command is used to display the last executed process in the system.
  3. This command displays IP address, username, and duration of logging in.
  4. The log information is stored in the "/var/log/wtmp" file.

Options:

  1. A and B
  2. A, B, and C
  3. A, C, and D
  4. A, B, C, and D

16) How can we shut down the system by notifying all users?
  1. Using init 0 command
  2. Using init 6 command
  3. Using shutdown command
  4. Using turnoff command

17) How can we shut down the system immediately using the "shutdown" command?
  1. shutdown immediate
  2. shutdown now
  3. shutdown n
  4. shutdown final

18) Which of the following commands are used to display the information about the Linux commands?
  1. man
  2. info
  3. infocmd
  4. All the above

Options:

  1. A and B
  2. A, B, and C
  3. A, C, and D
  4. A, B, C, and D

19) Which Linux command is used to check disk usage of files and directories?
  1. diskinf
  2. diskuse
  3. du
  4. fileinf

20) Which of the following is the first process executed by the kernel during the booting time of the system?
  1. crond
  2. init
  3. bootp
  4. none of the above

21) Which Linux command is used to access external storage devices like pen-drive into the Linux file system?
  1. attach
  2. access
  3. mount
  4. umount

22) Which Linux command is used to un-mount the external storage devices from the Linux file system?
  1. unmount
  2. umount
  3. nmount
  4. None of the above

23) Which run-level is used with the "init" command to reboot the system?
  1. 0
  2. 1
  3. 4
  4. 6

24) Which run-level is used with the "init" command to halt the system?
  1. 0
  2. 1
  3. 4
  4. 6

25) Which Linux command is used to display information regarding file systems about the total space and free space?
  1. file
  2. info
  3. df
  4. ds





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.