Categories
Linux System

Best way to setup PYTHONPATH for crontab

When setting up a crontab job in Linux machine, these essential steps are required for a successful system operation Update the cron file by adding the new script on schedule Check the frequency of the schedule. Such as for running at 7 minutes interval, use */7 * * * *   python /path/to/script.py Or for running every hour […]

Categories
Linux System

How to check size of a directory in Linux

Personal note: du -shc /path/to/directory Here, shorthand -s stands for ‘specific’, -h for human-readable and -c for complete (total volume)