Ubuntu server: Delete first folder in directory
- by Martin
How can I grab the first subfolder in a directory and delete it?
I found a script to monitor the free diskspace.
It sends an alert email if space runs low, but I want to also delete some unneeded stuff.
I have a backup folder where I save daily and monthly backups. I want to delete the first folder since this always the oldest, but I don't know…