Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-02-2004, 06:50 PM   #1
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?

Old 06-02-2004, 06:55 PM   #2
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, 07:16 PM   #3
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,266

Rep: Reputation: 60
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, 07:32 PM   #4
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 :|


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

All times are GMT -5. The time now is 07:17 PM.

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