Home » Articles by: Brad Morton

How to Use the watch Command in Linux, With Examples

Linux watch command

The watch command in Linux does one thing – repeats a command and outputs the result repeatedly, letting you watch for changes. Here’s how to use it. watch Command Syntax The syntax for the watch command is as follows: watch OPTIONS COMMAND Note that: OPTIONS should be a list of options from the below table, which will alter the default behavior of the watch command COMMAND is the command that watch should repeatedly execute, which you will monitor the output of watch will run until interrupted (So press CTRL+C to exit … Read more

Home » Articles by: Brad Morton

How to Install PowerShell in Linux/Ubuntu

Install Powershell in Linux

This easy-to-follow tutorial shows you how to install PowerShell on a variety of Linux systems. What is PowerShell? Like Linux has Bash, Zsh, and other interactive shells for issuing commands to the system via the terminal, Windows has PowerShell. It’s the successor to the Windows Command Prompt. It allows the user to type commands for execution and provides features for automation and scripting. And now, it runs on Linux. This is useful if you administer Windows servers remotely or interact with Microsoft’s Azure Cloud services. Certain tasks in Office 365 … Read more

Home » Articles by: Brad Morton

The Best, Easiest Way to Check Linux Memory Usage

Linux Memory Usage

Here are the quickest and easiest methods to check memory usage on your Linux system. If you find your home Linux machine is a bit sluggish or your web server keeps hanging, it’s worth checking whether anything is hogging your memory. It may be that a poorly-coded page is using up a disproportionate amount of system resources, or it may be that your computer or server doesn’t have enough RAM for the task assigned to it. Either way, these useful tools will help you diagnose … Read more

Home » Articles by: Brad Morton

Creating and Writing Floppy Disk Images in Linux with dd

Linux dd read write floppy images

This article will show you how to read and write images to floppy disks in Linux – Perfect for vintage computing (MS-DOS, Macintosh, etc.) I dabble a bit in vintage computing – finding old computers, fixing them up, and getting them back into action – usually for playing games on era-appropriate hardware. Part of this usually involves re-installing the operating system and loading up software. This used to be pretty simple – when Windows computers came with floppy disk drives and included the required tools, it … Read more

Home » Articles by: Brad Morton

Bash/Shell Script to Send Email In Linux – Howto, Example

Sending Emails from Bash/Command Line

This article will show you several ways to send an email from the Linux command line/shell – as well as from Bash/Shell scripts. Why would you want to send an email from the command line? Probably not to communicate – most people use an email client with a nice user interface to send messages to each other day to day – but you may want to have your computer send an email notification when a task completes or when an event occurs. Such email alerts … Read more

Home » Articles by: Brad Morton

How to Format a USB Drive From the Linux Shell

Format USB Drive in Linux

This article will show you how to format a USB stick or external USB hard drive from the Linux command line/shell for FAT, NTFS, and EXT file systems. Plug In the Drive The first step – plug in your USB stick or external hard drive and give it a few moments to be detected. Find the Drive Next, find the drive you just plugged in using the fdisk command to list (-l) the attached storage devices: sudo fdisk -l We’ll be using the sudo command frequently – many of … Read more

Home » Articles by: Brad Morton

Mount a USB Stick/Drive in Linux [HowTo, Tutorial]

Mount a USB Drive in Linux

This tutorial will show you how to mount and access a USB stick or external USB hard drive on Linux. Most desktop Linux distributions will automatically mount USB drives show them in their file explorer, but lightweight and server distributions may not include this functionality – either because it’s considered unnecessary or because the typical user of said distribution wants to be able to do manage those tasks themselves. Modern Linux distributions should all include drivers for USB sticks and external drives, so it’s just … Read more

Home » Articles by: Brad Morton

Linux vs Windows – The Practical Differences in 2021

Linux vs Windows

Are you a Windows user looking for reasons to give Linux a go? This article explores why you might make Linux your operating system of choice over Windows. Or the opposite, if you’re into that sort of thing. First, let’s look at what makes Windows Windows and why people use it. Windows For better or worse, Windows is the most popular operating system for desktop computers – and has been for decades. Being the most popular operating system for so long, lots of software has been … Read more

Home » Articles by: Brad Morton

How To Compare Arrays in JavaScript, With Examples

Compare Arrays in JavaScript

This article will show you how to compare arrays in JavaScript and provides some ready-to-use functions to do so. We’ve already covered a bit on how to use arrays in JavaScript: Looping over Array using JavaScript forEach(), With Examples Array slice() Method in JavaScript, with Examples() Check Array Contains a Value in JavaScript, with Examples Removing an Element From an Array in JavaScript, with Examples What is an Array? An array is a type of JavaScript variable that can hold other variables, or references to … Read more

Home » Articles by: Brad Morton

JavaScript instanceof Operator – What it Does, How to Use It

JavaScript instanceof Operator

This article will explain what the JavaScript instanceof operator does and how it can be used. Examples provided. What does instanceof do? The instanceof operator returns TRUE or FALSE depending on whether a given value or variable is of a certain type or class – it checks whether a value is an instance of a given object class or type. The purpose of instanceof may seem confusing – you already have typeof, so what do you need instanceof for? typeof will simply return a string containing the name of the type or class of the variable. In contrast, instanceof will return a … Read more