Home
Current Affairs January 2024

What is the correct answer?

4

There are the following statements that are given below, which of them are the correct about the uptime command in the Linux system?
a) We can get the current system time using uptime command.
b) We can get the number of users logged in, using uptime command.
c) This command also displays CPU load average.
d) This command also displays the duration for which the computer has been running.
Options:

A. A and B

B. B and D

C. A, B, and D

D. A, B, C, and D

Correct Answer :

D. A, B, C, and D


All statements are correct about the uptime command.

Related Questions

What is the correct answer?

4

How can we see the compression ratio of a file?

A. Using -c option of gzip command

B. Using -r option of gzip command

C. Using -l option of gzip command

D. Using -cr option of gzip command

What is the correct answer?

4

Which command is used to check network cable is plugged or not?

A. ifplugstatus

B. ifcableplug

C. ifcablestatus

D. isplugstatus

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about environment variables in Linux operating system?
a) The environment variables are used to store some values that can be used by the application.
b) The environment variables are used to customize the behavior of the applications.
c) The environment variables can impact the performance of the system.
d) The environment variable used a % symbol for variables.
Options:

A. A and B

B. C and D

C. A, B, and C

D. B, C, and D

What is the correct answer?

4

Which command is used to create multiple directories in a single command?

A. md

B. mkdir

C. makedir

D. mkdirs

What is the correct answer?

4

Which of the following environment variables contains the path of the user's unique id?

A. UID

B. USERID

C. USRID

D. ID

What is the correct answer?

4

Which Linux command is used to know, how long a computer has been running?

A. startup

B. uptime

C. startuptime

D. time

What is the correct answer?

4

Which Linux command is used to assign a password to the created user?

A. password

B. newpass

C. passwd

D. pwd

What is the correct answer?

4

Which of the following notations are correct for owners of a file?
a) a
b) o
c) u
d) g
Options:

A. A and B

B. A, B, and C

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which command is used to know information about a password?

A. change

B. knowpass

C. passinf

D. info

What is the correct answer?

4

Which of the following option is used to search a file with inode number using find command?

A. -inode

B. -inum

C. -inod

D. -in

What is the correct answer?

4

Which of the following directory contains the scripts related to service used in the Linux operating system?

A. /etc/services/

B. /etc/scripts/

C. /etc/init.d/

D. /etc/services/scripts/

What is the correct answer?

4

Which exact command is used to multiply 4 by 2 using expr in the Linux System?

A. expr 4 * 2

B. expr 4 /* 2

C. expr 4 * 2

D. expr 4 ^* 2

What is the correct answer?

4

Which of the following command is used to paste before the current line in the vi editor?

A. y

B. Y

C. p

D. P

What is the correct answer?

4

Which of the following command is used to undo the last command in the vi editor?

A. uu

B. x

C. X

D. u

What is the correct answer?

4

Which of the following character is used to identify the symbolic link file in the output of ls command?

A. s

B. c

C. l

D. _

What is the correct answer?

4

Which command is used to create a new group in the Linux operating system?

A. creategroup

B. addgroup

C. groupadd

D. groupcreate

What is the correct answer?

4

What is the full form of GPL in Linux licensing?

A. Global Public License

B. General Private License

C. General Public License

D. Global Private License

What is the correct answer?

4

Which of the following command is known as bang bang in the Linux operating system?

A. ##

B. ,

C. !!

D. @@

What is the correct answer?

4

Which of the following command is used to perform mathematical expression and print output on the terminal?

A. expr

B. exp

C. calexp

D. calexpr

What is the correct answer?

4

Which of the following symbol is used to match the empty string at the beginning of a word?

A. \

B. %

C. $

D. (

What is the correct answer?

4

There are the following statements that are given which of them are correct about Linux commands?
a) In the Linux operating system, a command is an instruction to the system to perform a particular task.
b) Linux commands are case sensitive.
c) All Linux commands are scripts written in python.
d) All of the above
Options:

A. A and B

B. A and C

C. B and C

D. D

What is the correct answer?

4

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

A. A and B

B. A, B, and C

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

Which of the following command is used to swap two lines in the vi editor?

A. sl

B. SL

C. DDP

D. ddp

What is the correct answer?

4

Which exact command is used to show information about specified interface?

A. ip show

B. ip a show

C. ip b show

D. ip show

What is the correct answer?

4

Which of the following commands are built-in shell commands in the Linux operating system?
a) pwd
b) cd
c) export
d) echo
Options:

A. A and B

B. C and D

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

There are the following statements that are given below which of them are correct about traceroute in the Linux operating system?
a) It is a network troubleshooting command which is used to trace the number of hops is required for packets to reach the destination.
b) This command requires root privileges.
c) By default, it is not installed in the Linux system
d) All of the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

How to print non-empty line from the given file using AWK?

A. awk 'NF > 0'

B. awk 'NF'

C. awk 'NE > 0'

D. awk 'NE'

What is the correct answer?

4

Which of the following types of arguments or operators are supported by expr command?
a) Plus '+' operator
b) Modulus operator
c) Regular expressions
d) Set of characters in the string
Options:

A. A and C

B. A and B

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

There are the following options that are given below, which of them are the correct environment variable used in the Linux operating system?
a) SHELL
b) TERM
c) PATH
d) HOME
Options:

A. A and B

B. C and D

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

There are the following statements that are given below which of them are correct about the ss command in the Linux operating system?
a) The ss command is the replacement for the netstat command.
b) It is faster than the netstat command.
c) We can display all UDP and TCP socket connections using ss command.
d) The ss can display all TCP socket connections only.
Options:

A. A and B

B. A and C

C. A, B, and C

D. A, B, and D