Tom Bettenhausen

Technology guy . Building and maintaining websites, applications and Internet technologies.

COBOL Bubble sort on linux

Here’s a sample COBOL bubble sort program for linux. You can simply save the source (.cbl file) on your computer then compile and link the code to an executable with the following command. sudo cobc -free -x -o sort sort.cbl IDENTIFICATION DIVISION. PROGRAM-ID. SORT. DATA DIVISION. WORKING-STORAGE SECTION. 01 ARR OCCURS 5 TIMES PIC S9(2)….

Read More
Joshua Tree national park

Road trip pandemic style

My wife and I recently completed an epic almost 5 week long road trip in the western US. We originally planned an international trip for the month but.. Covid19 changed those plans. So we booked a road trip instead, originally planning for a week stay in Victoria British Columbia, a week stay in downtown Portland…

Read More
TOP a process monitoring tool for linux

TOP Linux process monitoring

top command displays Linux processes. It provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds. TOP hot keys t Displays summary information off and on m Displays memory information off and on…

Read More

Checking disk space on linux

df You can use df (display free disk space) to troubleshoot disk space issues. While running and maintaining your application on your machine, you might receive an error message signaling a lack of free space on the host. While disk space should be managed and optimized by a sysadmin, you can use df to figure out the existing space…

Read More

Install powershell on debian 10

very simple installation # Download the Microsoft repository GPG keys wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb # Register the Microsoft repository GPG keys sudo dpkg -i packages-microsoft-prod.deb # Update the list of products sudo apt update # Install PowerShell sudo apt install -y powershell # Start PowerShell pwsh Bash to Powershell command reference Bash PowerShell PowerShell Alias Note Cd…

Read More
apt vs apt get

linux (debian) apt vs apt-get

The apt command utility is a successor to the earlier apt-get. The Debian package management infrastructure has been a feature of Debian since early on. At the heart of Debian package management is dpkg [1], a low-level tool used for installing and removing Debian .deb packages. The bigger and more comprehensive Advanced Package Tool (APT) [2] includes dpkg on the…

Read More