Where I have to put the cleanup.sh and img_check.sh scripts in centos7

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

Hi biswajitandolasoft,

I’m not sure what are these scripts however here is what you can do with scripts you wrote and want to use


If you want your script to be executed automatically, you can create it as a cron job. If you are wondering what a cron job is - cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.

Manual Use

If you want to use them manually, you can put them in your /usr/sbin or /usr/bin folder. That way when you type the name of the script, it will be called automatically, no matter in which directory you are.

Kind regards,
Kalin D.

Submit an Answer