When writing a Bash script, it is common that you’ll run into the need to check for the existence of a directory. Based on the result, your Bash script can proceed with the appropriate action.
programming
How to build a Tkinter application using an object oriented approach
In a previous tutorial we saw the basic concepts behind the usage of Tkinter, a library used to create graphical user interfaces with Python. In this article we see how to create a complete although simple application. In the process, we learn how to use threads to handle long running tasks without blocking the interface, how to organize a Tkinter application using an object oriented approach, and how to use Tkinter protocols.
Getting started with Tkinter for Python tutorial
Tkinter stands for “Tk interface”: the package with the same name on many Linux distributions provides the Python bindings for the Tcl/Tk GUI toolkit. Although other graphical toolkit can be used from Python, like Qt or GTK, Tkinter is the standard (the Python IDLE editor and development environment is written using this toolkit, for example) and probably the easiest to work with.
Install Python 2 on Ubuntu 22.04 Jammy Jellyfish Linux
This tutorial will show how to install Python 2 for Ubuntu 22.04 Jammy Jellyfish. Python 2 has not been the default installed version on Ubuntu versions for a few years, but it’s still possible to install Python 2 and to install Python 2.7 on Ubuntu 22.04.
How to install PyCharm on Ubuntu 22.04 Linux Desktop
The purpose of this tutorial is to install PyCharm on Ubuntu 22.04 Jammy Jellyfish Linux.
Bash all arguments print
The purpose of this tutorial is to show how to print all of the arguments submitted from the command line in a Bash script on Linux. There are several different methods for doing this, as you will see in the examples below.
Running GNU R on Linux Operating System
GNU R can be run on the Linux operating system in a number of ways. In this article we will describe running R from the command line, in an application window, in a batch mode and from a bash script.
Calculate column average using bash shell
The purpose of this tutorial is to show how the Bash shell can calcuate the average value of a single column of a text file on a Linux system.
Random Word Generator
Sometimes a Linux user can be in need of a random word generator. Random words can be used to set a new password or simply to create a bunch of randomly named directories. If you need a single word, the easiest way is to visit an online Random Word Generator website. However, if you need to generate more words or automate your task, the Linux Bash shell can be a handy friend.
How to manage Bash history
BASH (Bourne Again SHell) is the default shell in practically all Linux-based operating systems. All the commands we write in the terminal are interpreted by the shell, and become part of its history. In this tutorial we see where the shell history is saved, and how to manage it using the “history” built-in command and some environment variables.
How to create a flatpak package
We already talked about using flatpak packages in a previous tutorial: with this technology we universally distribute applications, which are packaged together with their dependencies and run inside a sandbox, isolated from the rest of the system.
US postal 5 digit zip code regex validation
The purpose of this tutorial is to show how to use a Bash shell script or Python programming code to validate a United States zip code number on a Linux system.