Categories
guides

Disk Usage of the current folder (du command)

I use du -h –max-depth=1 all the time to determine the disk usage of the folders in my current directory, but my fingers always stumble over –max-depth=. The better way (which I learned thanks to explainshell.com): Some helpful variants:

Categories
guides

Count Files in Folder (including Subfolders)

To count the number of files in a folder (including its subfolders, pipe the output of a find command to the wc (word count) command. The -type f switch on find tells it to only find files. The output of this is one file per line. The -l switch on wc tells it to count […]

Categories
guides

TAR Guide

To Compress: note: tar stores path relative to foldername above, best to run command from parent folder. Consider sudo to ensure permissions to all files intended for compression. To Compress Excluding Folder: –exclude=’path/to/folder’ excludes folder, must follow tar command before source/dest or other options, exclude multiple folders by repeating –exclude option with new folder value […]

Categories
guides

bash Command Not Found

If you try to run a command, but bash says it can’t find it, like: Use locate to find the the path to the command Add that path to the system PATH variable NOTE: does not persist through logout/logon src

Categories
guides

Installing SharePoint 2016 Updates

Planning / Pre-work Check what patches have already been installed Connect to Central Admin Click Upgrade and Migration Click Check product and patch installation status Review Updates installed on each server to see what patch level has been reached. Download desired patches Compare installed to Microsoft’s SharePoint History List Download the patch(es) that you want […]

Categories
guides

Import & Export MySQL/MariaDB from Command Line

To import a MySQL db: To export a MySQL db: To import to a Docker container To export to a Docker container

Categories
guides

Adding/Installing SSL/TLS/HTTPS

Some of these steps can be completed via command line with wp-cli if installed by using commands generated from this tool. To find out if wp-cli is installed, try running wp cli version. Adding the Cert These instructions are for SiteGround hosting with a free Let’s Encrypt certificate. Other hosts support of Let’s Encrypt and […]

Categories
guides

List all Services

Categories
guides

Yum Guide

Search repo for package Install package Update package Update Kernel/OS Cheatsheet See also RHEL yum Cheat Sheet