LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-02-2004, 05:50 PM   #1
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Rep: Reputation: 15
Remove files non-interactively


How can I have the rm command remove files without confirmation by default?

thanks
 
Old 06-02-2004, 05:55 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
rm -rf filename, be careful w/that one.
good luck.
 
Old 06-02-2004, 06:16 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
if you run alias, you should see that alias has rm -i there. you can remove it from your .bash_rc or wherever it is, or type unalias rm, and that alias will be removed for that session.
 
Old 06-02-2004, 06:32 PM   #4
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
non interactively is simply rm -f

rm -rf is recursively, so doing rm -rf / would remove EVERYTHING :|
 
  


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
Logging in as Root Interactively chrissanders Linux - Newbie 16 11-22-2005 02:53 PM
changing password non-interactively fili Linux - General 3 11-05-2004 06:10 AM
remove a lot of files matko Linux - General 1 07-08-2004 03:33 AM
remove old kernel files Pieter Linux - Software 1 01-30-2003 04:00 AM
sending telnet commands non-interactively JustinHoMi Linux - Networking 4 09-29-2001 01:20 PM


All times are GMT -5. The time now is 02:26 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