Using Lock Files for Job Control in Bash Scripts
Using lock files as job control for Linux bash scripts. Learn how to create a basic lock file, locking files with flock and see examples of each.
Firewalld Basics - Securing Your Linux System
In this tutorial we will cover the basics of firewalld like zones, targets, runtime vs permanent, opening ports, etc...
Using a PIR Sensor for Motion Detection with a Raspberry Pi 3
Here I will outline my adventures in learning how to connect a PIR (passive inftared) sensor to my raspberry pi 3 in order to sense motion and turn off the monitor / display to my magic mirror when nobody is around and automatically turn on when someone...
Disable User Logins to Linux System
How to disable user logins system wide in Linux using the /etc/nologin file or block specific users from logging in using the nologin shell.
Introduction to UFW - Uncomplicated Firewall Basics
Learn the basics of UFW (Uncomplicated Firewall), the default firewall configuration tool for Ubuntu. Learn how to add and delete rules and much more!
Bash History - An Introduction to History and it's Variables
Bash history is a running record of all the commands you type into the bash shell. As you type commands they are stored in RAM and written out to the .bash_history file upon closure of the shell session. Because all of the commands are stored...
Start Services on Boot in Red Hat 7 or CentOS 7
Learn how to start services on boot in Red Hat 7 and CentOS 7 and most other Linux distributions.
How to Restart Services in Red Hat 7 / CentOS 7 using systemctl
Question sent in by Nathan from Quebec. Q: I just recently installed CentOS 7 Linux and am so confused. How do I restart services like sshd and crond? A: Red Hat 7 and CentOS 7 have now moved to systemd as their default system management daemon. Systemd...
How to Change a Machines Hostname in Red Hat 6
There are several ways to change the hostname of a machine running Redhat 6. These also works on CentOS, Fedora and older/other Redhat variants. The hostname Command You can use this command to see the current name of the system. # hostnamebighat.putorius.net You can also...
Force User to Change Password Upon Next Login
Q: When I create a new user in Red Hat, how can I force this user to change their password the first time they log on via ssh? A: Using a few well known commands, we can make sure the user is forced to change...