Check if a restart is needed: needs-restarting -r will say if the system needs to be restarted.
needs-restarting -r
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
ln -s source link-name
Run sql backup: sh /home/XXXXX/Documents/scripts/backupsql.sh as root and XXXXX is the users home directory
sh /home/XXXXX/Documents/scripts/backupsql.sh
Run server backup: sh /home/XXXXXX/Documents/scripts/backupserver.sh as root and XXXXX is the users home directory
sh /home/XXXXXX/Documents/scripts/backupserver.sh
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
tar cvzf destination.tgz sourcefile or directory
Or use better compression: tar -jcf destination.tar.bz2 sourcefile or directory
tar -jcf destination.tar.bz2 sourcefile or directory
Find a file: do as root in directory to search find: find -name filename
find -name filename
You will need to restart for the changes to take effect
Change too graphic boot: systemctl set-default graphical.target
systemctl set-default graphical.target
Change to text boot: systemctl set-default multi-user.target
systemctl set-default multi-user.target
To show the current runlevel at boot: systemctl get-default
systemctl get-default
To list the runlevels: systemctl list-units --type=target
systemctl list-units --type=target
© Copyright 2026 jamnetltd.com/home All Rights Reserved