LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-28-2005, 09:54 AM   #1
ionmich
Member
 
Registered: Sep 2003
Location: Mexico, Sweden
Distribution: openSUSE 15.2, Microware OS-9, MX-19, Bodhi 5.1.0
Posts: 256

Rep: Reputation: 41
"rm" chokes


When I try to clean out my Opera cache files using...

:~$ rm /home/ion/.opera/cache4/*

I get the following on the command line:-

-bash: /usr/bin/rm: Argument list too long

The "rm" manual page does not address this problem. Anyone have a solution?

Thanks.
 
Old 04-28-2005, 10:00 AM   #2
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
I'd do

rm -rf /home/ion/.opera/cache4

and then recreate the directory /home/ion/.opera/cache4 if required.
 
Old 04-28-2005, 10:57 PM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
or cd to that directory and do
Code:
for i in *; do rm "$i"; done
--Shade
 
Old 04-28-2005, 11:47 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The conventional fix is, I believe:
Code:
find /home/ion/.opera/cache4/ -exec rm {} \;
 
Old 04-29-2005, 07:30 PM   #5
buaku
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2 (2.4.31)
Posts: 119

Rep: Reputation: 15
there's also the xargs way!
I totally forget the syntax. Everytime I needed to use it I had to look it up. I thought I wrote it down once, but I can't seem to find it.
 
Old 04-30-2005, 04:25 AM   #6
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Rep: Reputation: 31
geez, i need to get a huge list of commands - everytime i browse this forum i learn how to do new things on command lines
 
Old 04-30-2005, 12:16 PM   #7
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Originally posted by joker20
geez, i need to get a huge list of commands - everytime i browse this forum i learn how to do new things on command lines
Okey Dokey............http://ss64.com/bash/index.html

here ya go.........
 
Old 04-30-2005, 12:19 PM   #8
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Rep: Reputation: 31
Quote:
Originally posted by freakyg
Okey Dokey............http://ss64.com/bash/index.html

here ya go.........
damn, thanks bro
 
Old 05-01-2005, 11:12 AM   #9
ionmich
Member
 
Registered: Sep 2003
Location: Mexico, Sweden
Distribution: openSUSE 15.2, Microware OS-9, MX-19, Bodhi 5.1.0
Posts: 256

Original Poster
Rep: Reputation: 41
Thanks everybody. So many interesting solutions!
 
  


Reply



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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 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
Open Source Consulting | Domain Registration