Which Linux command is used to create an alias for a command? MCQ with Answer and Explanation

Which Linux command is used to create an alias for a command?
A. ln
B. alias
C. set
D. export
Answer: Option B
Solution (By JKExamLibrary)
alias creates a shortcut for a command or series of commands.

This question belongs to: Computer Operating Systems

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1 Report Error
Which Windows command is used to manage disk partitions from the command line?
A. diskpart
B. format
C. fdisk
D. parted

Correct Answer: Option A


Explanation:
diskpart is the Windows command-line utility for partition management; fdisk and parted are for Linux.

This question belongs to: Computer Operating Systems
Question #2 Report Error
What is the purpose of the Android 'Permission System'?
A. To grant superuser rights
B. To manage file permissions
C. To allow apps to communicate
D. To protect user privacy by controlling app access to sensitive data

Correct Answer: Option D


Explanation:
Android permissions restrict access to dangerous data and system features; users grant permissions at runtime.

This question belongs to: Computer Operating Systems
Question #3 Report Error
Which Linux command is used to set the system's hostname?
A. set-hostname
B. hostnamectl
C. sysctl
D. hostname

Correct Answer: Option D


Explanation:
hostname can display or set the system's hostname; hostnamectl is also used in systemd.

This question belongs to: Computer Operating Systems