Aashish Sunuwar
howto · 2026-11-03
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 · 2026-10-31
How to Assign Default Value in Bash
Learn how Bash parameter expansion supplies or assigns fallback values, how unset and empty variables differ, and when an if statement is a better fit.
howto · 2026-10-26
How to Unzip .gz File in Linux
Learn how to decompress a .gz file or extract a .tar.gz archive on Linux with gunzip, gzip -d, and tar, and choose whether to keep the compressed original.
howto · 2026-10-24
How to Run Bash Scripts in Python
Learn how to run Bash scripts from Python with subprocess.run, os.system, and subprocess.Popen. Choose a method, pass arguments, capture output, and provide input to a script.
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-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.