Find all files containing specific text

Find all files containing specific text

You probably already know how to use the grep command to search for a text string in a file on Linux. But what if you want to retrieve a list of files that contain the text string? This is a task best suited for grep or the find command. We’ll show you how to do it in this guide.

In this tutorial you will learn:

  • How to use grep and find commands to find all files containing specific text

Read more

How to create incremental backups using rsync on Linux

How to create incremental backups using rsync on Linux

In previous articles, we already talked about how we can perform local and remote backups using rsync and how to setup the rsync daemon. In this tutorial we will learn a very useful technique we can use to perform incremental backups, and schedule them using the good old cron.

In this tutorial you will learn:

  • The difference between hard and symbolic links
  • What is an incremental backup
  • How the rsync –link-dest option works
  • How to create incremental backups using rsync
  • How to schedule backups using cron

Read more

How to create compressed encrypted archives with tar and gpg

How to create compressed encrypted archives with tar and gpg

There are many reasons why you may want to create compressed encrypted file archives. You may want to create an encrypted backup of your personal files. Another possible scenario is that you may want to privately share content with a friend or colleague over the web or through cloud storage. Tar.gz files, or compressed tarballs, are created using the tar command. These tarballs are pretty much the standard go-to format for archives on GNU/Linux, however they are not encrypted. In the above scenarios that we mentioned it is often desirable to have encryption in order to secure your data. This is where gpg comes in.

Read more

How to use zip on Linux

How to use zip on Linux

Compressed files with the .zip extension are commonplace throughout Windows systems, as it’s been the native file compression method for the operating system since many years ago. On a Linux system, the nearest equivalent would have to be tar files and various methods of compression like gzip.

There are a few reasons why you may need to create or open .zip files on Linux. When sharing files with a Windows user, it’d definitely be better to send them a .zip file than a file with Linux based compression, and you may come across an occasional zip archive online or from a friend that you need to open.

In this guide, we’ll show you how to use zip on Linux to open or create compressed .zip archives on both the command line and GUI.

In this tutorial you will learn:

  • How to use zip and unzip via command line
  • How to use zip and unzip via GUI

Read more

GNU/Linux General Troubleshooting Guide for Beginners

GNU/Linux General Troubleshooting Guide for Beginners

In this guide, our goal is to learn about the tools and environment provided by a typical GNU/Linux system to be able to start troubleshooting even on an unknown machine. In this tutorial you will learn:

  • How to check disk space
  • How to check memory size
  • How to check system load
  • How to find and kill system processes
  • How to user logs to find relevant system troubleshooting information

Read more

GRUB boot loader for Linux

How to Fix Grub error: no such partition Grub Rescue

Grub is a boot loader for many Linux distributions which basically tells your system where it can find installed operating system(s) on one or more hard drives. Your PC needs this information in order to boot into your Linux distro successfully. If grub becomes corrupted, one such error you may come across is “error: no such partition grub rescue.”

This error most commonly arises when resizing or rearranging the partitions of a hard drive, as is necessary with dual boot in Ubuntu or dual boot in Manjaro, for example. If you’ve received this error out of the blue (i.e. you haven’t made any recent changes to your hard drive), it could be a sign of the hard drive going bad.

Regardless of the cause, we’ve written this guide to help you get your Linux system back up and running. In this article, we’ll give you the step by step instructions to fix the dreaded “no such partition” grub error.

In this tutorial you will learn:

  • How to fix grub error: no such partition grub rescue

Read more

Formatting SD or USB disk on Linux

Formatting SD or USB disk under Linux

In this guide, we go through the steps to format an SD or USB disk in Linux. This can be done via GUI or command line, and we’ll cover the process for both. The guide will be applicable regardless of what Linux distribution you’ve decided to use, especially the command line method.

This will wipe all the data from your USB or SD disk and get it ready for use under Linux or another system. It’s also used to clear the device before creating a bootable live USB drive.

In this tutorial you will learn:

  • How to format an SD or USB disk via GUI
  • How to format an SD or USB disk via command line

Read more

apt vs apt-get

apt vs apt-get – Advanced Package Tool

If you’ve ever used Debian Linux or one of the many Linux distributions that were derived from it, such as Ubuntu, you may have seen the apt and apt-get commands sprinkled throughout the distro’s documentation.

At surface level, these commands seem interchangeable, and a lot of documentation or online guides throw them around as if they are. However, there are some key differences between the two and we have some recommendations about which one you should be using. In this guide, we’ll explain the differences and give some examples for both commands. Read on to learn about the specific uses for each command and which one is better for you to use.

In this tutorial you will learn:

  • What distros use apt and apt-get?
  • What is the difference between apt and apt-get?
  • Command examples for apt and apt-get

Read more

How to benchmark Disk performance on Linux

How to benchmark Disk performance on Linux

Just bought the latest and greatest – and especially fastest – SDD? Or upgraded your phone’s microSD memory card? Before you start using your shiny new hardware, you may want to run a performance check against the drive. Is the write and read speed up to manufacturer’s specifications? How does your performance compare with that of others? Is that 1TB flash drive you bought on an auction site from China really as fast as the listing said it was? Let us find out!

In this tutorial you will learn:

  • What CLI (Command Line Interface: your Bash or other terminal environment) disk performance measuring tools are available
  • What GUI (Graphical User Interface: your desktop environment) disk performance measuring tool we recommend
  • How to effectively measure disk performance in a straightforward manner
  • Discover and learn with various disk performance measuring examples
  • How to get a sense for the quality of disk/flash hardware you own

Read more

ventoy_logo

How to create a multiboot USB with Ventoy

An USB stick able to store, and let us boot from several Linux distributions images is a very handy tool to have at our disposal. In a previous article we saw how to manually setup and create it from scratch; however, since such operation can quickly become tedious, in this tutorial we will see how to use Ventoy, a tool able to make all the dirty work for us.

In this tutorial you will learn:

  • How to download Ventoy
  • How to use Ventoy to setup a multiboot USB stick
  • How to test the multiboot device without rebooting with Qemu

Read more

A fresh installation of Manjaro Linux

Manjaro Linux System Requirements

Manjaro is a popular and fast growing Linux distribution geared towards home computing. If you are thinking about installing it on your system but need to know the system requirements first, we’ve got you covered in this guide.

Manjaro is available for download on its official site, but there are several versions available. “Official” editions of Manjaro include either the Xfce, KDE, or GNOME desktop environment. The “Community” editions feature either Cinnamon, Budgie, LXDE, or a slew of others.

Why do we mention this? Well, the desktop environment you choose is going to impact Manjaro’s system requirements. Some of these GUIs run better on older hardware than others. But regardless of which one you choose, you’ll be given all of the relevant requirements in this article.

In this tutorial you will learn:

  • Manjaro system requirements
  • Desktop environment performance impact on Manjaro

Read more