Linux Tutorials on the topic “programming”
-
How to control peripheral ports: Accessing and writing on Parallel Port with C on Linux. Part I
Author: David Duarte • Tags: linux, programming • Comments: 3
This tutorial will show you how to control the pins of the parallel port of your PC on Linux from within a small C program. In this example, we switch just a few LED's on and off, but the same technology can be used to control relays to switch devices with high power consumption on and off for home automation.
-
How to trigger commands on File/Directory changes with Incron on Debian 8
Author: Till Brehm • Tags: linux, programming • Comments: 3
This guide shows how you can install and use incron on a Debian 8 (Jessie) system. Incron is similar to cron, but instead of running commands based on time, it can trigger commands when file or directory events occur (e.g. a file modification, changes of permissions, etc.).
-
Learn how to detect network equipment with Scientific Linux 7.1 and Python
Author: David Duarte • Tags: centos, linux, programming • Comments: 0
Sometimes you might have network or firewall issues in an internal that require a network scan to find which IP addresses are in use. For that purpose, we can use ready-made tools such as nmap, zmap or angryIP. But if we have no internet access to download these tools we can do the scan by only using manual commands. However, the manual scanning can be quite tedious, with the understanding that should be done for each IP address given on our network.
-
-
Vector Algebra on Scientific Linux 7.1 with Python Script: Part 1
Author: David Duarte • Tags: linux, programming • Comments: 2
In this tutorial, we will discuss the vector algebra and corresponding calculations under Scientific Linux. For our purpose, I have chosen Python as the programming language for its simplicity and power of calculation. Any Linux distribution has by default a Python editor / compiler which is invoked through a terminal window. Let's go over some concepts of vector algebra.
-
Shell Scripting Part 4: Repetition Control Structures
Author: jonilyn2730 • Tags: linux, shell, programming • Comments: 0
Welcome to part four of HowtoForge's shell scripting tutorial series (Click here to read the part 1, part 2 and part 3 of the tutorial). In this lesson, we will cover the different repetition control structures of the bash shell and how to use each structure by providing some examples. Let's get started.
-
Shell Scripting Part 3: Decision Control Structures in Shell Scripts
Author: jonilyn2730 • Tags: linux, shell, programming • Comments: 4
We already covered the basics of shell scripting such as accepting inputs, process data through arithmetic operations and generating and displaying output in the previous series of this tutorial. In this series, we will go deeper to a more advanced topic in a programming language -- making decisions in a program, but this time we will do it using bash shell.
-
Shell Scripting Part I: Getting started with bash scripting
Author: jonilyn2730 • Tags: linux, shell, programming • Comments: 11
This is the first part of a series of Linux tutorials. In writing this tutorial, I assume that you are an absolute beginner in creating Linux scripts and are very much willing to learn. During the series the level will increase, so I am sure there will be something new even for more advanced users.
-
Shell Scripting Part 2: Accepting Inputs and Performing Shell Arithmetic
Author: jonilyn2730 • Tags: linux, shell, programming • Comments: 7
This article is the second part of the Howtoforge shell scripting tutorial series. By this time, I assume that you have read the first part of the series and know how to create a simple script and execute it. In the second part, you will learn how accept inputs from the user and process them through shell scripting.
-
Distributed parallel programming in Python : MPI4PY
Author: Akshay Pai • Tags: programming • Comments: 1
MPI stands for Message passing interface. An implementation of MPI such as MPICH" or OpenMPI is used to create a platform to write parallel programs in a distributed system such as a Linux cluster with distributed memory. Generally the platform built allows programming in C using the MPI standard. So in order to run Parallel programs in this environment in python, we need to make use of a module called MPI4py which means "MPI for Python". This module provides standard functions to do tasks such as get the rank of processors, send and receive messages/ data from various nodes in the clusters.
-
Installing NLTK and using it for Human language processing
Author: Akshay Pai • Tags: programming • Comments: 1
NLTK stands for "Natural Language Tool Kit". It is a python programming module which is used to clean and process human language data. Its rich inbuilt tools helps us to easily build applications in the field of Natural Language Processing (a.k.a NLP). This tutorial shows how NLTK can be installed and used with an example.