954,167 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

red hat confirmation prompt

hi everyone,

i have redhat 9 and when i delete a file , it gets deleted automatically. does any1 knw how i can prompt a message saying do u want to delete yes or no.

sam1
Posting Whiz
300 posts since Nov 2004
Reputation Points: 10
Solved Threads: 1
 

One of the best things about linux is that it doesn't baby you all the time about if you really meant to delete something or not. If they would just remove "trash" from all the desktops it would be even better.

If you delete it out of a shell without any augments "rm filename" it should ask you confirm with a "y" if you really want it deleted.

From a gui I can't help you, maybe someone else can.

w1r3sp33d
Junior Poster
186 posts since Dec 2004
Reputation Points: 13
Solved Threads: 3
 

if you're talking about at the command prompt, you can make an alias in your ~/.bashrc file:

alias rm='rm -i'

That will make it "interactive"-- prompting you to delete everytime you use the command.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

I dont know about Red Hat 9 But in red hat Fedora core you can go into GNOME and right click on the trash and select a check box to get the prompt asking yes or no.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: