Articles

7 Linux commands for gathering system information How many processor cores are there on the server, how much memory is available, which drives are... AlmaLinux: Recovering memory allocated for kdump If the free -m command on an AlmaLinux server shows less memory than is included in the VPS plan,... Basic Linux commands for beginners If you are new to the Linux terminal, learning a few basic commands will enable you to navigate... Check Open Ports on Linux: ss, lsof and netstat On a server, each network service listens on a specific port: SSH on port 22, the web server on... Configuring the hostname, time zone and time synchronisation on a Linux server When setting up a new VPS, one of the first things you should do is configure the server name and... Copying files between servers: scp, rsync and sftp If you access the server via SSH, you can also copy files through it over an encrypted... Creating a user and granting sudo privileges on Linux With the root user, all operations run without restriction, so a mistyped command or a... Creating and extracting tar.gz archives on Linux On Linux, the most common format for archiving files and folders is tar.gz (or .tgz): the tar... Creating and managing Bash aliases on Linux An alias is a custom shortcut for a longer command. If you type sudo dnf upgrade --refresh or ss... Crontab syntax and scheduled tasks on Linux A cron job is a scheduled task that the Linux cron service runs automatically at specified times,... DNS queries using the dig command: examples dig (Domain Information Groper) is a basic tool for DNS troubleshooting: it queries a DNS server... Disk compression and deduplication with VDO on AlmaLinux and Rocky Linux The Virtual Data Optimizer (VDO), a data optimisation tool for Red Hat Enterprise Linux-based... Docker Compose: compose.yaml Examples, Volumes and env File Docker Compose describes, in a YAML file (compose.yaml), which containers make up an application,... Docker Swarm vs Kubernetes: how to choose a container orchestration tool? To simplify the deployment and management of complex applications, many development teams rely on... Docker Web UI: Install Portainer, Dockge and Coolify Docker can be managed via the command line by default: docker ps, docker compose up -d, docker... Docker prune: Remove Images, Containers and Volumes Docker does not delete anything automatically. Every downloaded image, every stopped container,... Extracting a ZIP file to a specified folder A common task is to extract a downloaded or uploaded ZIP file (such as a WordPress theme, a... File permissions (chmod, chown) explained simply on Linux On Linux, every file and directory has permissions that determine who can read, write to or... Finding and removing large error_log files on Linux A malfunctioning PHP script or extension can write thousands of warnings to the log every minute,... Grep: displaying lines before and after a match on Linux The grep command prints the lines from a file or the output of another command in which the... How can I perform a backup and restore of data on a Linux system? On Linux, there is no single ‘backup button’: the appropriate method varies depending on the type... How can I resize the file system after expanding the VPS disk? If you upgrade to a plan with more storage (see: How can I increase the resources of my VPS... How can I start, stop or restart services using the `systemctl` command? systemctl is the command-line tool for managing systems and services in systemd. On almost all... How can xinetd services be migrated to a systemd-based setup? Xinetd is an old-school ‘super server’: it listens on the configured ports, and when a connection... How can you check disk usage on a Linux server (using the `du` and `df` commands)? If you want to find out how much storage is still available on a Linux server, or which files or... How to Become a Hacker (for fun) Why this article? As the editor of the Jargon File, I often receive emails from enthusiastic... How to Check the Linux OS Version and Ubuntu Version Before following an installation guide, raising a ticket or planning an update, the first... How to Install Docker on Ubuntu 24.04, Debian and AlmaLinux It runs applications in Docker containers: the program arrives in an image file, together with... Install PostgreSQL on Ubuntu and AlmaLinux (Linux guide) PostgreSQL is an open-source relational database management system. Many web applications... Install security updates only (dnf, yum) On Red Hat Enterprise Linux-based systems (AlmaLinux, Rocky Linux, CloudLinux), the package... Installing Apache and PHP-FPM on AlmaLinux 9 This guide demonstrates how to install the Apache web server and PHP on an unmanaged VPS running... Installing Nginx mainline on AlmaLinux from the nginx.org repository The Nginx version in AlmaLinux’s own repository is stable, but not the latest: at the time of... Installing PHP on AlmaLinux 9 and 10 On AlmaLinux, PHP can be installed from several sources, and the choice depends on which version... Installing Redis and Valkey on AlmaLinux Redis is an in-memory key-value database. On websites, it is most commonly used as a cache: it... Installing a WireGuard VPN server on a Linux VPS WireGuard is an easy-to-configure VPN: it builds an encrypted tunnel between two or more machines... Installing a specific version using apt-get on an Ubuntu/Debian system On Ubuntu and Debian, apt-get install (or the newer apt install) installs the latest version... Installing and configuring Fail2ban to protect against SSH brute-force attacks An internet-connected server’s SSH port may be subjected to automated login attempts every... Installing and using htop on AlmaLinux htop is an interactive, colourful monitor for running processes: it displays CPU core and memory... Installing the EPEL repository on AlmaLinux EPEL (Extra Packages for Enterprise Linux) is the Fedora Project’s supplementary package... Installing the Mainline Linux kernel on AlmaLinux from the ELRepo repository The AlmaLinux kernel remains on the same major version throughout its entire lifecycle: 6.12 on... Installing the MariaDB database server on AlmaLinux 9 and 10 MariaDB is an open-source database server that originated from MySQL and is largely compatible... Installing the Remi repository on AlmaLinux The Remi repository (Remi’s RPM repository) is maintained by Remi Collet, a developer who also... Linux Secure Shell (SSH) SSH (Secure Shell) is a network protocol that establishes an encrypted connection between two... Linux find Command: Find Files, Large Files, Examples find is the most important search command in Linux: it traverses a directory and all its... Linux: Delete a Directory, Rename Files, Symlinks On Linux, you can delete files and folders using the rm and rmdir commands, rename or move them... Linux: List Users and Groups, Add a User to a Group Who has access to the server, who is currently logged in, and which users belong to which groups?... Microsoft SQL Server Express on Linux: native and in Docker Microsoft SQL Server has been running on Linux since 2017, and the free Express edition can also... Monitoring processes using the top and htop commands If the server is responding slowly, the first question is always what is causing the load. The... Mounting a new disk under Linux: partitioning, formatting and fstab If a new disk is added to the server (for example, a second disk for a dedicated server, or a... Network troubleshooting: ping, traceroute, mtr, dig and curl If a website or server is unavailable, slow or only fails to work from certain locations, you can... Nginx Proxy Manager Setup with Docker Compose On a single server, only one program can use ports 80 and 443 at any one time. If you are running... Out of memory: OOM killer, the `free` command and creating a swap file If MariaDB, PHP-FPM or another service unexpectedly stops running on the server and the website... Passwords: the fine line between love and hate Unless you have a photographic memory, this will probably sound very familiar. Imagine this:... Reading log files on Linux: journalctl and the /var/log directory If a service fails to start, a website displays an error, or you notice something unusual on the... Remote desktop on a Linux VPS: XFCE, xrdp and VNC A Linux server does not come with a graphical interface by default: you manage it from the... Running commands over an intermittent SSH connection: tmux and screen If an SSH connection is interrupted (the laptop goes to sleep, the Wi-Fi connection falters, or... SELinux: why do I get a ‘Permission denied’ error when the permissions are correct? SELinux (Security-Enhanced Linux) is enabled by default on AlmaLinux, Rocky Linux and other... SSH Config File (~/.ssh/config) Explained with Examples If you connect to multiple servers, you’ll soon tire of commands such as ssh -p 2222 -i... SSH server security settings Within minutes of a server being connected to the internet, the first automated login attempts... Scanning for malware on the server using ClamAV and Maldet If a website unexpectedly redirects you, sends spam emails, displays unknown files, or your... Setting up an SSH SOCKS proxy via a Linux server If you have SSH access to a server, you can start your own SOCKS5 proxy with a single command:... Storing users’ SSH keys in Active Directory for SSH authentication If your Linux server is a member of an Active Directory (AD) domain via SSSD, users can log in... System updates using dnf and apt, configuring automatic updates A significant proportion of compromised servers are breached via a security vulnerability for... Text editing in the terminal: the basics of nano and vim Most of the server settings are contained in text configuration files, which must be edited via... The disk is full, but the disk usage tool isn’t showing what’s taking up the space: what could be the reason? Sometimes, according to the df -h command, the disk appears to be full (or nearly full), yet the... The ‘du’ command in detail: examples for analysing disk usage The du (disk usage) command shows how much space a file or directory takes up on the disk. For a... Ubuntu/Debian – Fixing the “sudo: command not found” error If you receive the error message sudo: command not found’ (or ‘sudo: parancs nem található’ on a... Unix Timestamp to Date: Converter and Linux Commands In log files, databases and API responses, a long number often appears in place of the date, for... Updating AlmaLinux and Rocky Linux to a new major version using ELevate The major releases of AlmaLinux and Rocky Linux receive security updates for a long time (version... Updating Ubuntu and Debian to a new major version There is no need to reinstall Ubuntu or Debian servers if you wish to switch to a new major... Using the sudo command: examples sudo (superuser do) allows a user to run a single command on behalf of another user, usually the... What are the basic components of Linux? A Linux system consists of several layers that build upon one another. When the server is... What are the most popular Linux distributions? Although Linux distributions are all based on the same kernel, they differ significantly in terms... What does ‘load’ mean on Linux systems? The load (load average) is one of the most closely monitored metrics on Linux systems. It shows,... What is LVM? LVM (Logical Volume Manager) is a layer in Linux that sits between the disks and the file... What is Linux? In the strictest sense, Linux refers to an open-source operating system kernel – the Linux kernel... What is swap in Linux? Swap (swap space) is an area allocated on the hard drive that Linux uses to supplement physical... What is the Linux kernel? The Linux kernel is the core of the Linux operating system. This program is the first to start...
« Back