Linux Commands (Mixed) Aptitude Questions and Answers

Linux Commands (Mixed) Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux Commands (Mixed).
Submitted by Nidhi, on May 21, 2020

This section contains Aptitude Questions and Answers on Linux Commands (Mixed).

1) Which of the following command is used to display the list of available groups in the system?
  1. listgroup
  2. list
  3. getent
  4. groups

2) Which exact command is used to remove a user from the group in the Linux system?
  1. delgroup –d <username> <groupname>
  2. remusr –d <username> <groupname>
  3. gpasswd -d <username> <groupname>
  4. rm –d <username> <groupname>

3) Which exact command is used to change the group of a user in the Linux system?
  1. usermod -g <new_groupname> <username>
  2. usermod -g <username> <new_groupname>
  3. usermod -c <new_groupname> <username>
  4. usermod -c <username> <new_groupname>

4) There are the following commands that are given, which of them are correct about the "nohup" command in the Linux system?
  1. The "nohup" stands for No Hang-up.
  2. The "nohup" stands for Notify Hang-up.
  3. The "nohup" command is used to keeps the processes running, even the terminal gets close by the user.
  4. This command is used to prevent the processes from the SIGHUP signals.

Options:

  1. A and C
  2. B and C
  3. B, C, and D
  4. A, C, and D

5) By default, which files store output of the command that executed with "nohup" utility?
  1. nh.out
  2. nohup.out
  3. nohup.txt
  4. nh.txt

6) Which of the following symbol is used to run a background process?
  1. #
  2. &
  3. @
  4. $

7) Which of the following command is used to configure a public key at the SSH server for a user?
  1. ssh-copy-id
  2. ssh-public-key
  3. ssh-public-id
  4. ssh-copy-key

8) Which of the following command is used to add a key to the SSH agent?
  1. agent
  2. ssh-agent
  3. add-key
  4. ssh-add

9) Which of the following Linux command is used to transfer files to the remote computer?
  1. cp
  2. copy
  3. ssh-copy
  4. scp

10) Which of the following command is used to schedule tasks in the Linux system?
  1. schedule
  2. stask
  3. at
  4. ats

11) Which of the following command is used to print pending tasks?
  1. ptasks
  2. atq
  3. qtasks
  4. atrm

12) Which of the following command is used to delete scheduled tasks?
  1. atrm
  2. atdl
  3. atdel
  4. rmtask

13) Which of the following keyword is used to specify the time of "4pm" in "at" command for scheduling tasks?
  1. breaktime
  2. freetime
  3. midnight
  4. teatime

14) Which of the following command is used to perform mathematical expression and print output on the terminal?
  1. expr
  2. exp
  3. calexp
  4. calexpr

15) Which of the following types of arguments or operators are supported by "expr" command?
  1. Plus '+' operator
  2. Modulus operator
  3. Regular expressions
  4. Set of characters in the string

Options:

  1. A and C
  2. A and B
  3. A, B, and C
  4. A, B, C, and D

16) Which exact command is used to multiply 4 by 2 using "expr" in the Linux System?
  1. expr 4 * 2
  2. expr 4 /* 2
  3. expr 4 \* 2
  4. expr 4 ^* 2

17) Which of the following terminal command is used to send an email?
  1. email
  2. mail
  3. electronicmail
  4. mailcmd

18) Which of the following command is used to extract text from binary or executable files in the Linux operating system?
  1. strings
  2. string
  3. str
  4. strbin

19) Which of the following command is used to get brief information about Linux commands and functions?
  1. info
  2. incmd
  3. whatis
  4. cmddocs

20) Which of the following types of encodings are used by the "strings" command?
  1. 16-bit little endian
  2. 16-bit big endian
  3. 7-bit byte ASCII
  4. None of the above

Options:

  1. A and B
  2. B and C
  3. A, B, and C
  4. D






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.