Which Linux command is used to set the system's hostname? MCQ with Answer and Explanation

Which Linux command is used to set the system's hostname?
A. set-hostname
B. hostnamectl
C. hostname
D. sysctl
Answer: Option C
Solution (By JKSSB Mock Tests)
hostname can display or set the system's hostname; hostnamectl is also used in systemd.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
Which of the following is a feature of the NTFS file system?
A. Lack of journaling
B. File compression and encryption
C. Case-insensitive filenames
D. Maximum file size of 4 GB

Correct Answer: Option B


Explanation:
NTFS supports file-level compression, encryption (EFS), and journaling; it also allows large file sizes.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is a feature of the FAT32 file system?
A. Encryption
B. Journaling
C. Support for file permissions
D. Wide compatibility with various operating systems

Correct Answer: Option D


Explanation:
FAT32 is compatible with nearly all OSes, but lacks security features like permissions, journaling, and encryption.

This question belongs to: Computer Operating Systems
Question #3
What is the purpose of the Android 'Vibrator' class?
A. To manage haptic feedback
B. To control vibration feedback on the device
C. All of the above
D. To trigger notifications with vibration

Correct Answer: Option C


Explanation:
Vibrator allows apps to vibrate the device for notifications, haptic feedback, or custom patterns.

This question belongs to: Computer Operating Systems