Here is a simple bash script that I use to backup all mysql databases from the server: #! / bin / bash TIMESTAMP = $ (date + "% F") //backups will be stored in /backup/mysql BACKUP_DIR = "/ backup / mysql" MYSQL = / usr / bin / mysql MYSQLDUMP = /...
In many infrastructures it is possible that we need to control the performance of a computer or server. Performing this task manually is very complicated as we will most likely have to use several different tools, one to control each aspect...
How much RAM does your computer have? and better, how can you get detailed information about your RAM? If you wanna upgrade your computer’s memory this information will be useful I found a command that gave me all the necessary information and...
Here is a small script that does two things: Determinate script’s locationDelete the file #!/usr/bin/env bash // determinate where the script is SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) //...
Studies on passwords show that people are still using the same passwords even through several years.The worst passwords are the same. This is a danger in our security, sooner or later we could be hacked. Take a look of the summary of the worst...
Screen key is a simple but complete application that will allow us to capture on screen the keystrokes that we do while recording: Screenkey. Screenkey gives us the possibility of showing on screen the keystrokes in a nice way and with enough...
I’ve been thinking about switching from Windows 10 to Linux for a while, and I finally did it a few days ago. I had some difficulties switching from Windows because most of the features that Windows have We take for granted and Linux ubuntu 21...
Edit the sudoers file with: sudo visudo visudo is a command created with the sole purpose of locking the configuration file for sudo command located at /etc/sudoers Add to the end of the file: <username> ALL=NOPASSWD: ALL Syntax is...
There are a lot of commands available in the Linux terminal. The usual way to learn Linux terminal commands is through experience. The fastest method we have to do know a command is the man command itself, through the following syntax: man...
Recently on a VPS running Cyberpanel, MariaDB service failed with the error: Failed at step NAMESPACE spawning / bin / sh: Invalid argument For VPS based on the openvz that are using old kernel you need to edit the service file to fix the problem:...