LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2003, 08:12 PM   #1
changwoo
LQ Newbie
 
Registered: Apr 2003
Posts: 15

Rep: Reputation: 0
how do you turn prompt off when deleting files on redhat 8


I am a newbie, can anyone tell me the command to turn off prompt on redhat when I am deleting files. thanks

changwoo
 
Old 05-08-2003, 08:15 PM   #2
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Code:
rm -f
 
Old 05-08-2003, 08:17 PM   #3
changwoo
LQ Newbie
 
Registered: Apr 2003
Posts: 15

Original Poster
Rep: Reputation: 0
is there away that you can turn it off for good
 
Old 05-08-2003, 08:36 PM   #4
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
in your ~/.bash_profile:

alias rm='rm -f'
 
Old 05-08-2003, 08:39 PM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
I won't do that if I were you, the option -f exists for something after all. One typo and everything could be gone.
edit: ok, not everything but you can do major damage.

Last edited by iceman47; 05-08-2003 at 08:41 PM.
 
Old 05-08-2003, 09:12 PM   #6
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Code:
set noclobber
helps w/ the overwriting issue

I personally use the alias, but Iceman has a good point.

do what you want

EDIT: I don't know W.T.F. noclobber has to do with rm, just a brain fart I guess

Last edited by PTBmilo; 05-08-2003 at 09:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck at Grub2 prompt after deleting Linux partition of dual boot alcorta Linux - Software 3 07-09-2005 12:12 AM
Deleting files in C monil Programming 4 03-13-2005 11:33 AM
Deleting files! a_priebe47 Slackware 6 10-17-2004 10:58 PM
Deleting a user account from prompt lozz1978 Linux - Newbie 8 01-15-2004 08:43 AM
Deleting files ShakyJake Linux - Newbie 12 05-08-2003 04:07 PM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration