Skip to main content
Sagar Sharma

Sagar Sharma

157 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.

Introduction to Flatpak
Using Flatpak

Introduction to Flatpak

The universal packaging system from Fedora is popular among developers and desktop Linux users.

ยท Sagar Sharma

pwd command
Commands

pwd command in Linux

Start your Linux command journey with the simplest of them all; pwd.

ยท Sagar Sharma

File descriptors in Linux
Explain

Understanding File Descriptors in Linux

Understand file descriptors, an essential core concept of Linux.

ยท Sagar Sharma

Associative arrays in bash
Bash Tips

How to Use Associative Arrays in Bash

Use key value pairs with the associative array feature in Bash. Learn to use it with practical examples.

ยท Sagar Sharma

Check if array is empty in Bash
Bash Tips

Check if Array is Empty in Bash

Here are two methods to check if an array is empty in bash. You check if array size is zero or you check if all the elements of the array form an empty string.

ยท Sagar Sharma

git amend commit
Using Git

Amend a Comment in Git

We all make mistakes. The important thing is to make amends. Git allows you that as well.

ยท Sagar Sharma

Check git commit history
Using Git

Check Git Commit History

Learn to quickly check the commit history in git.

ยท Sagar Sharma

Git show files in a commit
Using Git

Git Show Files in a Commit

Are you adding all the correct files? Check the files that are part of a commit in git with this trick.

ยท Sagar Sharma

Update Flatpak Packages
Using Flatpak

Updating Flatpak Packages

Got Flatpaks? How about updating them to newer versions?

ยท Sagar Sharma

remove flatpak packages
Using Flatpak

Removing Flatpak Packages

Learn how to see installed Fltapak packages, remove them and clean up after the removal.

ยท Sagar Sharma

Install Flatpak packages
Using Flatpak

Installing Flatpak Packages

Once you have Flatpak support enabled, it's time to see how to install Flatpak packages.

ยท Sagar Sharma

install flatpak
Using Flatpak

Installing Flatpak Packaging Support

Before you start using Flatpak packages, you need to install the Flatpak support on your system.

ยท Sagar Sharma

killall co
Process Commands

killall Command Examples

The killall command helps you kill all the running instances of a process.

ยท Sagar Sharma

Git Move Commit to Another Branch
Using Git

Git Move Commit to Another Branch

Sometimes you commit to an incorrect branch and now you want to move the commit to the correct branch. Here's how to handle the situation.

ยท Sagar Sharma

Undo Git Add
Using Git

Undo Git Add and Remove Files from Staging

Accidentally add a file that was not supposed to be added? If you have not made the commit yet, you can undo the git add and remove the file from staging.

ยท Sagar Sharma

git push empty commit
Using Git

Push an Empty Commit in Git

Yes, you can totally push an empty commit in Git if you really want to. Here's how to do that.

ยท Sagar Sharma

dot git folder
Using Git

What is the .git folder?

See the .git folder in your project directory and wonder what it is about. Let me explain all about it.

ยท Sagar Sharma

umount command in Linux
Disk Management

umount Command in Linux

Learn some practical examples of using umount command to unmount the mounted disk partitions in Linux command line.

ยท Sagar Sharma

pkill command
Process Commands

pkill command in Linux

Learn various ways of using the pkill command to terminate a process by its name.

ยท Sagar Sharma

lsattr command examples
File Properties Commands

lsattr Command Examples

The lsattr command lists the attributes of a file or directory in Linux.

ยท Sagar Sharma

w Command Examples
User Identification

w Command Examples

Probably the shortest command in Linux ecosystem, w gives you quick list of logged-in users.

ยท Sagar Sharma

wget command
Network Connection Commands

wget Command Examples

The wget command allows you to download files over the internet in the Linux command line.

ยท Sagar Sharma

rm Linux commands
Basic File Commands

rm Command Examples

The rm command allows you to delete both files and folders. Here's how to use it.

ยท Sagar Sharma

lsblk Command Examples
Disk Management

lsblk Command Examples

The lsblk command is helpful for getting information on drives and block devices on your Linux system.

ยท Sagar Sharma

Kill Command Examples in Linux
Process Commands

kill Command Examples

The kill command is used to eliminate a process in the Linux command line.

ยท Sagar Sharma

Linux system monitoring tools
Tools

11 System Resource Monitoring Tools for Linux Command Line

Keep a tab on the system resource utilization using one of these command line tools.

ยท Sagar Sharma

Using Nano editor
File Editing Commands

Nano Editor Basic Commands

Get a quick reference to using the Nano editor for editing files in the Linux terminal.

ยท Sagar Sharma

7 Awesome Zsh Plugins
Using Zsh

7 Awesome Zsh Plugins

Let me share some of my favorite Zsh plugins.

ยท Sagar Sharma

find mtime of file in Lin
Quick Tip

Find mtime of File in Linux

See when was the file last modified with mtime in Linux.

ยท Sagar Sharma

ip Command Examples
Host Information Commands

ip Command Examples

One of the most used networking commands that you must know.

ยท Sagar Sharma