Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following command is used to switch two characters in vi editor?

A. sc

B. xp

C. xc

D. xx

Correct Answer :

B. xp


The xp command is used to switch two characters in the vi editor.

Related Questions

What is the correct answer?

4

The Linux Kernel is used to?

A. Manage hardware components

B. Execute user programs

C. Save database files

D. All of the above

What is the correct answer?

4

Which of the following symbol is used to match exactly one character?

A. $

B. ?

C. _

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

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

Which exact command is used to list the files and directories with the size of the file or directory?

A. ls -l

B. ls -s

C. ls -k

D. ls -h

What is the correct answer?

4

What is the default UID of root user in the Linux operating system?

A. 0

B. 1

C. 2

D. 3

What is the correct answer?

4

Which of the following command is used to search the file(s) within the specified directory?

A. search

B. find

C. fileseach

D. fsearch

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

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

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

Which of the following directory contains C language header files?

A. /usr/cfiles

B. /usr/include

C. /usr/headers

D. /usr/includes

What is the correct answer?

4

There are the following statements that are given below, which of them is correct about Linux kernel?

A. The kernel is the main part of the Linux root file system.

B. The kernel is a core part of OS, which acts as a bridge between hardware and user programs.

C. The kernel is one kind of shell used by system calls.

D. None of the above

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 are correct types of shells used in the Linux operating system?
a) Bourne shell
b) Korn shell
c) Bourne Again shell
d) POSIX shell
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

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

There are the following options that are given below, which of them are correct signals used in the Linux?
a) SIGINT
b) SIGHUP
c) SIGQUIT
d) SIGKILL
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 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 commands are used to display the information about the Linux commands?
a) man
b) info
c) infocmd
d) All the above
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

What is the default size of MTU in the Linux operating system?
a) cat
b) file
c) help
d) man
Options:

A. 1000

B. 1500

C. 2000

D. 2600

What is the correct answer?

4

Which of the following is not the correct option used with route command?

A. add

B. delete

C. -net

D. -host

What is the correct answer?

4

Which exact command is used to assign all read, write and execute permission to all owners of a file?

A. chmod 7

B. chmod 777

C. chown 777

D. chgrp 777

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 of the following symbol is used to match the empty string at the edge of a word?

A. \

B. >

C. B

D. 

What is the correct answer?

4

Which of the following types of regular expressions are used in the Linux operating system?
a) Basic Regular Expression
b) Extended Regular Expression
c) Crond Regular Expression
d) Perl Regular Expression
Options:

A. A and B

B. A, B, and D

C. A, B, and C

D. A, B, C, and D

What is the correct answer?

4

Which of the following commands is used to create a new user in the Linux operating system?

A. createuser

B. adduser

C. useradd

D. user

What is the correct answer?

4

Which of the following operator is used to comment lines in a shell script file?

A. //

B. \

C. /**/

D. #

What is the correct answer?

4

Which exact command is used to see the calendar of the year 2020?

A. cal 2020

B. cal -y 2020

C. calendar 2020

D. None of the above

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

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

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