KJ

Active Member
Feb 15, 2006
32
2
158
Hello,

Regarding

rm -rf /home/*/tmp/analog

Would like verification that this is safe to use. Analog stats have been removed from the servers for quite some time now but some old accounts still have the files in them.

Kindest regards
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
120
55
153
New York
cPanel Access Level
DataCenter Provider
We only keep analytics data for AWSTATS - cleaning up the old data poses no risk to the server. Depending on your policies or the client, you may want to discuss the importance of the historical data within ANALOG if there isn't parity in the data for the current analytics software you DO use (AWSTATS, etc)
 

KJ

Active Member
Feb 15, 2006
32
2
158
Ok understood. Please bare with me though.

My question in other words was if i need to write

rm -rf /home/*/tmp/analog

or if just

rm -f /home/*/tmp/analog

is enough. Don't know what -r refers too and that's why i'm asking.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,504
2,605
363
cPanel Access Level
Root Administrator
I'll be that guy - if you're running rm commands with a wildcard option, and you aren't sure what the "-r" value indicates, you need to stop before you accidentally run a command that renders the server useless.

You can *always* check the man page for a Linux command to get a full list of all the flags and how they are used.
 

KJ

Active Member
Feb 15, 2006
32
2
158
What guy? :kidding: :)


-r, -R, --recursiveRemove directories and their contents recursively.

Thanks!