Sample Header Ad - 728x90

How can I make rm -rf ask for confirmation just once at the directory level?

9 votes
4 answers
8355 views
If I use rm -rfi, this asks me every time each file is deleted. If I have a list of rm -rf commands, how can I make it so that the machine asks me for confirmation just once (when trying to delete the directory itself)
Asked by chintogtokh (191 rep)
Apr 16, 2019, 02:53 AM
Last activity: Mar 17, 2024, 03:28 PM