Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following command is used to delete till the end of the line in the vi editor?

A. $

B. d$

C. d0

D. DD

Correct Answer :

B. d$


The d$ command is used to delete till the end of the line in the vi editor.

Related Questions

What is the correct answer?

4

Which of the following command is used to quit with discarding changes from the vi editor?

A. :q

B. :Q

C. ZZ

D. :q!

What is the correct answer?

4

Which of the following command is used to know about the swap memory of the system?

A. swapmem

B. free

C. sw

D. sp

What is the correct answer?

4

Which of the following is known as match operator in AWK?

A. =

B. !

C. ~

D. ==

What is the correct answer?

4

There are the following options that are given below, which of the following security mechanism are used in the Linux operating system?
a) Authentication
b) Authorization
c) Cryptography
d) All the above
Options:

A. A and B

B. B and C

C. A and C

D. D

What is the correct answer?

4

Which of the following Linux distribution does not follow the File Hierarchy System?
a) Ubuntu
b) GoboLinux
c) NixOS
d) Redhat
Options:

A. A and B

B. A and C

C. B and C

D. B and D

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the /sys directory in the Linux operating system?
a) The /sys directory contains kernel related information.
b) The /sys directory contains information about hardware devices.
c) The /sys directory contains user-related information.
d) All the above
Options:

A. A and B

B. A and C

C. B and C

D. B and D

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

What is the correct answer?

4

Which exact command is used to remove a directory with its sub-directories?

A. rmdir -a

B. rmdir -p

C. rmdir -s

D. rmdir -k

What is the correct answer?

4

Which of the following command is used to print the number of lines that exist in the specified file?

A. awk 'END { print NL }'

B. awk 'END { print N }'

C. awk 'END { print NR }'

D. awk 'END { print NN }'

What is the correct answer?

4

Which of the following are the inbuilt variables in AWK?
a) FS
b) OFS
c) KFS
d) ORS
Options:

A. A and B

B. A, C, and D

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 assign a new name to the Linux built commands?

A. newcmd

B. new

C. alias

D. aliasname

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

Which command is used to cut a file from one location and paste to the other location?

A. cut

B. ct

C. move

D. mv

What is the correct answer?

4

Which of the following command is used to update the database used by the locate command?

A. updatelocate

B. updatelocatedb

C. locatedb

D. updatedb

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

What is the correct answer?

4

In Linux, the sed stands for?

A. String Editor

B. Stream Editor

C. Simple Editor

D. Single Editor

What is the correct answer?

4

Which Linux command is used to display information regarding file systems about the total space and free space?

A. file

B. info

C. df

D. ds

What is the correct answer?

4

Which exact command is used to kill a running process using process id?

A. killall

B. kill -9

C. kill -p

D. kill -s

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 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

There are the following statements that are given below, which of them are correct about Linux shell?
a) Linux shell is a part of Linux kernel.
b) Linux shell provides an environment to execute commands.
c) Linux shell is used to execute scripts.
d) Linux shell is used to operate GPIO pins in the kernel.
Options:

A. A and B

B. B and C

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 the Linux File System?
a) File System is a layer in the Linux operating system, which is used to control the management of storage data.
b) It provides the arrangement of files in the disk storage.
c) It is used to manage information about files like name, size, creation, and modification time.
d) Linux File System is the software that runs only on Intel architecture.
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 the host command in the Linux operating system?

A. This command is used to display domain name for specified IP address.

B. This command is used to display an IP address for the specified domain name.

C. Both of the above

D. None of the above

What is the correct answer?

4

Which of the following commands are external commands in the Linux operating system?
a) cat
b) file
c) help
d) man
Options:

A. A and B

B. C and D

C. A, B, and D

D. A, B, C, and D

What is the correct answer?

4

Which command is used to remove an existing group?

A. removegroup

B. deletegroup

C. groupdel

D. grouprmv

What is the correct answer?

4

Which of the following statements are the correct about XXXsort command?
a) This command is used to sort the content of a file in alphabetical order.
b) This command is used to sort the content of a file based on the column.
c) This command is used for numeric sorting bases on the column.
d) None of the Above.
Options:

A. A and B

B. A and C

C. A, B, and C

D. D

What is the correct answer?

4

Which of the following command is used to extract text from binary or executable files in the Linux operating system?

A. strings

B. string

C. str

D. strbin

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 of the following command is used to add a key to the SSH agent?

A. agent

B. ssh-agent

C. add-key

D. ssh-add

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