Which Linux command is used to delete a file from the file system permanently? MCQ with Answer and Explanation

Which Linux command is used to delete a file from the file system permanently?
A. mv
B. remove
C. rm
D. del
Answer: Option C
Solution (By JKSSB Mock Tests)
The 'rm' command stands for remove and is used to delete files or directories in Unix-like terminal shells.

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 conditions is NOT a necessary requirement for a deadlock to occur within an operating system environment?
A. Hold and Wait
B. Mutual Exclusion
C. Circular Wait
D. Preemption

Correct Answer: Option D


Explanation:
According to Coffman's conditions, deadlocks require *No Preemption*. If resources can be preempted, a deadlock situation can be broken or prevented.

This question belongs to: Computer Operating Systems
Question #2
In Android, the 'adb' (Android Debug Bridge) is used for:
A. Transferring files
B. Managing emulators
C. Debugging and communicating with an Android device via command line
D. Installing apps only

Correct Answer: Option C


Explanation:
ADB is a versatile tool for developers to execute commands, install apps, view logs, and debug on connected devices.

This question belongs to: Computer Operating Systems
Question #3
Which Linux command is used to find files that match a certain pattern?
A. find
B. grep
C. which
D. locate

Correct Answer: Option A


Explanation:
find searches for files in a directory hierarchy based on name, type, size, etc.; locate uses a database for faster search.

This question belongs to: Computer Operating Systems