Removing Linux Files With Confirmation Ask Command

RegisterLogin
Removing Linux Files With Confirmation Ask Command
Post Description: Removing Linux Files With Confirmation Ask Command
Tags: Removing, Linux, Files, With, Confirmation, Ask, Command
This Post Was Posted On Feb 29, 2008 By unix #2083
Have you ever deleted a file in linux using the shell, but was never asked or confirm to delete it. If you are deleting files and want to get a confirmation prompt, do this command:

This will remove the file junk_file.txt with a confirmation. The -i is there to tell the rm utility you want to display a confirmation before deleting the file.


     Code:
rm -i junk_file.txt
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Tue Dec 20, 2011 1:40 pm
Powered by: Webune Forums V3