List of Python Escape sequence characters with examples

List of Python Escape sequence characters with examples

When programming in Python, escape characters can be used in order to tell the compiler that it should treat the next character or characters differently. For example, we can tell Python to print a quote " as an actual quote character, rather than interpreting it to be part of the Python code. Other special characters like \t can create TAB spaces, and \n can create new lines. In this tutorial, you will see a list of Python escape sequence characters and examples that you can use on a Linux system.

Read more

How to extend the Thunar file manager with custom actions

How to extend the Thunar file manager with custom actions

Thunar is the file manager included in Xfce, a free and open source Desktop Environment which implements the traditional desktop metaphor, and has become the favorite of many users which switched to it when the GNOME project introduced the GNOME shell. Thunar is light on resources but doesn’t lack functionalities which can be extended further by creating custom actions.

Read more

Identifying the CentOS Release version

How to check CentOS version

The purpose of this tutorial is to show how to check the CentOS version of your Linux system. It’s possible to do this from either command line or GUI, so you can use whichever method is more convenient for you. Classic CentOS is nearing its end of life and will be replaced by CentOS Stream. Knowing your CentOS version will give you some insight into how long your system will continue to be supported.

Read more

How to Install etcd on Ubuntu

How to Install etcd on Ubuntu

Etcd is a free and open-source distributed and secure key-value store used to store the most critical information of a given distributed system. Etcd is written in Go making it extremely fast in distributed systems without incurring a performance overhead from clustered machines. In this guide, you discover the basics of installing and setting up an etcd cluster on Ubuntu systems.

Read more

How to use bash array in a shell script

How to use bash array in a shell script

In this tutorial we will see how to use bash arrays and perform fundamental operations on them. Bash, the Bourne Again Shell, it’s the default shell on practically all major Linux distributions: it is really powerful and can be also considered as a programming language, although not as sophisticated or feature-reach as Python or other “proper” languages. Furthermore, Bash scripting is a must-have skill for any Linux system administration job.

Read more

CUDA on Ubuntu 20.04 Focal Fossa Linux

How to install CUDA on Ubuntu 20.04 Focal Fossa Linux

The Nvidia CUDA toolkit is an extension of the GPU parallel computing platform and programming model. The Nvidia CUDA installation consists of inclusion of the official Nvidia CUDA repository followed by the installation of relevant meta package and configuring path the the executable CUDA binaries. In this tutorial, you will see how to install CUDA on Ubuntu 20.04 Focal Fossa Linux.

Read more

Set and Get environmental shell variable using c++

Set and Get environmental shell variable using c++

Environment variables in the Bash shell can be accessed or set using a C++ program. This is facilitated by the getnenv() and putenv() functions defined in the C/C++ stdlib.h library. Environmental variable expansion is a great feature of a Linux shell as it enables programmers and users to rely on the environment settings of each user separately. C++ getenv() will read all exported environmental variables and putenv() will set existing or create new variables.

Read more

How to keep configuration files under version control with Etckeeper

How to keep configuration files under version control with Etckeeper

On Linux-based operating system the /etc directory is used to hold global configuration files for applications and services. A good set of configurations is really important for a good working system, so being able to keep track of changes and quickly revert them, in case something go wrong, is crucial. Etckeeper helps us achieve this goal keeping configuration files under version control.

Read more

How to integrate dialog boxes in shell scripts with Whiptail

How to integrate dialog boxes in shell scripts with Whiptail

The ability to create secure shell scripts is essential not only for system administrators, but also for users who wants to automate repetitive tasks. Sometimes, from our shell scripts, we need to provide the user with some kind of information, ask him/her to provide some input, choose from a set of alternatives, or just ask for his/her confirmation before performing a potentially dangerous operation. All those actions, can be performed from the command line, of course, but to make our scripts more user-friendly, we can use of Whiptail to customize and display textual widgets.

Read more

Example of simple bash script ftp client

Example of simple bash script ftp client

If you need to use FTP to upload some files to a server every so often and want to save yourself some time, you can make a simple Bash script to transfer the files quickly. Rather than entering the username, password, and directory manually, we can get our Bash script to do this tedious legwork for us. In this tutorial, you will see an example script to make FTP transfers a cinch on a Linux system.

Read more

PyCharm 3D creation suite on Ubuntu 20.04 Focal Fossa

How to install PyCharm on Ubuntu 20.04 Linux Desktop

PyCharm is a graphical IDE (integrated development environment) that can be installed on Ubuntu Desktop. Many Python programmers enjoy using PyCharm because it can be used to analyze code, debug programs, and is integrated with Git and other version control systems, as well as web development applications. PyCharm is developed by JetBrains. It is free and open source, or at least the community edition is.

Read more