Skip to main content

shell

Browse all articles, tutorials, and guides about shell

9posts

Posts

Linux
|5 min read

How to Delete Exported Environment Variables in Linux

Learn different methods to remove environment variables from your current shell session and prevent them from persisting in future sessions.

Bash
|8 min read

How to Check if a Variable is Set in Bash

Learn multiple methods to check if variables are set, unset, empty, or have specific values in Bash scripts with practical examples and best practices.

Linux
|7 min read

How to Permanently Set $PATH on Linux and Unix

Learn how to permanently modify your PATH environment variable on Linux and Unix systems so your custom directories persist across shell sessions and reboots.

Bash
|7 min read

Understanding the Difference Between sh and Bash

Discover the key differences between sh and Bash shells, including feature compatibility, portability considerations, and when to use each one in your shell scripts and system administration tasks.

Bash
|6 min read

How to Create a Bash Alias That Accepts Parameters

Learn how to create flexible Bash aliases that accept arguments using functions, from simple one-liners to complex commands with multiple parameters and options.

Bash
|7 min read

How to Check if a Program Exists from a Bash Script

Learn multiple reliable methods to check if a command or program is available on your system from within Bash scripts, including using which, command, and type.

Bash
|8 min read

What Does "2>&1" Mean in Linux and Bash?

Learn what the 2>&1 redirection operator means in Linux commands, how it works with standard output and error streams, and when to use it effectively.

Bash
|5 min read

How to Iterate Over a Range of Numbers in Bash Using Variables

Learn different methods to loop through number ranges defined by variables in Bash, from simple for loops to advanced sequence generation techniques.

Bash
|4 min read

How to Reload .bashrc Settings Without Logging Out

Need to apply changes to your .bashrc file immediately? Learn multiple methods to reload your Bash configuration without restarting your terminal session.