
Sagar Sharma
148 posts published

Using Command History in Zsh
Not getting command history in Zsh? Here's how to enable it.
· Sagar Sharma

Using Install Command in Linux
The install command lets you copy file with advanced parameters. See some examples in this article.
· Sagar Sharma

Using the Help Command in Linux
This article will 'help' you use the help command more effectively so that you can easily see what options a command has and how it works.
· Sagar Sharma

How to Find Current User Account in Linux
Here's a quick tip about getting the current user detail in Linux command line.
· Sagar Sharma

Add to Path in Linux
Installed a new software and want to run it from anywhere? You need to modify the PATH variable. Learn how to add to path in this quick tutorial.
· Sagar Sharma

flock Command Examples
A less common but helpful in certain scenarios, flock command is used for locking certain files in Linux.
· Sagar Sharma

Use eval Command in Linux
The eval command let's you execute arguments as a shell command. You can combine arguments into a single string, use the result as input to the shell and execute the resulting commands.
· Sagar Sharma

How to Start systemd Services on Boot
Learn to automatically start systemd services at boot time in this quick Linux tip.
· Sagar Sharma

Use hash Command in Linux
The hash command in Linux allows you to quickly get the list of commands you executed in the current session.
· Sagar Sharma

What are utmp, wtmp, and btmp Files in Linux?
The utmp, wtmp and btmp files has nothing to do with time. They store records of login related activities. Learn more about them.
· Sagar Sharma

Use Read Command to Get User Inputs Into an Array in Bash
Learn how to use the read command to get the user input into an array in bash scripts.
· Sagar Sharma

Use logname Command in Linux
One of the simplest commands, logname gives you the name of the currently logged in user in Linux.
· Sagar Sharma

Using Command Substitution in Bash Shell
Command substitution is an important feature that allows you to store the output of a command into a variable.
· Sagar Sharma

Using systemctl Command
The systemctl command is a must know for Linux systems with systemd init system. Here are some practical examples.
· Sagar Sharma

ps -ef Command Examples
The ps command coupled with the ef flag gives you all the processes running on the system along with addition details.
· Sagar Sharma

Test Operators in Bash
Get a brief look at all the test operators available in bash.
· Sagar Sharma

Use ls Command Recursively
Here are various examples and usage of the ls command in recursive mode.
· Sagar Sharma

gcc vs g++: What's the Difference?
gcc and g++ compilers work quite similar when it comes to compiling C programs in Linux. Here's how they are different from each other.
· Sagar Sharma

How to List USB Devices in Linux
Want to identify the USB devices connected to your system? Here are multiple ways to list USB devices in Linux command line.
· Sagar Sharma

Sort du Command Output by Size
Learn to use the du command with sorted output based on size.
· Sagar Sharma

finger Command in Linux
Get logged in user information with the classic finger command in Linux.
· Sagar Sharma

How to Save cURL Output to a File?
Learn to save the curl command output to a file for later usage in this quick tutorial.
· Sagar Sharma

Get Script Directory Location in Bash
Here are a couple of ways of getting the directory location of your bash script inside the bash script.
· Sagar Sharma

Various Ways to Increment or Decrement Counters in Bash
Working with loops in bash? Here are various ways of incrementing and decrementing counters.
· Sagar Sharma

What do <, << and <<< mean in Linux?
The <, << and <<< look similar to redirection indicators but they have a different purpose. Learn about them.
· Sagar Sharma

bc Command in Linux
The bc command is used for precision calculation. You are more likely to use it for floating point operations in bash scripts.
· Sagar Sharma

Use While Loop in Bash
Learn to use the while loop in bash with practical examples in this tutorial.
· Sagar Sharma

Find a Directory in Linux
Here are various ways you can use the find command to look for directories with specific parameters.
· Sagar Sharma

Using Until Loop in Bash
While for maybe the most popular bash loop, wait until you discover until. Pun intended :)
· Sagar Sharma

lshw Command in Linux: Get Hardware Details
The lshw command lists the hardware details of your Linux system. You can categorize it to get details on different kinds of hardware.
· Sagar Sharma