ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Just to do this..

echo "find ~/.ros/log/* -mtime +5 -exec rm -r {} \;" >> ~/.bashrc

Replace the 5 with how many days you want to remove that was created before that number. This will remove files older than 5 days old.

Just to do this..

echo "find ~/.ros/log/* -mtime +5 -exec rm -r {} \;" >> ~/.bashrc

Replace the 5 with how many days you want to remove that was created before that number. This will remove files older than 5 days old.

It will search for old files every time you open a terminal.