Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following command is used to move up in the vi editor?

A. I

B. h

C. j

D. k

Correct Answer :

D. k


The k command is used to move up in the vi editor.

Related Questions

What is the correct answer?

4

Which exact command is used to show information about specified interface?

A. ip show

B. ip a show

C. ip b show

D. ip show

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

What is the full form of ORS in AWK?

A. Output Record Separator

B. Output Record Symbol

C. Output Resumed Symbol

D. Object Record Separator

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

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

The grep stands for?

A. Global Regular Expression Print

B. General Regular Expression Pegging

C. General Regular Expression Post

D. Global Regular Expression Post

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

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 get brief information about Linux commands and functions?

A. info

B. incmd

C. whatis

D. cmddocs

What is the correct answer?

4

Which exact command is used to change from the current directory to the previous directory?

A. cd ..

B. cd ~

C. cd -

D. cd .

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 of the following command is used to replace the current character in the vi editor?

A. R

B. rr

C. r

D. rc

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 command is used to know information about a password?

A. change

B. knowpass

C. passinf

D. info

What is the correct answer?

4

Which of the following directory contains device files?

A. /device

B. /devfile

C. /dev

D. /sys

What is the correct answer?

4

Which option is used in the regular expression to remove a complete line from the output of a file using sed command?
a) zcat
b) zmore
c) zless
d) zgip
Options:

A. d

B. del

C. delete

D. rem

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about bang bang command in the Linux operating system?

A. The bang bang command is used to remove commands history.

B. The bang bang command is used to remove execute last executed command.

C. The bang bang command is used to display the last login time of the current user.

D. None of the above

What is the correct answer?

4

Which of the following option is used for a basic regular expression in the grep command?

A. -B

B. -G

C. -P

D. -E

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

What is the full form of JFS?

A. Just File System

B. Journaled File System

C. Joint File System

D. Joker File System

What is the correct answer?

4

Which of the following command is used to display the calendar?

A. cal

B. calendar

C. calen

D. cln

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

What is the correct answer?

4

Which of the following command is used to perform mathematical expression and print output on the terminal?

A. expr

B. exp

C. calexp

D. calexpr

What is the correct answer?

4

Which command is used to view the specified lines from the start of a file?

A. start

B. head

C. beg

D. first

What is the correct answer?

4

Which of the following directory contains interrupts related files?

A. /proc

B. /dev

C. /var

D. /home

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 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 exact command is used to print lines of the file that are not matching to the specific word?

A. grep -v

B. grep -i

C. grep -k

D. grep -n