Home
Current Affairs January 2024

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

Correct Answer :

D. yw


The yw command is used to copy one word in the vi editor.

Related Questions

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

There are the following statements that are given below, which of them are correct responsibilities of the kernel?
a) Device management
b) Memory management
c) Creation of user programs
d) Process management
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

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 of the following statements are the correct about XXXod command?
a) This command is used to display the content of the file in octal format.
b) This command is used to display the content of the file in hexadecimal format.
c) This command is used to display the content of the file in ASCII format.
d) All 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 create a user with a specified name for the home directory, here we will create a user with user1 name and name of the home directory will be MyHome?

A. useradd -m /MyHome user1

B. useradd -m -d /MyHome user1

C. useradd -m -h /MyHome user1

D. useraddhome /MyHome user1

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

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

nslookup stands for?

A. Network System lookup

B. Network Server lookup

C. Name Server lookup

D. Next Server lookup

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 Linux command is used to transfer files to the remote computer?

A. cp

B. copy

C. ssh-copy

D. scp

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

What is the correct answer?

4

Which of the following command uses regular expressions in the Linux operating system?
a) grep
b) sed
c) rename
d) bash
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 command is used to display and manipulate routing tables in the Linux operating system?

A. routepath

B. routetable

C. route

D. alterroute

What is the correct answer?

4

Which of the following operator is used to set and override the permission of a file in chmod command?

A. +

B. =

C. *

D. -

What is the correct answer?

4

Which of the following mode(s) are used in the vi editor?

A. Insert mode

B. Command mode

C. Both of the above

D. None of the above

What is the correct answer?

4

There are the following commands that are given, which of them are correct about the nohup command in the Linux system?
a) The nohup stands for No Hang-up.
b) The nohup stands for Notify Hang-up.
c) The nohup command is used to keeps the processes running, even the terminal gets close by the user.
d) This command is used to prevent the processes from the SIGHUP signals.
Options:

A. A and C

B. B and C

C. B, C, and D

D. A, C, and D

What is the correct answer?

4

Which exact command is used to set subnet mask in the Linux operating system?

A. ifconfig subnet

B. ifconfig subnet

C. ifconfig netmask

D. ifconfig netmask

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

There are the following statements that are given below, which of them are correct about Linux File Hierarchy System?
a) The Linux File Hierarchy System is also known as Linux Root File System.
b) It is a standard that describes the directory and file structure in the operating system.
c) In different distributions of the Linux operating system, the File Hierarchy system can be a little bit different.
d) It describes where the files are located in the operating system.
Options:

A. A and B

B. C and D

C. B, C, and D

D. A, B, C, and D

What is the correct answer?

4

Which Linux command is used to create an encrypted password?

A. encrypt passwd

B. secure passwd

C. openssl passwd

D. All the above

What is the correct answer?

4

Which of the following symbol is used to run a background process?

A. #

B. &

C. @

D. $

What is the correct answer?

4

Which of the following command is used to display the last executed commands list?

A. lastcmd

B. last

C. history

D. chistory

What is the correct answer?

4

Which of the following command is used to schedule tasks in the Linux system?

A. schedule

B. stask

C. at

D. ats

What is the correct answer?

4

dig stands for?

A. Domain Information Groper

B. Domain Instruction Gist

C. Double Instruction Groper

D. Double Information Groper

What is the correct answer?

4

Which command is used to get the path of the current directory?

A. cdir

B. dir

C. pwd

D. pdir

What is the correct answer?

4

How can we shut down the system by notifying all users?

A. Using init 0 command

B. Using init 6 command

C. Using shutdown command

D. Using turnoff command

What is the correct answer?

4

Which command is used to know about groups that belong to the current user?

A. grouplist

B. groups

C. groupinfo

D. groupinformation

What is the correct answer?

4

Which of the following option is used in grep command to search specific words from a file by ignoring case?

A. -a

B. -i

C. -c

D. -ing

What is the correct answer?

4

Which option is used to assign permission to directory recursively?

A. -r

B. -R

C. -REC

D. -rec

What is the correct answer?

4

Which of the following command is used to view the content of the compressed file?

A. cat

B. gzip

C. zcat

D. zipcat