Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following command is used to forward search for given string in the vi editor?

A. ?string

B. /string

C. string

D. #string

Correct Answer :

B. /string


The /string is used to forward search for given string in the vi editor.

Related Questions

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

What is the range of UIDs is reserved for groups and system accounts?

A. 1-50

B. 51-100

C. 100-999

D. 1000-9999

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 command is used to rename the existing group?

A. rename

B. rengroup

C. groupmode

D. groupmod

What is the correct answer?

4

The scope of an environment variable can be?

A. Local

B. Global

C. Both

D. None

What is the correct answer?

4

How can we view and add content in the kernel ARP table?

A. arpmod

B. arpalter

C. arptable

D. arp

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

There are the following statements that are given below, which of them are correct about vi the editor?
a) The vi editor is also known as a Visual editor.
b) The vi editor is used to create and edit text files.
c) It is a very user-friendly editor and works on different distributions of Linux.
d) vim is the improved version of the vi editor.
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 rename the file names that contain text with txt in the current directory?

A. rename 'r/txt/text' *

B. rename 'e/text/txt' *

C. rename 's/txt/text' *

D. rename 's/text/txt' *

What is the correct answer?

4

There are the following statements that are given below which of them are correct about cut command?
a) The cut command is used to select a specific column of a file.
b) We can use a delimiter in the cut command to separate the columns of a file.
c) We cannot use a delimiter in the cut command.
d) The cut command is used to move files from one location to another location.
Options:

A. Only A

B. Only B

C. A and B

D. A and C

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 +

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 exact command is used to kill a process by name?

A. killall

B. kill -n

C. kill -p

D. kill -s

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

What is the full form of OFS in AWK?

A. Object Field Separator

B. Obsolete Field Separator

C. Officiated Field Separator

D. Output Field Separator

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

What is the full form of MTU?

A. Maximum Transmission Unit

B. Minimum Transmission Unit

C. Multiple Transmission Unit

D. Minimum Transactional Unit

What is the correct answer?

4

Which of the following statements are the correct about XXXsed command?
a) The sed command is used to display modified data on the console screen, actual data in the file remain the same.
b) The sed command is used to modify the data of a file permanently.
c) The regular expressions are used to display modified data of a file in the sed command.
d) The sed command does not use regular expressions.
Options:

A. A and C

B. A and D

C. B and C

D. B and D

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 command is used to change the permissions of a file?

A. chperm

B. chmod

C. chown

D. permission

What is the correct answer?

4

Which of the following Linux command is used to configure a wireless network interface in the Linux operating system?

A. wirelessconfig

B. wconfiguration

C. iwconfig

D. wwconig

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about root directory in Linux?
a) All directories have come inside the root directory in the Linux operating system.
b) The root directory is represented by a forward slash (/).
c) The root directory is represented by a backward slash (/).
d) The root directory is the part of Linux Kernel
Options:

A. A and B

B. A 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 is correct about the SHELL environment variables in Linux operating system?

A. This environment variable is used to execute shell scripts.

B. This environment variable contains the path of shell which is being used by the user.

C. This environment variable contains the path of the compiler which is used for shell script compilation.

D. This environment variable is set by default with the username.

What is the correct answer?

4

Which exact command is used to list the files and directories with group id and owner id instead of their names?

A. ls -l

B. ls -n

C. ls -k

D. ls -h

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

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 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 of the following command are used for compressed files?
a) zcat
b) zmore
c) zless
d) zgip
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

What operations are performed when a new user is created?

A. Creates a new home directory for the user

B. The ownership and permissions are assigned to the home directory

C. Both of the above

D. None of the above