Home » Linux » Applications

Using the ‘sed’ Command in Bash/Linux, With Examples

Bash sed command

The sed (Stream EDitor) command in Bash/Linux reads text from a stream or file and performs line-by-line operations on it based on a set of supplied criteria.  Here’s how to use it. sed is an automated way to process text. One simple example of where sed can be used is doing a simple find-and-replace for a word in a text document – the text with the words replaced can then be saved to a new file or overwrite the original. Why? Being able to modify text – either from a … Read more

Home » Linux » Applications

How To Fix Broken Packages in Ubuntu [Tutorial]

How To Fix Broken Packages in Ubuntu

Package managers like apt are one of the big selling points of Linux operating systems and Ubuntu – a vast curated collection of software that can do just about anything, available with a few keypresses. A vetted and (usually) reliable source of great software to meet any task. However, when something can go wrong, eventually it will go wrong. A package may only partially install or conflict with something else in your system environment. Maybe an update is pushed out that breaks an installation. When this happens, Ubuntu has a few … Read more

Home » Linux » Applications

touch Command in Linux and Bash [with Examples]

touch Command in Linux

The touch command in Linux updates the timestamps on a file or creates the file if it doesn’t exist. See some examples and use cases below. It sounds useless, but it’s actually useful. For example, if you want to create an empty file called my_file.txt, you can just run: touch my_file.txt Easy! Updating the timestamps of a file is also useful. Say you have a file called favorite_tv.txt, which you use to keep the name of your current favorite TV show. Your favorite show 10 years ago was … Read more

Home » Linux » Applications

How to Use The awk Command in Linux [With Examples]

awk command linux

This guide shows you how to use the awk command in Linux, with plenty of useful everyday examples. AWK is a tool and language for searching and manipulating text available for the Linux Operating System. The awk command and the associated scripting language search files for text defined by a pattern and perform a specific action on the text which matches the pattern. awk is a useful tool for extracting data and building reports from large text files or large numbers of text files – for example processing logs, or … Read more

Home » Linux » Applications

How to Install Webmin on Ubuntu 20.04

How to Install Webmin on Ubuntu

Webmin is a system configuration tool that can be run on Linux. This step-by-step tutorial explains how to install Webmin on Ubuntu 20.04. Webmin makes it easy for newbies (and veterans) to monitor and manage their Linux system and the services running on it in a graphical, browser-based interface that can be accessed locally or remotely. It’s a great tool for people getting started to manage users, web server configurations, file servers, and more. Webmin includes a bunch of modules for common software like Apache … Read more

Home » Linux » Applications

Don’t Install Yaourt on Arch Linux – use Yay instead!

install yay on arch

Yaourt (Yet AnOther User Repository Tool) is (was) a package manager for the Arch Linux distribution, which allowed for the installation of packages from the Arch User Repository (AUR). Don’t install Yaourt; it’s obsolete software. If you need a package manager for Arch Linux, install and use Yay instead! Yay is a package manager for Arch, which lets you install AUR packages. Why Yay? It’s actively developed and easy to install and use. Installing To install Yay for Arch Linux, run the following commands: sudo pacman -Syy sudo pacman -S –needed git base-devel git … Read more

Home » Linux » Applications

How to Extract .tar.gz Files Using the tar Command in Linux

How to Extract .tar.gz Files

This guide explains how to use the tar command in Linux to extract files archived in the .tar.gz format. Many open-source packages for Linux are supplied for download in the .tar.gz archive format. .tar.gz archives behave much like .zip archives you might be more familiar with in that they contain and compress multiple files into a single archive file. The .tar.gz archive looks a bit different from other files – it appears to have two file extensions. This is because it’s the combination of two processes. tar (Tape ARchive) is a format for … Read more

Home » Linux » Applications

Using the SCP Command to Securely Copy Files [Examples]

Using the SCP Command

SCP or Secure Copy securely transfers files between two hosts over the network using the SSH protocol. This tutorial explains how to use this popular command with numerous examples. SCP is pre-installed with most Linux distributions and is often used for deploying software to servers and backing up – frequently automated using Bash Scripts. SCP Command Syntax scp OPTIONS SOURCE … TARGET SCP has a lot of options that are outlined on the commands manual, available by running: man scp Here’s a summary of the most commonly used options from the … Read more

Home » Linux » Applications

RAID 0, RAID 1, RAID 5 & RAID 10 Explained [With Images]

RAID 0, RAID 1, RAID 5 & RAID 10 Explained

This tutorial explores the popular raid levels, RAID 0, RAID 1, RAID 5 & RAID 10, with diagrams and explanations. What is RAID? RAID – Redundant Array of Inexpensive (or Independent) Disks is a data storage solution that works by combining multiple disks connected to a computer into a single storage unit. Data is spread across the disks in different ways depending on whether data integrity, access speed, or both are priorities. RAID can be implemented in software or hardware, and the Linux Operating systems support … Read more

Home » Linux » Applications

How to List Containers in Docker (ls Command)

List Containers in Docker

Docker is a virtualization platform that runs on Linux. It allows you to manage and run virtual machines in containers from pre-built images that contain all of the configurations for the virtualized environment. This tutorial will show you how to list containers using the ls command, part of the new docker command structure. The ls command replaces the old ps command. The ps command will still work, but you should phase out using it. Syntax docker container ls [options] Docker versions older than 1.13 use the old ps command: docker ps [options] Options Both ls and ps accept the same command options: … Read more