- Forums
- Linux Systems
- Removing Linux Files With Confirmation Ask Command
This Page Contains information about Removing Linux Files With Confirmation Ask Command By unix in category Linux Systems with 0 Replies. [2865], Last Updated: Sat May 18, 2024
unix
Sat Aug 26, 2006
0 Comments
1151 Visits
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