Arquivo da Categoria: Linux

Mount UFS filesystem

Mounting UFS file systems in Ubuntu should be straight forward. Follow these simple steps to make sure that your are mounting your FreeNAS disks properly in Ubuntu: Load the UFS module (or make sure its loaded) Make a directory where … Continuar a ler

Publicado em Linux | Deixe o seu comentário

All About Sudo on a Debian 10 Buster System

So you have recently shifted to Debian 10 and need a way for yourself, or someone else, to be able to execute authority-restricted operations on the system. These operations include information and privacy-sensitive tasks like changing the system configuration, performing … Continuar a ler

Publicado em Linux | Deixe o seu comentário

How To Delete Files Older Or Newer Than N Days Using find (With Extra Examples)

This article explains how to delete files older or newer than N days, with extra examples like matching only files using a particular extension, and more. For this we’ll use find, a command line tool to search for files in … Continuar a ler

Publicado em Linux | Deixe o seu comentário

Cron Backups for Moodle Db and Moodledata

Create directory /var/backups mkdir /var/backups crontab -e Add Database backup to the cron file: #Backup Database (Before each day starts, backup Moodle prod DB from MySQL/MariaDB) 4 4 * * * root mysqldump dbname -u user -ppsaaword | gzip > … Continuar a ler

Publicado em Linux | Deixe o seu comentário