Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following command is used to print pending tasks?

A. ptasks

B. atq

C. qtasks

D. atrm

Correct Answer :

B. atq


The atq command is used to print pending tasks.

Related Questions

What is the correct answer?

4

Which of the following Linux command is used to print all environment variables?

A. printenv

B. env

C. envvars

D. envs

What is the correct answer?

4

Which command is used to check the access and modification time of a file in Linux?

A. check

B. filetimes

C. state

D. file

What is the correct answer?

4

Which exact command is used, remove write, and execute permission from a file?

A. chmod w-x

B. chmod x-w

C. chmod we

D. chmod wx

What is the correct answer?

4

There are the following options that are given below, which of them are correct directory types in the Linux operating system?
a) Binary directories
b) Data directories
c) Variable directories
d) Memory directories
Options:

A. A and B

B. A and C

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

What is the file system?

A. The file system is part of the Linux kernel which is used to call boot loader.

B. A file system is a user program to copy files from one location to another programs.

C. The file system is part of Linux OS which is used to arrange files and directories.

D. None of the above

What is the correct answer?

4

Which of the following directories does not take disk space?
a) /proc
b) /dev
c) /var
d) /home
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 of the following command is used to copy one word in vi editor?

A. c

B. w

C. cw

D. yw

What is the correct answer?

4

Which of the following commands are used to know about the current user?
a) who
b) whoami
c) who am i
d) w
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

How to print lines of a given text file from line number 2 to 4 using AWK?

A. awk 'NR==2, NR==4 {print NR,$0}'

B. awk 'NR==2 to NR==4 {print NR,$0}'

C. awk 'NR==2-4 {print NR,$0}'

D. awk 'NR==2,4 {print NR,$0}'

What is the correct answer?

4

If we want to assign read and execute permission to the file then which number is used in the chmod command to assign permission?

A. 5

B. 6

C. 7

D. 3

What is the correct answer?

4

Which of the following operator is used to execute multiple commands in a single line?

A. ;

B. %

C. &&

D. ||

What is the correct answer?

4

Which directory contains grub configuration file?

A. /lib

B. /usr

C. /boot

D. /etc

What is the correct answer?

4

There are the following statements that are given below which of them are correct about the tracepath command in the Linux operating system?
a) It is also used for network troubleshooting.
b) This command requires root privileges.
c) By default, it is 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

Which file contains encrypted user's passwords?

A. /etc/passwords

B. /etc/shadow

C. /etc/pwd

D. /etc/pwds

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

What is the correct answer?

4

Which of the following Linux command is used to set values in environment variables?

A. setval

B. setenv

C. export

D. env

What is the correct answer?

4

Which of the following command is used to save and quit from the vi editor?

A. :q

B. :Q

C. :wq

D. :q!

What is the correct answer?

4

Which of the following information can be viewed using ifconfig command in the Linux operating system?
a) IP address
b) Mac address
c) MTU
d) All of the above
Options:

A. A

B. A and B

C. A and C

D. D

What is the correct answer?

4

There are the following options that are given below, which of them are not correct environment variables used in the Linux operating system?

A. USERID

B. ENV

C. EDITOR

D. USER

What is the correct answer?

4

What are the correct types of file systems used in the Linux operating system?
a) Ext3
b) Ext4
c) JFS
d) XFS
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

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 command is used to move one word forward in the vi editor?

A. b

B. ww

C. w

D. yw

What is the correct answer?

4

What are interfaces are supported by the Linux operating system?

A. Graphical User Interface

B. Command Line Interface

C. Both of the above

D. None of the above

What is the correct answer?

4

Which exact command is used to change the size of MTU?

A. ifconfig mtu

B. ifconfig mtu

C. ifconfig mtu

D. ifconfig -m

What is the correct answer?

4

Which exact command is used to display only matched data of two files?

A. comm -13

B. comm -23

C. comm -12

D. None of the above

What is the correct answer?

4

Which of the following symbol is used to match preceding character N times or more than N times?

A. (N)

B. (N,)

C. {N}

D. {N,}

What is the correct answer?

4

How can we shut down the system immediately using the shutdown command?

A. shutdown immediate

B. shutdown now

C. shutdown n

D. shutdown final

What is the correct answer?

4

Which exact command is used to down interface eth0 in the Linux operating system?

A. ifconfig down eth0

B. ifdown eth0

C. down eth0

D. ifconfig -d eth0

What is the correct answer?

4

Which Linux command is used to access external storage devices like pen-drive into the Linux file system?

A. attach

B. access

C. mount

D. umount

What is the correct answer?

4

Which of the following command is used to enable the shell expansion?

A. shell +x

B. shell -x

C. set -x

D. set +