A bash script that rotates a file (logfile.txt) to a timestamped file(logfile_20180719.txt), which could be invoked by cron every 24 hours. Move the created bash file to newly created scripts folder. mv /home/hass/rotate.sh /var/scripts/rotate.sh Change permission to allow +x (execute…