Home
Current Affairs January 2024

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about touch command in Linux?
a) It is used to create empty files.
b) It is used to update the timestamp of the existing file.
c) It is used to write formatted data into the file.
d) It is used to view the content of the file.
Options:

A. A and B

B. B and C

C. A, B, and C

D. A, B, C, and D

Correct Answer :

A. A and B


Statements A and B are correct about touch command.

Related Questions

What is the correct answer?

4

What is the file system?

A. The file system is part of the Linux kernel which is used to call boot loader.

B. A file system is a user program to copy files from one location to another programs.

C. The file system is part of Linux OS which is used to arrange files and directories.

D. None of the above

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

There are the following commands that are given below, which of them are correct locate command in the Linux operating system?
a) The locate command is also used to search a file.
b) The locate command searches the file into the database.
c) The locate command slower than find command.
d) The locate command search file in MySQL database only.
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

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 run-level is used with the init command to halt the system?

A. 0

B. 1

C. 4

D. 6

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

Which command is used to remove a file?

A. remove

B. rm

C. rmfile

D. delete

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

There are the following statements that are given below, which of them are correct system libraries in Linux operating system?
a) System libraries are a special program.
b) We can use kernel functionalities using system libraries.
c) System libraries are user programs.
d) System libraries used system calls.
Options:

A. A and B

B. B and C

C. A, B, and D

D. A, B, and C

What is the correct answer?

4

Which exact command is used to get information about routing tables?

A. netstat -p

B. netstat -s

C. netstat -r

D. None of the above

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

Which of the following commands are used to download files from a specified URL?
a) curl
b) wget
c) filedownload
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 of the following command is used to quit with discarding changes from the vi editor?

A. :q

B. :Q

C. ZZ

D. :q!

What is the correct answer?

4

Which of the following directories that contain the executable binary files that require root privileges to perform tasks?

A. /sbin

B. /lib

C. /bin

D. /opt

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 option is used to know only system running time using the uptime command?

A. -p

B. -u

C. -l

D. -k

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

There are the following options that are given below, which of them are the correct environment variable used in the Linux operating system?
a) SHELL
b) TERM
c) PATH
d) HOME
Options:

A. A and B

B. C and D

C. A, C, and D

D. A, B, C, and D

What is the correct answer?

4

How to check the version of the ls command?

A. ls -v

B. ls --v

C. ls -version

D. ls --version

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

What is the correct answer?

4

There are the following statements that are given below, which of them are correct about the /var directory in the Linux operating system?
a) This directory contains log files.
b) This directory contains cache files.
c) This directory contains spool files.
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 of the following command is not used to extract a compressed file?

A. untar

B. tar

C. gunzip

D. bunzip2

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 Btrfs File System in Linux?
a) This file system does not use for production purposes.
b) It is used for fault tolerance.
c) It is used for extensive storage configuration.
d) It is used the extended version of JFS.
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 access external storage devices like pen-drive into the Linux file system?

A. attach

B. access

C. mount

D. umount

What is the correct answer?

4

Which exact command is used to remove a non-empty directory?

A. rmdir -removeall

B. rmdir -n

C. rmdir -rf

D. rmdir -ra

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

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 remove an existing alias?

A. rmalias

B. unalias

C. delalias

D. ralials