Clean up the space

Hi

I just want to clean up the space in UNIX. Is there any special command that does this process or do I need to manually type the following

rm <filename>

Any help would be really appreciated. Thanks

Here is a video tutorial how to use code tags:
Click me!.
Please edit your post above and add some code tags, not just "Code:", thanks.

You have to know your way around and delete stuff manually. Most things have to be done manually, some can be automated, but some are just too dangerous to automate them, especially deleting in several different places etc..

The find command offers a lot options (files more than N days old, size
greater than N, different starting places). Depending what your needs
are you can use this in combination with the rm command

 
find /tmp -mtime +2 -exec rm -rf  {} ";'
 

This example will remove all filesd directories in /tmp that have not been
modfied in 2 days or more.

Good Luck

1 Like