Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • Df Command in Linux

    The df command is used to display disk space usage of Linux filesystems as a whole. It displays the amount of disk space used and available on the mounted filesystems.

    Whereas, du command is used display disk space used files and directories on the filesystem.

    This tutorial shows how to use df command to check disk space usage in Linux.

  • Show Lines Before and After Match via Grep – Linux Hint

    Grep has been used widely in Linux systems when working on some files, searching for some specific pattern, and many more. This time, we are using the grep command to display the lines before and after the matched keyword used in some specific file. For this purpose, we will be using the “-A”, “-B” and, “-C” flag throughout our tutorial guide. So, you have to perform each step for better understanding. Make sure you have Ubuntu 20.04 Linux system installed.

    Firstly, you have to open your Linux command-line terminal to start working on grep. You are currently at the Home directory of your Ubuntu system right after the command-line terminal has been opened. So, try to list all the files and folders in the home directory of your Linux system using the below ls command, and you will get all. You can see, we have some text files and some folders listed in it.

  • How Do You Grep Case Sensitive? – Linux Hint

    Global regular expression print is a versatile and powerful feature of Linux. It helps in finding words and phrases in the file such that the grep keyword is used to obtain the desired functionality. Grep is used to obtain data not only from direct searching in the text but also from directories as well, by applying the commands on it. It searches the respective data and modifies them by removing the extra space between the text, obtaining line numbers, and excluding terms from the data. The simplest feature of grep is to handle case sensitivity. Grep is case-sensitive by default hence it shows the perceptibility of both upper and lower cases in the file. This feature helps in getting the required output by removing the discrimination of the case which can all be done on the main page of grep.

  • How Do I Ignore Blank Lines in Grep? – Linux Hint

    Grep stands for Global Regular Expression Print. It has many functionalities, i.e., searching in a file, searching only names of a file, grep recursively, etc. Grep is considered a powerful command in the searching sector. In many cases, we face situations where we don’t need spaces, or there is a need to remove unwanted gaps in our data. One of the most interesting ways of using grep is to ignore or remove blank lines from the text file. This procedure is accomplished through different examples. It is an operation of file editing. To undergo this purpose, we need to have existing files in our system. Through the grep command, we allow it to print data without blank lines.

  • How Do I Use Grep to Search a File on Linux? – Linux Hint

    Grep is a versatile command that allows sorting input by following complex rules and regulations. It is a powerful command in a Linux environment. It is not for searching files directly on your system. It shows the file names that indicate the particular part of the string that matches your part present in the search query. In the proceeding article, we will explain some examples to let you understand searching with the help of Grep.

  • How Do I Change My Username in Linux? – Linux Hint

    Linux operating system is capable of handling more than one user at a time. So, we must apply check and balance on all users of the system and their relevant details so that integrity is maintained. All information is saved in a way to reduce redundancy in data. Whenever we add a user, all information is saved in “/etc/passwd”. To change the username in Linux, you must have a user in the system. We will see in this article how the username is changed. If already user is not present, we will create a user and then modify it. Our article will cover three main aspects related to username modification and identity.

  • How to Use OneDrive on Linux [Ed: Sending one's files to Microsoft seems unnecessary if not foolish]

    Cloud storage is a very secure and efficient way to store data. Cost-effectiveness and scalability make it quite useful. Cloud storage is so advantageous that every tech company offers it, such as Apple, Google, and Amazon. Similarly, Microsoft offers OneDrive, a cloud storage service to store any type of data online, that can be accessed and shared anytime from anywhere.

  • How to Install Microsoft Teams on Debian 10 [Ed: Again, not a good idea at all]
  • Optimize and Monitor Your Linux System's Performance With Stacer

    As time passes by, operating systems tend to become sluggish if not updated and maintained properly. Although Linux devices perform slightly better when compared to Windows in the long run, minor degradation in performance of both the operating systems is inevitable.

    This is generally due to the accumulation of unwanted cache, startup programs, an excessive number of running processes, and junk files that you no longer need.

  • Getting Started with Manjaro Linux Part-I – Linux Hint

    As a rolling release distribution, Manjaor Linux continuously rolls out updated software versions. Even though it’s an Arch Linux derivative, they differ in the context of targeted audience and goals. Arch Linux is a bleeding-edge software operating system aimed at technically sound users. Manjaro updates go through layers of testing to provide a comparatively stable, fast, and lightweight system for users. That is, the packages don’t come out as fast as in Arch Linux.

    Hence, Manjaro uses its official repository to get the latest updates. Another main reason for a separate repository is that Manjaro maintains its own system packages like hardware detection memory, among many others.

    However, users can access new software packages via an unofficial repository. To get started, we will learn about Manjaro’s official and unofficial repositories, how they are maintained, and how to install, update, and remove required packages via these repositories.

  • How to Make Disk Images in Linux with DD Command – Linux Hint

    Whenever it comes to wiping, backing up, or restoring Linux files, you have few tools. Although there is one alternative that still works, regardless of the Linux distribution you’re using, and that is the DD command. Creating an image of a partition or cloning a complete hard disk drive are simply the acts of making a copy of the whole disk or partition, and it is very simple with the dd command. The DD command is good for cloning disks, backups, and restoration, among other things. In this guide, we will see how to make a disk image using the DD command. Make sure you have the Ubuntu Linux system installed.

    DD circumvents this by making an identical replica of the whole hard drive or partitions. So if you recover this backup, your machine will be restored to its original state. You’ll regain access to your folders, games, browser history, and sometimes even device settings. We’ll want another drive with more capacity than the one we’re cloning to replicate your drive. There would most probably be a big hard drive for this purpose.

  • Network Configuration in Manjaro – Linux Hint

    As the Manjaro kernel boots up the machine, its Network Manager automatically connects to the DHCP server via the enabled network interface. It then provides the client with the IP address, subnet mask, lease time, DNS server, gateway, and other details.

    If the machine works as an Apache server, it must be easily accessible to the clients via a static IP address. Besides, as a precaution, users also have to protect the machine from unnecessary access from outside the network. This demands the need to set the network interfaces manually via Manjaro Network Manager or through commands and configuration files.

    In this article, we learn to configure the network interface via GUI and CLI manually. We also simplify the Unrestricted Firewall (ufw) configuration process for new users as a precautionary step after Manjaro installation.

  • Troubleshooting Error: Usermod: A Process Currently Uses User – Linux Hint

    Sometimes, while using any Linux distribution, most of the users got the Error: “user is currently used by process”. This error could have occurred while changing the username or deleting a user. One of the reasons behind this error is that the user has been deleting or changing a user’s name while logging in. If you are looking for solutions for this particular error, this tutorial is for you. Make sure you have any of the Linux distribution installed on your system. In our case, it’s Ubuntu 20.04 Linux system.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.