Computer Science Fundamentals Operating Systems Subjective
Mar 12, 2013

How do you remove a file in UNIX system?

Detailed Explanation

You can remove a file with the ‘rm’ command.
Syntax:-
rm [options] filename
Common Options:-
-i     interactive (prompt and wait for confirmation before proceeding)
-r     recursively remove a directory, first removing the files and subdirectories beneath it
-f     don’t prompt for confirmation (overrides -i)
Examples:-
% rm <filename>

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback