Skip to main content
Sagar Sharma

Sagar Sharma

148 posts published

A software engineer who loves to tinker with hardware till it gets crashed. While reviving my crashed system, you can find me reading literature, manga, or watering my plants.

zsh command history
Using Zsh

Using Command History in Zsh

Not getting command history in Zsh? Here's how to enable it.

· Sagar Sharma

Install command in Linux
Commands

Using Install Command in Linux

The install command lets you copy file with advanced parameters. See some examples in this article.

· Sagar Sharma

Help Command in Linux
Commands

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

Find Current User Account in Linux
Quick Tip

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
Tips

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
Process Commands

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
Commands

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

Start systemd Services on Boot
Quick Tip

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
Commands

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

utmp, wtmp, and btmp
Explain

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

Bash: Read Into an Array
Bash Tips

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

logname command in Linux
Commands

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

Bash command substitution
Bash Tips

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

systemctl command examples
Commands

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
Quick Tip

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
Bash Tips

Test Operators in Bash

Get a brief look at all the test operators available in bash.

· Sagar Sharma

Using ls command recursively
Tips

Use ls Command Recursively

Here are various examples and usage of the ls command in recursive mode.

· Sagar Sharma

gcc vs g++ compilers
Explain

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

Listing USB devices in Linux
Tips

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 based on size
Tips

Sort du Command Output by Size

Learn to use the du command with sorted output based on size.

· Sagar Sharma

Finger command in Linux
User Identification

finger Command in Linux

Get logged in user information with the classic finger command in Linux.

· Sagar Sharma

Save curl output to file
Tips

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 directory location in Bash
Bash Tips

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

Increment decrement counters in Bash
Bash Tips

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

Explaining the meaning of <, << and <<< symbols in Linux
Explain

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
Commands

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

While loop in bash
Bash Tips

Use While Loop in Bash

Learn to use the while loop in bash with practical examples in this tutorial.

· Sagar Sharma

Find directory in Linux
Tips

Find a Directory in Linux

Here are various ways you can use the find command to look for directories with specific parameters.

· Sagar Sharma

Until loop in bash
Bash Tips

Using Until Loop in Bash

While for maybe the most popular bash loop, wait until you discover until. Pun intended :)

· Sagar Sharma

lshw Linux command gives you hardware details of your system
Commands

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