Home
Current Affairs January 2024

What is the correct answer?

4

Which command is used to compress a file?

A. zip

B. gzip

C. ezip

D. mzip

Correct Answer :

B. gzip


The gzip command is used to compress a file.

Related Questions

What is the correct answer?

4

How can we differentiate between file and directory from the output of ls command?

A. Directories are mentioned in capital letters in the output of ls command.

B. The d character is used before permissions in the output of ls command.

C. Both of the above

D. None of the above

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

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

Which of the following command is used to get information about the File Hierarchy System?

A. man rfs

B. man hier

C. man hfs

D. man fhs

What is the correct answer?

4

In which unit, time passed in sleep command by default?

A. Seconds

B. Minutes

C. Milliseconds

D. Microseconds

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about /etc/login.defs file in the Linux operating system?
a) In this file, we can define the maximum number of days a password may be used.
b) In this file, we can define the minimum number of days allowed between password changes.
c) In this file, we can also define the minimum and maximum length of the password.
d) There is no /etc/login.defs file exists in the Linux operating system.
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 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 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

By default, which files store output of the command that executed with nohup utility?

A. nh.out

B. nohup.out

C. nohup.txt

D. nh.txt

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

What is the correct answer?

4

Which of the following Linux command is used to set values in environment variables?

A. setval

B. setenv

C. export

D. env

What is the correct answer?

4

Which of the following command is known as bang bang in the Linux operating system?

A. ##

B. ,

C. !!

D. @@

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 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 print pending tasks?

A. ptasks

B. atq

C. qtasks

D. atrm

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 forward search for given string in the vi editor?

A. ?string

B. /string

C. string

D. #string

What is the correct answer?

4

Which command is used to check the access and modification time of a file in Linux?

A. check

B. filetimes

C. state

D. file

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

There are the following options that are given below, which is not a correct Linux distribution?

A. CentOS

B. Linux mint

C. SunOS

D. OpenSUSE

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

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

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 Linux command is used to check disk usage of files and directories?

A. diskinf

B. diskuse

C. du

D. fileinf

What is the correct answer?

4

What is the full form of AWK?

A. Active Working Kit

B. Active Well Kudos

C. Aho Weinberger Kernighan

D. Anderson Washington Kernighan

What is the correct answer?

4

Which run-level is used with the init command to reboot the system?

A. 0

B. 1

C. 4

D. 6

What is the correct answer?

4

Which exact command is used to change the group of a user in the Linux system?

A. usermod -g

B. usermod -g

C. usermod -c

D. usermod -c

What is the correct answer?

4

Which of the following command is used to delete the character before cursor in the vi editor?

A. X

B. x

C. D

D. d

What is the correct answer?

4

Which of the following operator is used to store the exit code of a previous command?

A. $?

B. %$

C. ?&

D. ?@