Quantcast
Channel: Bash
Browsing index pages (49 articles)

Image may be NSFW.
Clik here to view.

Make a web-safe color guide with Bash

Make a web-safe color guide with BashJim HallThu, 04/06/2023 - 03:00Use the for loop in Bash to create a handy color palette for the web.When computer displays had a limited color palette, web...

View Article


How I configure Vim as my default editor on Linux

I have used Linux for about 25 years and Unix for a few years before that. During that time, I have developed preferences for some tools that I use daily. One of the most important tools I use is the...

View Article


How I dynamically generate Jekyll config files

Jekyll, the static site generator, uses the _config.yml for configuration. The configurations are all Jekyll-specific. But you can also define variables with our own content in these files and use them...

View Article

Automate image processing with this Bash script

Writers not only work with words, they often have to work with images. Technical writing involves presenting a lot of screenshots to convey the technology and processes. Different publishing platforms...

View Article

How to include options in your Bash shell scripts

Terminal commands usually have options or switches, which you can use to modify how the command does what it does. Options are included in the POSIX specification for command-line interfaces.

View Article


How to parse Bash program configuration files

Keeping program configurations separate from code is important. It enables non-programmers to alter configurations without having to modify the program's code. With compiled binary executables, that...

View Article

Launch Flatpaks from your Linux terminal

The Flatpak application distribution model is helping developers target Linux in a new and easy way, and it's helping Linux users install more applications without worrying about what version of Linux...

View Article

Read and write files with Bash

When you're scripting with Bash, sometimes you need to read data from or write data to a file. Sometimes a file may contain configuration options, and other times the file is the data your user is...

View Article


7 Bash tutorials to enhance your command line skills in 2021

Bash is the default command line shell on most Linux systems. So why not learn how to get the most out of it? This year, Opensource.com featured many great articles to help you leverage the power of...

View Article


Learn Bash by writing an interactive game

Learning a new programming language can be fun. Whenever I try to learn a new one, I focus on defining variables, writing a statement, and evaluating expressions. Once I have a general understanding of...

View Article

Create a machine learning model with Bash

Machine learning is a powerful computing capability for predicting or forecasting things that conventional algorithms find challenging. The machine learning journey begins with collecting and preparing...

View Article

Why I still love tcsh after all these years

I consider myself a happy Bash user. However, when I started exploring Unix, it was on a proprietary Unix system that provided tcsh by default, so my earliest shell experiences were on a modern version...

View Article

Read and write data from anywhere with redirection in the Linux terminal

Redirection of input and output is a natural function of any programming or scripting language. Technically, it happens inherently whenever you interact with a computer. Input gets read from stdin...

View Article


Using Bash traps in your scripts

It's easy to detect when a shell script starts, but it's not always easy to know when it stops. A script might end normally, just as its author intends it to end, but it could also fail due to an...

View Article

Make Bash history more useful with these tips

A Linux terminal running Bash has a built-in history that you can use to track what you've been doing lately. To view a history of your Bash session, use the built-in command history:

View Article


Take control of your data with associative arrays in Bash

If you've ever written code, whether it's a shell script, a Python script, C++, or even Scratch, then you know that variables are vital. Computers and coders use variables as waystations, where they...

View Article

How to use Bash history commands

Bash has a rich history. That is, it's an old shell with an even older ancestor (the Bourne shell), but it also has a great history command that surpasses all other shell history interfaces based on...

View Article


Import functions and variables into Bash with the source command

When you log into a Linux shell, you inherit a specific working environment. An environment, in the context of a shell, means that there are certain variables already set for you, which ensures your...

View Article

How to write functions in Bash

When you're programming, you're literally defining a procedure, or a routine, you want the computer to perform. A simple analogy compares computer programming to baking bread: you list ingredients once...

View Article

Learn Bash with this book of puzzles

Computers are both my hobby and my profession. I have about 10 of them scattered around my apartment, all running Linux (including my Macs). Since I enjoy upgrading my computers and my computer skills,...

View Article
Browsing index pages (49 articles)


Latest Images