Check if a restart is needed: needs-restarting -r will say if the system needs to be restarted.

Create symbolic link: ln -s source link-name for example ln -s Documents/pictures Pictures will create a Pictures directory in the current user from Documents/pictures

Run sql backup: sh /home/XXXXX/Documents/scripts/backupsql.sh as root and XXXXX is the users home directory

Run server backup: sh /home/XXXXXX/Documents/scripts/backupserver.sh as root and XXXXX is the users home directory

Cronjobs

0 0 * * * /home/XXXXXX/Documents/scripts/backupsql.sh - Run daily at midnight

30 0 * * * php /var/www/XXXXXX/pos/assets/cron-daily.php - Run daily at 12:30AM

35 0 * * 6 php /var/www/XXXXXX/pos/assets/cron-weekly.php - Run weekly at 12:35AM on sunday

0 1 * * 0 sh /home/XXXXXX/Documents/scripts/backupserver.sh - Run weekly at 1:00AM on sunday

Compress files/directories into tar

Standard compression: tar cvzf destination.tgz sourcefile or directory

Or use better compression: tar -jcf destination.tar.bz2 sourcefile or directory

Find a file: do as root in directory to search find: find -name filename

You will need to restart for the changes to take effect

Change too graphic boot: systemctl set-default graphical.target

 Change to text boot: systemctl set-default multi-user.target

To show the current runlevel at boot: systemctl get-default

To list the runlevels: systemctl list-units --type=target

03/06/2019 03:37:23 AM Jamie General