Issue the following command to empty a file that currently exists: cp /dev/null<filename>
How can I see how large a folder is on the system?
Issue the following command to see how large a folder is and the files it contains: du -h -size
How can I find out how many files are within a specific folder?
ls | wc -l
How can I copy all the contents of one folder into another?
cp -r
How can I delete all of the files in a folder and the folder itself?
rm -r <dir>
How can I remove all files older than 7 days?
find \ (-name ‘*’ \) -atime +7 -exec rm {}\ Just the change the +7 to a specific number of days if required.