Which Linux command is used to change the ownership of a file? MCQ with Answer and Explanation

Which Linux command is used to change the ownership of a file?
A. chgrp
B. chown
C. chmod
D. chattr
Answer: Option B
Solution (By JKSSB Mock Tests)
chown changes the owner and/or group of a file or directory.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to change the permissions of a file with symbolic notation?
A. chmod u+x file
B. chmod g+w file
C. chmod o-r file
D. All of the above

Correct Answer: Option D


Explanation:
chmod accepts symbolic mode like u+x (add execute for owner), g+w (add write for group), o-r (remove read for others).

This question belongs to: Computer Operating Systems
Question #2
What is the purpose of the Android 'Package Manager'?
A. To handle content providers
B. To install, upgrade, and remove applications on the device
C. To manage system packages and libraries
D. To manage notifications

Correct Answer: Option B


Explanation:
Package Manager is responsible for installation, update, and removal of apps, managing APK files and application metadata.

This question belongs to: Computer Operating Systems
Question #3
What is the purpose of the Android 'WallpaperManager'?
A. To control live wallpapers
B. To change the theme
C. To manage screen brightness
D. To set and manage the device's wallpaper

Correct Answer: Option D


Explanation:
WallpaperManager provides methods to set the home screen or lock screen wallpaper from resources or bitmap.

This question belongs to: Computer Operating Systems