Fumbani Banda
About Fumbani Banda
Fumbani is a tech enthusiast. He enjoys writing on Linux and Python as well as contributing to open-source projects.
howto · 2025-03-14
How to Read File Lines in Bash
Learn how to read file lines in Bash effectively using the `read` command. This comprehensive guide covers various methods, including loops and file descriptors, with clear examples and explanations. Perfect for beginners and experienced users alike, this article will enhance your Bash scripting skills and enable you to manipulate data efficiently.
howto · 2025-03-14
How to Edit and Reload the .bashrc File
This tutorial demonstrates how to edit and reload the .bashrc file, a crucial skill for Linux users, particularly those working with Git. Learn how to customize your terminal environment efficiently by using the source command or the exec command to apply your changes instantly. Enhance your productivity by mastering your .bashrc file today!
howto · 2025-03-14
How to Use the shift Command in Bash Scripts
This tutorial explains the shift command in Bash scripting and how to effectively utilize it. Learn how to manipulate positional parameters, handle command-line arguments, and enhance your scripts with practical examples and detailed explanations. Perfect for beginners and experienced users alike, this guide will help you master the shift command in your Bash scripts.
howto · 2025-03-13
How to Bash Ranges
Learn how to effectively iterate through ranges of integers in Bash using for loops and while loops. This comprehensive guide provides clear examples and detailed explanations to enhance your Bash scripting skills. Perfect for both beginners and experienced developers looking to automate tasks efficiently.
howto · 2025-03-13
The export Command in Bash
This tutorial explains the export command in Bash, detailing its use for managing environment variables, especially in Git. Learn how to set, export, and make variables persistent to streamline your workflow. Enhance your command-line efficiency with practical examples and clear explanations.
howto · 2025-03-11
How to Start A Thread in Python
Learn how to start a thread in Python using the threading module. This comprehensive guide covers various methods, including creating custom functions, subclassing the Thread class, and using thread pools for efficient management. Enhance your application's performance with concurrent execution and improve responsiveness with our clear examples and explanations.
howto · 2025-03-11
Python Threadpool
Discover the differences between Python's multiprocessing and multiprocessing.pool modules in this comprehensive guide. Learn how to effectively use Python threadpool for concurrent task execution, optimizing your applications for better performance. Explore practical examples and gain insights into when to choose each method for your specific needs. Enhance your coding skills with our informative article on Python threadpool.
howto · 2025-03-11
How to Parse Command Line Arguments in Bash
Learn how to parse command line arguments in Bash effectively. This guide covers positional parameters, flags, loop constructs, and the shift operator. Enhance your Bash scripts with flexible and user-friendly argument handling techniques.
howto · 2025-03-11
How to Cat EOF in Bash
Learn how to use cat EOF in Bash effectively. This comprehensive guide covers the basics of cat EOF, including file creation, appending text, and writing scripts directly from the command line. Discover practical examples and enhance your Bash scripting skills today.
howto · 2025-03-11
How to Run GDB in Bash Script
This tutorial demonstrates how to run GDB in a Bash script with a binary file that takes command-line arguments. Learn to automate your debugging process, set breakpoints, and streamline your workflow effectively.
howto · 2025-03-11
Git Authentication
This tutorial demonstrates how to connect a local repository to a remote repository on GitHub without encountering authentication failed errors. Learn about SSH keys, personal access tokens, and credential helpers to streamline your Git workflow.
howto · 2025-03-11
How to Set Username and Password in Git
This article demonstrates how to set a GitHub username and password in Linux, streamlining your workflow and avoiding repeated authentication for every GitHub action. Discover methods like using Git config, SSH keys, and storing credentials securely. Follow our step-by-step guide to enhance your Git experience and focus more on coding.
howto · 2025-03-11
How to Escape Characters in Bash
This tutorial explains escape characters in Bash and provides a detailed list of common escape characters. Learn how to effectively use escape characters in Git commands for handling special characters in strings, file names, and commit messages. Enhance your command-line skills with practical examples and tips.
howto · 2025-03-11
How to Extract File Base Name in Bash
Learn how to extract the file base name in Bash with this comprehensive tutorial. Explore methods like substring parameter expansion and the basename command, and enhance your scripting skills. Perfect for managing files in a Git repository or automating tasks.
howto · 2025-03-04
shebang in Bash Script
This tutorial provides an in-depth look at the shebang in Bash scripts, explaining its definition, usage, and variations. Learn how to effectively implement the shebang in your scripts to ensure they run smoothly with the correct interpreter. Whether you're a beginner or an experienced developer, this guide will enhance your understanding of Bash scripting fundamentals. Discover best practices and common variations to improve your scripting skills today.
howto · 2025-02-26
How to Implement Recursive Multiplication in Python
Learn how to implement recursive multiplication in Python with this comprehensive guide. Explore various methods, including basic recursive multiplication, optimized techniques using bitwise operations, and tail recursion. Enhance your coding skills and understand the power of recursion in programming. Whether you're a beginner or an experienced developer, this article provides clear examples and explanations to help you master recursive multiplication in Python.
howto · 2025-02-26
How to Echo New Line in Bash
Learn how to echo a new line in Bash with various methods, including using the -e option and the $ variable. This comprehensive guide provides clear code examples and detailed explanations, enabling you to format your output effectively in your Bash scripts. Whether you're a beginner or an experienced user, mastering these techniques will enhance your command-line skills.
howto · 2025-02-26
How to Compare Numbers in Bash
Learn how to compare numbers in Bash effectively using square braces and double parentheses. This comprehensive guide provides clear examples and explanations to help you master number comparisons in your Bash scripts. Enhance your scripting skills and efficiency today!
howto · 2025-02-26
How to Run Bash Script in Terminal
Learn how to run a Bash script in the terminal effortlessly. This article covers two primary methods: using the bash command and making your script executable. With clear examples and explanations, you'll be running scripts like a pro in no time.
howto · 2025-02-26
How to Remove Directory in Bash Terminal
Learn how to efficiently remove directories in the Bash terminal, including those with subdirectories. This comprehensive guide covers essential commands like rm -r, rmdir, and find, along with practical examples. Master directory management and avoid accidental data loss with our expert tips. Perfect for Linux users looking to streamline their file management process.
howto · 2025-02-26
How to Change Directory With Git Bash
This tutorial explains how to change directories in Git Bash using the `cd` command. Learn the best practices for navigating file systems efficiently, including using absolute and relative paths, and utilizing tab completion. Perfect for developers looking to enhance their command-line skills.
howto · 2025-02-26
How to Undo Git Pull
This tutorial demonstrates how to undo a git pull and restore a Git repository to a previous state using the git hard reset command. Learn effective methods like git checkout and git revert to manage your codebase safely.
howto · 2025-02-26
How to Get Current Branch in Git
This tutorial demonstrates how to get the current branch in Git using the git branch command and git symbolic-ref command. Learn step-by-step methods to enhance your version control skills. Discover quick and efficient ways to check your active branch and streamline your Git workflow.
howto · 2024-02-15
The History Command in Linux
This tutorial shows using the history command to display the Bash history, to search in history, to remove commands in history and to clear the whole history.
howto · 2024-02-15
The grep Command in Linux
This tutorial demonstrates using the grep command to match case insensitive pattern, count the number of matches, display file names that have a match, match the exact pattern, show the matched patterns only, show line numbers, invert pattern match, match the starting string and match the end of a line.
howto · 2024-02-15
How to Configure Apache Web Server on Ubuntu and Debian
This tutorial shows installing and set up the apache web sever and use the access logs on Ubuntu and Debian.
howto · 2024-02-12
How to Check if Index Exists in Python List
This tutorial demonstrates various ways to check if an index exists in a list in Python.
howto · 2024-02-02
How to Use getopts in Bash Script
This shows the usage of getopts in bash scripts by parsing options with arguments and parsing options without arguments.
howto · 2024-02-02
How to Create Multi-Line String in Bash
This tutorial demonstrates different ways to print multi-line string to a file in bash without extra space by the use of here-document, shell variable, printf, echo and echo with -e option.
howto · 2024-02-02
How to Extract Substring in Bash
This tutorial demonstrates different ways to extract a substring in bash using the cut command, substring expansion and Internal Field Separator.
howto · 2024-02-02
How to Split String Into Array in Bash
This tutorial explains splitting a string into an array in bash by using the read command, the tr command and using parameter expansion.
howto · 2024-02-02
How to Split String in Bash
This tutorial demonstrates splitting a string on a delimeter in bash by using the tr command, the IFS, the read command, using parameter expansion, and using the cut command.
howto · 2024-02-02
How to Get Script Directory in Bash
This tutorial demonstrates getting the directory that a script is located in by using the $0 and dirname, BASH_SOURCE array, readlink command, and realpath command.
howto · 2024-02-02
How to Trim Whitespace in Bash
This tutorial shows trimming white spaces in bash using the xargs command, the sed command and the awk command.
howto · 2024-02-02
How to Set Variable to Output of Command in Bash
This tutorial demonstrates assigning the output of a command to a variable in bash using command substitution.
howto · 2024-02-02
How to Add Numbers in Bash
This tutorial shows different ways of adding numbers in a bash script using expr, arithmetic expansion, bc and awk.
howto · 2024-02-02
How to Check if Variable Is Empty in Bash
This tutorial illustrates checking if a variable is empty in bash using the the test command with the -z option and the -n option.
howto · 2024-02-02
How to Use SSH to Connect to Remote Server
This tutorial demonstrates using ssh to securely connect to a remote Linux server.
howto · 2024-02-02
The screen Command in Linux
This tutorial explains using the screen command in Linux to create, attach, detach, log and exit screen sessions.
howto · 2024-02-02
How to Use the rm Command to Remove Files in Linux
This tutorial demonstrates using the rm command in Linux to remove files and directories.
howto · 2023-01-30
Difference Between Single and Double Square Brackets in Bash
This tutorial explains what single square brackets and double square brackets are in Bash and their differences.
howto · 2023-01-30
Difference Between Bash Profile and Bashrc
This tutorial explains the difference between the ~./bash_profile and ~/.bashrc file in Bash.
howto · 2022-12-21
Regex Match in Bash
This tutorial demonstrates regular expression match using the re-match operator in bash.
howto · 2022-01-21
Difference Between a Login Shell and a Non-Login Shell
This tutorial explains the difference between a login shell and a non-login shell in UNIX-based systems.
howto · 2022-01-20
Here Document in Bash
This tutorial explains what the here document is and its usage to write a multi-line string to a file, writing Bash scripts interactively, using it with functions and turning off parameter substitution.
howto · 2022-01-10
Pipes in Bash
This tutorial explains what pipes are and their usage in Unix and Linux environments.
howto · 2022-01-10
Functions in Bash
This tutorial explains the basic functions in Bash and their usage in Bash scripts by using functions without the function keyword and functions with the function keyword.
howto · 2022-01-10
For Loop in Bash
This tutorial explains using the for loop in Bash scripts by using the range notation and the three-expression notation like in the C programming language.
howto · 2021-12-31
Standard Streams in Bash
This tutorial explains the standard streams and redirecting output and input to and from a file, respectively.
howto · 2021-11-17
Difference Between Sh and Bash
This tutorial explains what a shell is, knowing the shell that is currently being used, checking the list of all available shells and the difference between sh and bash.