*nix (Helpful GUIDES for *nix OSes)
Here we cover topics associated with *nix platforms — from Bash “Bourne-Again SHell,” a command-line interface found in most flavors of Linux and macOS, to specific *nix configuration options found in distros like Ubuntu.
vim: tabstop, shiftwidth, softtabstop, expandtab (Explained)
The following is an excerpt by Ari Sweedler regarding .vimrc tab and indention settings:
tabstop — How many columns wide is a tab character worth?...
Urldecode
$ alias urldecode='sed "s@+@ @g;s@%@\\\\[email protected]" | xargs -0 printf "%b"'
SOURCE: Stack Exchange
...
How Long Will Your SSD Last? (Shelf-Life of a Solid State Drive)
Source: Find out how much longer your SSD will last
...
How to Compare Two Directories in Linux
If you've ever wanted to compare the contents of 2 directories using linux, you can leverage the "diff" command. Let's go through an example to learn...
How to Change the Timezone on Ubuntu
If you're using Ubuntu 20.04 (and likely prior and future releases), you can change your timezone with the following command:
sudo timedatectl set-timezone...
How Do You Fix the “Managed by Organization” Chrome Extensions Message using macOS?
defaults delete com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox
...
How to Add a User From the Command Line on Linux?
There are two commands often cited for how to add a user within a Linux OS.
adduseruseradd
What Is the Difference Between adduser and useradd?
According...
Tabs, Spaces, and VIM: the Easy Way
https://www.youtube.com/watch?v=6sslhOEd2ZA
How to convert tabs to spaces
...
How to Remove and Reinstall Xcode
Remove Xcode
$ sudo rm -rf $(xcode-select -print-path)
Reinstall Xcode
$ xcode-select --install
...
How to Clear Your DNS Cache on macOS
Clear DNS Cache on macOS
From the terminal, issue the following commands:
$ dscacheutil -flushcache
$ sudo killall -HUP mDNSResponder
...
How to Prevent macOS Catalina From Displaying the zsh Update
Are you tired of seeing this message every time you execute a macOS terminal?
The default interactive shell is now zsh.To update your account to use...
How to Capitalize Words Using a Bash Script (using an Example)
On a macOS you'll need to install gnu-sed (e.g., brew install gnu-sed), which is invoked using "gsed." Otherwise, try the below script on your *nix system.
#!/bin/bashwhile...
Understand Linux Links (using an Example)
In this article, we're going to cover linux links, specifically what they are and how to make them.
Because I'm more of a visual learner, I thought...
What the $!$*$@ … Bash Shell Variables
There's nothing complex about Bash shell variables, but they're also not something you'd likely memorize. Frankly, they're just not that interesting....
How to Get the Size of Subdirectories in Linux
Let's imagine you need to determine the size of several subdirectories.
In other words, you need the full aggregate size of each subdirectory, and...