Linux
Linux related KBs
General
Linux Users Commands
useradd Command The general syntax for the useradd command is as follows: useradd [OPTIONS] USE...
How to Set or Change the Time Zone in Linux
A time zone is a geographic region that has the same standard time. Typically the time zone is se...
How to Download Files with cURL
Client URL, or cURL, is a library and command-line utility for transferring data between systems....
Cheat Sheet - bash conditionals
regex [[ $line =~ [[:space:]]*(a)?b ]] or pattern='[[:space:]]*(a)?b' [[ $line =~ $patter...
How To Use Cron to Automate Tasks
Introduction Cron is a time-based job scheduling daemon found in Unix-like operating systems, in...
Reset a Lost Administrative Password (root)?
By default the first user's account is an administrative account, so if the UI is prompting you f...
How to Extract or Unzip .tar.gz Files in Linux
Introduction A .tar.gz file is a compressed archive format commonly used in Linux systems. The f...
tar Command in Linux With Examples
Introduction The GNUtar (short for Tape ARchiver) command is the most widely used archiving util...
How to Find Files in Linux With the Find Command
Introduction The find command allows you to search for a specific string of characters using you...
How to Copy Files and Directories in Linux
Introduction Copying files and directories in Linux is an essential administrative task. Copies ...
Gnome Tracker - Frequently Asked Questions
What is Tracker? It’s a search engine, and a database. Tracker Miner FS indexes content from yo...
Linux Troubleshooting Commands
Using Linux, especially as a server, often means dealing with new errors and resolving them. Most...
The Linux file system structure explained
If you're new to Linux, knowing how the file system is laid out will alleviate some confusion. ...
How to Use ethtool Command
The ethtool command is used to display/change Ethernet adapter settings. You can change network c...
How do I verify the speed of my NIC
Determine the device name From terminal determine the name of the NIC in questionThe command ...
Bash
Change Terminal Shell to the Bash Shell
Change Terminal Shell to the Bash Shell This is to change the current user (with sudo privileges...
Keep getting message '404:: command not found' every time opening terminal
The 404 is in this file. sudo nano /etc/bash_completion.d/docker-compose Remove the line. No mo...
How to reload .bashrc settings without logging out and back in again
If I make changes to .bashrc, how do I reload it without logging out and back in? You can enter ...
Security
How to Add User to Sudoers
usermod -aG sudo username
Pinging from a base user - ping: socket: Operation not permitted
The error message ping: socktype: SOCK_RAW followed by ping: socket: Operation not permitted indi...
Change IP and Gateway from Shell
Change IP ifconfig <interface_name> <ip_address> netmask <netmask_address> Change Gateway sudo...
Filesystem permissions
File permissions in Linux are coded symbolically (as letters) r - read w - write x - execute ...
SSH
Creating an SSH Key Pair for User Authentication
ssh-keygen generates, manages and converts authentication keys for ssh. ssh-keygen can create RSA...
Copy SSH RSA key to a server
Once an SSH key has been created, the ssh-copy-id command can be used to install it as an authori...
Adding Notification to SSH Logon
What will this do This will initiate a Gotify notification with the User Name and IP address o...
Disable SSH Password Login
This page explains how to disable ssh password login on Linux permanently and only use ssh keys f...
Updates
Update and Updates related knowledge
The following packages have been kept back: Why and how do I solve it?
Why and how do I solve it? Example of what it might look like; apt-get update && apt-get upgrad...
Why use apt-get upgrade instead of apt-get dist-upgrade?
If apt-get update && apt-get upgrade often get a message that one or more upgrades are held back....
Check if a reboot is required after installing Linux updates
RedHat OS family Applies to: RedHat / CentOS / Amazon Linux Don’t forget that you might need ...
Ubuntu Specific KB
KBs specific to Ubuntu
Reset Your Forgotten Ubuntu Password in 2 Minutes or Less (root)
Scraped from https://www.howtogeek.com/1287/reset-your-forgotten-ubuntu-password-in-2-minutes-or-...
How to Disable IPTables on Ubuntu
Step 1: Check the Current Status of iptables Before making any changes, it’s a good practice to ...
Ubuntu: How To Free Up Port 53, Used By systemd-resolved
Ubuntu has systemd-resolved listening on port 53 by default. In case you want to run your own D...
Guacamole and SSH Ubuntu 22.04 connection errors
The following workaround to ssh into ubuntu 22.04 and above server with Guacamole comes from this...
How to install Qemu guest agent for Debian / Ubuntu
Estimated reading time: 1 min Install Qemu guest agent for Debian/Ubuntu In this articl...