Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 31)
31.
Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it
-r
-x
-i
-1
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
6 comments Page 1 of 1.

S.R.R. said:   1 decade ago
-r, which removes directories, removing the contents recursively beforehand (so as not to leave files without a directory to reside in) ("recursive").

-i, which asks for every deletion to be confirmed ("interactive").

-f, which ignores non-existent files and overrides any confirmation prompts ("force") , although it will not remove files from a directory if the directory is write protected.

Dheeraj Godwani said:   1 decade ago
If -i is attached with rm then editor will ask on command line whether to delete it like yes/no... which is called interactive.

Karthika said:   1 decade ago
-i means interactive, if -i used with rm means it will ask the user for confirmation before deletion.

Jyoti Nagpal said:   1 decade ago
If we use '-i' option with 'rm' command then the system will ask for confirmation before deleting the file.

Ganesh said:   1 decade ago
-i stands for 'interactive'
It is used with various commmands like rm,cp

Sumit said:   1 decade ago
Please explain me.

Post your comments here:

Your comments will be displayed after verification.