Q. Which command shows real-time system processes and resource usage?

  • (A) top
  • (B) ps
  • (C) htop
  • (D) Both top and htop
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both top and htop
Explanation: 'top' and 'htop' provide dynamic real-time process monitoring.

Q. How can you display the manual page for the 'ls' command?

  • (A) man ls
  • (B) help ls
  • (C) ls --help
  • (D) info ls
πŸ’¬ Discuss
βœ… Correct Answer: (A) man ls
Explanation: 'man ls' shows detailed manual documentation.

Q. Which command is used to copy files or directories?

  • (A) cp
  • (B) mv
  • (C) copy
  • (D) clone
πŸ’¬ Discuss
βœ… Correct Answer: (A) cp
Explanation: 'cp' copies files or directories.

Q. Which signal is sent by default when using the 'kill' command?

  • (A) SIGTERM
  • (B) SIGKILL
  • (C) SIGSTOP
  • (D) SIGINT
πŸ’¬ Discuss
βœ… Correct Answer: (A) SIGTERM
Explanation: SIGTERM (signal 15) requests process termination.

Q. What is the use of the 'alias' command?

  • (A) Creates shortcuts for commands
  • (B) Shows available commands
  • (C) Deletes commands
  • (D) Modifies system PATH
πŸ’¬ Discuss
βœ… Correct Answer: (A) Creates shortcuts for commands
Explanation: 'alias' defines or lists command shortcuts.

Q. Which directory contains system log files?

  • (A) /var/log
  • (B) /etc/log
  • (C) /usr/log
  • (D) /log
πŸ’¬ Discuss
βœ… Correct Answer: (A) /var/log
Explanation: System logs are stored in /var/log.

Q. Which command is used to check disk input/output performance?

  • (A) iostat
  • (B) iotop
  • (C) top
  • (D) vmstat
πŸ’¬ Discuss
βœ… Correct Answer: (A) iostat
Explanation: 'iostat' reports CPU and disk I/O statistics.

Q. Which command shows all user groups of the current user?

  • (A) groups
  • (B) id
  • (C) whoami
  • (D) groupmod
πŸ’¬ Discuss
βœ… Correct Answer: (A) groups
Explanation: 'groups' lists all groups current user belongs to.

Q. Which command is used to schedule recurring jobs in Linux?

  • (A) cron
  • (B) at
  • (C) batch
  • (D) systemd-timers
πŸ’¬ Discuss
βœ… Correct Answer: (A) cron
Explanation: 'cron' schedules repeated tasks based on a timetable.

Q. What is the default port number for SSH service?

  • (A) 22
  • (B) 23
  • (C) 21
  • (D) 80
πŸ’¬ Discuss
βœ… Correct Answer: (A) 22
Explanation: SSH runs by default on port 22.