BLOG

Latest Articles

How to properly remove old kernels RHEL/CentOS 8

You can now use dnf command to remove old kernels from RHEL/CentOS 8 Linux. package-cleanup doesn't work any more. Use oldinstallonly with installonly_limit

By admin · 5 min read · CentOS 8

Unlock the Power of Bash Getopts: The Unsung Hero

getopts is a shell builtin which is available in both the regular Bourne shell (sh) and in Bash. It is short abbreviation for "get the options" which you have …

By admin · 20 min read · Shell Scripting

.bashrc vs .bash_profile [Which one to use?]

All rc files are for all shell invocations while the profiles are strictly for interactive shells. when you login via SSH, or via duplicate console, or via …

By admin · 6 min read · Shell Scripting

Bash check File Exists with Best Practices [5 Methods]

In this tutorial I have consolidated a list of file test operators which can be used to check different types of files. Bash Check file exists, is a symbolic …

By admin · 15 min read · Shell Scripting