Aashish Sunuwar

howto · 2025-03-14

How to Unzip .gz File in Linux

This article provides a comprehensive guide on how to unzip .gz files in Linux. Explore various commands, including gunzip, gzip, and tar, to efficiently compress and decompress files. Whether you're a beginner or an experienced user, you'll find practical examples and detailed explanations to enhance your Linux file management skills.

howto · 2025-03-13

How to Parse JSON in Bash

Learn how to parse JSON data in Bash effectively with our comprehensive guide. Discover various methods, including using jq, grep, and Python, to extract and manipulate JSON data seamlessly in your Git workflows. Enhance your scripting skills and streamline your development processes today.

howto · 2025-03-11

How to Assign Default Value in Bash

This article explores various methods for assigning default values to variables in Bash. Learn how to use parameter expansion, if statements, and the :- operator effectively. Discover practical examples and enhance your Bash scripting skills. Whether you're automating tasks or developing applications, understanding default values will improve your scripts.

howto · 2025-03-11

How to Run find -exec Command in Bash

This article explores how to effectively use the find command with the -exec option in Bash. Learn to search for specific text in files and execute commands on found files. Discover practical examples, including searching for text, deleting old logs, and moving large files. Enhance your command-line skills with these powerful techniques.

howto · 2025-02-26

How to Remove Last Character From a String in Bash

Learn how to remove the last character from a string in Bash with easy-to-follow methods. This article covers parameter expansion, sed, awk, and looping techniques, complete with code examples and explanations. Perfect for beginners and experienced users alike, this guide helps streamline your string manipulation skills in Bash scripting.

howto · 2025-02-26

How to List Directories in Bash

Learn how to list directories in Bash with our comprehensive guide. Explore various methods, including the `ls`, `find`, `tree`, and `compgen` commands, complete with code examples and detailed explanations. Master directory navigation in your Bash environment to enhance your productivity and efficiency.

howto · 2025-02-26

How to Get User Input in Bash

This article explains how to get user input in Bash, covering essential methods like the read command, reading multiple inputs, and using command-line arguments. With clear code examples and detailed explanations, you'll learn to make your Bash scripts interactive and user-friendly. Perfect for beginners and experienced scripters alike, this guide will enhance your scripting skills and improve your Bash applications.

howto · 2025-02-26

How to Set Date Using Command-Line in Linux

Learn how to set the date using the command-line in Linux with our detailed guide. Discover methods using the date command, timedatectl, and Python scripts to manage your system's date and time effectively. Perfect for beginners and experienced users alike, this article provides clear examples and explanations to help you master this essential skill.

howto · 2025-02-26

How to Use sed to Find and Replace in Bash

This article shows how to find and replace texts in Bash using sed. Learn simple and advanced methods for text manipulation, including case-insensitive searches and regular expressions. Discover how to streamline your workflow with powerful sed commands and enhance your text processing skills.

howto · 2025-02-26

How to Copy Files in Bash

In this guide, learn how to copy files in Bash effectively. Explore various methods for copying single files, multiple files, and directories with practical examples. Discover essential command options to enhance your file management skills in Unix-like operating systems.

howto · 2025-02-25

How to Run Bash Scripts in Python

Learn how to execute Bash scripts using Python with our comprehensive guide. Explore methods like subprocess, os.system, and subprocess.Popen to run Bash commands efficiently. Enhance your automation skills and streamline workflows by integrating Bash scripts into your Python applications.