Recommended Reading

All Mastering Linux with Tips and Tricks

What's New in Focal Fossa Ubuntu 20.04 LTS?

Ubuntu 20.04 LTS is available for download. Find out some of the major security and performance improvements from this new distribution, including the introduction of WireGuard VPN, upgraded suite of software packages, faster boot time, etc.

lsb_release -aupdated Sep 20206 examples

How To Do Advanced Math Calculation Using bc?

Learn how to use the GNU Linux bc command line to do math arithmetic and algebra with square root, sine, cosine, tangent, arctangent, bessel, and more.

echo "a=1;updated Sep 20208 examples

Redirecting a stdout to a file using sudo and tee

Learn how to address a permission denied error when trying to edit a file on Linux and work around some sudo issues. This post include a simple vim tips to save changes to a file with sudo right from your editor.

touchupdated Sep 20205 examples

sudo: sorry, you must have a tty to run sudo

Learn what is a tty and how to solve 'sudo: sorry, you must have a tty to run sudo' error when using ssh to execute a sudo remote command.

Defaults:myuserupdated Sep 20202 examples

Bind 9.5.0 - Patch dlz MySQL 5 for Auto Reconnect

Legacy post addressing connectivity issue from a Bind 9 server with the dlz MySQL driver to a MySQL 5 backend server. This post provides appropriate patch for the given software versions.

updated Sep 2020

How to Reload or Change your current Shell?

Learn the basic steps to reload your Linux shell to apply your recent configurations changes. This post cover the POSIX exec builtin command in Bash and the GNOME shell.

help execupdated Sep 20205 examples

Removing ^M in imported Windows files

Learn how to quickly and easily handle files with newline and carriage return between linux, mac, and windows. This post will explain how to remove or replace the often annoying ^M character.

alias cvtCR="trupdated Sep 20202 examples

Linux is the kernel Linus Torvalds first released in September 1991. What you actually run is a distribution built around it — the kernel, a GNU userland, an init system, and a package manager. Most of what follows holds on any of them, because the tools are the same whether you are on Debian, Ubuntu, RHEL, or Alpine.

This section covers the parts of that userland you end up fighting with: formatting dates and timezones, searching with grep, counting files in a directory without being lied to by ls, arbitrary-precision math with bc, subnets and CIDR netmasks, and tuning sysctl on a server that has run out of headroom.

It also covers the errors. command not found, Argument list too long, bad substitution, Killedwhat they mean and what causes them — along with the two sudo failures that show up in every CI pipeline sooner or later: no tty present and sorry, you must have a tty to run sudo.