Journalctl is a command-line utility for viewing system logs in Linux distributions that use Systemd. It’s an essential tool for system administrators to diagnose problems, monitor system performance, and track changes to the system. However, journal logs can consume large amounts of disk space, especially if they are not managed properly. In this article, we will explain how to automate the process of cleaning up journal logs in Linux systems using journalctl and cron. Before proceeding, it’s important to understand that journal logs contain important information that can help diagnose problems. It’s recommended to keep a few weeks’ worth of…
Author: Rahul
The Mate desktop is a popular and lightweight graphical user interface (GUI) for Linux systems. It provides a traditional and easy-to-use interface that can run on both high-end and low-end computers. If you’re looking to install the Mate desktop on Debian 11, this guide will walk you through the process step by step. Before getting started, it is recommended to back up any important data and files as the installation process may cause changes to your system. Additionally, ensure that your system is updated to the latest version and that you have administrative access to the computer. Step 1: Install…
When it comes to hosting a website, two of the most common options are virtual private server (VPS) hosting and shared hosting. Both have their pros and cons, and the right choice for your website will depend on your specific needs and budget. Shared hosting is the most basic and affordable type of hosting. With shared hosting, your website is hosted on the same server as other websites, and you share the server’s resources with these other websites. This means that your website will be subject to the same performance limitations as the other websites on the server. On the…
In a Linux system, the cron daemon is used to execute scheduled commands or scripts. By default, cron jobs run as the root user. However, sometimes it is necessary to run cron jobs as a non-root user, such as the www-data user. The www-data user is often used by web servers to run web applications and is usually used for security reasons to limit the damage that could be done by a malicious cron job. In this article, we will discuss the proper way to run crontab as the www-data user in a Linux system. Step 1: Determine the User…
The uptime command in Linux is a simple utility that displays the system uptime or the amount of time that the system has been running since its last reboot. The uptime command is commonly used to monitor the stability and availability of a system, as well as to determine the amount of time a user has been logged into the system. When the uptime command is run, it displays information about the system’s uptime, the number of currently logged-in users, the system load average, and the current time. Uptime Command Output Explained The output of the uptime command can be…
As an avid user of Windows programs, you might have found that at times you need to use a particular program on your Ubuntu system. Though there are other options (like virtual machines or programs like Wine, which helps with running Windows programs on Linux), they involve a bit of work and aren’t exactly the most seamless ways of running these programs. Fortunately, WineHQ is an excellent solution for running Windows programs on your Ubuntu computer. In this article, you will learn how to install WineHQ on Ubuntu so you can easily run those pesky Windows programs whenever you need…
Sparse files in Linux are a type of file that takes up less disk space than a regular file. They are files that contain large blocks of zero bytes, and these blocks are not actually written to disk. Instead, the file system records the location and size of these blocks, and the zero bytes are filled in as needed when the file is read. This allows sparse files to take up much less disk space than a regular file that is the same size. Why Use Sparse Files? There are several reasons why you might want to use sparse files…
The `fallocate` command in Linux is a tool used to preallocate space for a file. It is a faster alternative to the traditional method of creating a file and filling it with zeros. This command allows you to quickly allocate space for a file without actually writing any data to the file system. In this article, we’ll explain what the `fallocate` command is, why you might use it, and provide examples of how to use it. What is the fallocate Command? The `fallocate` command is a tool used to allocate disk space for a file on a Linux file system.…
Amazon S3 is a highly scalable and durable object storage service that allows you to store and retrieve any amount of data from anywhere on the web. S3FS is a FUSE (Filesystem in Userspace) interface for Amazon S3 that allows you to mount Amazon S3 buckets as a local file system on your Debian system. This allows you to easily access and manipulate your S3 data as if it were stored on a local file system. In this article, we’ll show you how to mount an Amazon S3 bucket on a Debian system using S3FS. Before we begin, make sure…
The “Error: EACCES: permission denied, scandir” error can also occur when using NPM (Node Package Manager) and trying to install a package. This is because NPM needs to access certain directories on your system, such as log files under the home directory or the global node_modules directory, and the error occurs when it doesn’t have the proper permissions to do so. The Problem: While running the npm command, I faced the following error message. NPM error message: glob error [Error: EACCES: permission denied, scandir ‘/root/.npm/_logs’] { errno: -13, code: ‘EACCES’, syscall: ‘scandir’, path: ‘/root/.npm/_logs’ } Generally, users receive this error,…