How to run any script or cron job in Linux for every second # crontab -e * * * * * while true; do df -h /tmp >> /root/filesystem.txt & sleep 1; done