Home »
Aptitude Questions and Answers »
Linux Aptitude Questions and Answers
Linux Utility Commands Aptitude Questions and Answers
Linux Utility Commands Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux Utility Commands.
Submitted by Nidhi, on May 04, 2020
This section contains Aptitude Questions and Answers on Linux Utility Commands.
1) Which of the following command is used to search the file(s) within the specified directory?
- search
- find
- fileseach
- fsearch
Correct answer: 2
find
The "find" command is used to search the file(s) within the specified directory.
2) There are the following commands that are given below, which of them are correct "locate" command in the Linux operating system?
- The locate command is also used to search a file.
- The locate command searches the file into the database.
- The locate command slower than find command.
- The locate command search file in MySQL database only.
Options:
- A and B
- A and C
- A, B, and C
- A, B, C, and D
Correct answer: 1
A and B
Statements A and B are correct about the "locate" command.
3) Which of the following command is used to update the database used by the "locate" command?
- updatelocate
- updatelocatedb
- locatedb
- updatedb
Correct answer: 3
locatedb
The "updatedb" command is used to update the database used by the "locate" command.
4) Which of the following option is used to search a file with inode number using "find" command?
- -inode
- -inum
- -inod
- -in
Correct answer: 2
-inum
The "-inum" option is used to search a file with an inode number using the "find" command.
5) Which exact command is used to find files whose permissions are "765" in the current directory?
- find . -perm 765
- find . -per 765
- find . -p 765
- find . -prm 765
Correct answer: 1
find . -perm 765
6) What status is returned on an error by the "updatdb" command?
- 0
- 1
- 2
- 3
Correct answer: 2
1
The "updatedb" command returns the status 1 on error and status 0 on success.
7) Which of the following configuration file is used by "updatedb" command?
- /etc/db.conf
- /etc/locatedb.conf
- /etc/updatedb.conf
- /etc/update.conf
Correct answer: 3
/etc/updatedb.conf
The "/etc/updatedb.conf" configuration file used by “updatedb” command.
8) Which of the following command is used to display the calendar?
- cal
- calendar
- calen
- cln
9) Which exact command is used to see the calendar of the year 2020?
- cal 2020
- cal -y 2020
- calendar 2020
- None of the above
Correct answer: 1
cal 2020
The "cal 2020" command is used to see the calendar of the year 2020.
10) The "locate" command is a?
- Foreground process
- Background process
Correct answer: 2
Background process
The "locate" command is a background process.
11) In which unit, time passed in sleep command by default?
- Seconds
- Minutes
- Milliseconds
- Microseconds
Correct answer: 1
Seconds
By default time passed in seconds in "sleep" command.
12) Which of the following command is used to view the content of the compressed file?
- cat
- gzip
- zcat
- zipcat
Correct answer: 3
zcat
The "zcat" command is used to view the content of the compressed file.
13) Which of the following command are used for compressed files?
- zcat
- zmore
- zless
- zgip
Options:
- A and B
- A and C
- A, B, and C
- A, B, and D
Correct answer: 3
A, B, and C
Statements A, B, and C are used for the compressed file.
14) What is the extension of compressed file generated by "bzip2" command?
- .zip2
- .bz2
- .b2
- .z2
Correct answer: 2
.bz2
The ".bz2" is the extension of compressed file generated by “bzip2” command.
15) Which of the following command is not used to extract a compressed file?
- untar
- tar
- gunzip
- bunzip2
Correct answer: 2
tar
There is no any untar command exists in the Linux operating system.