-
-
SELinux Configuration Change
A couple ways to do this, I like this method below most as it bundles some stuff above into a nice package. Reference: https://www.crypt.gen.nz/papers/how-to-disable-selinux/
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
UNIX Bash – Get Latest File Name Based On DateTime
Working on a backup and restore script I often need only to know what the latest backup/archive file is, this command helps you learn that.
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
UNIX Terminal – Secure Copy (SCP)
Secure Copy (SCP) is a useful UNIX command that allows you to securely copy files and directories between your local machine and a remote computer. In the examples below “-P 22” is not actually needed if the SSH port is 22. Many of the servers I connect to have a different port for security reasons…
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
Mac OSX Terminal – Create Desktop Shortcuts/Symlink
Coming from Windows I sometimes still have the desire or need for a desktop shortcut/symlink. There are two easy options for this Right click the application, select “Make Alias” and drag that alias to the desktop and potentially rename it at one point or the other. Open Terminal (Applications – Utilities) and run a command…
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
UNIX Terminal – Grep Directory Recursively
Sometimes you really need to find a file that has certain text in it, these commands will help provided you have an idea of the directory or the string
-
CentOS | Code | Fedora | macOS | PowerShell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
NetStat – Get Network Statistics
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
Linux/Unix/Mac OSX – Find & Remove Empty Directories
Occasionally you get empty directories and need to clear them out, these scripts below will help with that, just be careful what directory you choose. The scripts below are set to ~/ (current user home directory) but can easily be changed to any directory on your system. This first block will only list the empty…
-
UNIX – Extract RedHat/CentOS/Fedora RPM File
I love to find RPM files that someone has compiled so that I don’t have to do the manual work but when I find one at a questionable location or one I’m simply not familiar with it’s nice to know what is in it. Recently I did a search on RPMFind.net for Redis (https://www.rpmfind.net/linux/rpm2html/search.php?query=redis) I…
-