Viewing articles tagged 'linux'

7 Linux commands for gathering system information How many processor cores are there on the server, how much memory is available, which drives are... 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... Linux find Command: Find Files, Large Files, Examples find is the most important search command in Linux: it traverses a directory and all its... Using the sudo command: examples sudo (superuser do) allows a user to run a single command on behalf of another user, usually the... Basic Linux commands for beginners If you are new to the Linux terminal, learning a few basic commands will enable you to navigate... 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,... 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... 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... 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... 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... Docker prune: Remove Images, Containers and Volumes Docker does not delete anything automatically. Every downloaded image, every stopped container,... 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... 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... Installing the EPEL repository on AlmaLinux EPEL (Extra Packages for Enterprise Linux) is the Fedora Project’s supplementary package... File permissions (chmod, chown) explained simply on Linux On Linux, every file and directory has permissions that determine who can read, write to or... 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... 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... 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?... 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... 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... 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... 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... 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 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 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 do I clear the local DNS cache? The DNS cache is stored on your local computer, so your computer does not need to query the DNS... How to Become a Hacker (for fun) Why this article? As the editor of the Jargon File, I often receive emails from enthusiastic... 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... 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... Installing and using htop on AlmaLinux htop is an interactive, colourful monitor for running processes: it displays CPU core and memory... Linux Secure Shell (SSH) SSH (Secure Shell) is a network protocol that establishes an encrypted connection between two... 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... What are the most popular Linux distributions? Although Linux distributions are all based on the same kernel, they differ significantly in terms... What are the basic components of Linux? A Linux system consists of several layers that build upon one another. When the server is... How to Check the Linux OS Version and Ubuntu Version Before following an installation guide, raising a ticket or planning an update, the first... What is the Linux kernel? The Linux kernel is the core of the Linux operating system. This program is the first to start... 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 LVM? LVM (Logical Volume Manager) is a layer in Linux that sits between the disks and the file... 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 an inode? In web hosting services, particularly on Linux-based servers, you will often come across the term... 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,... 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... 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... 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... Root access: what it means and what responsibility it brings ‘Root’ is the administrator user on Linux and Unix-based systems, to whom the system applies no... 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:... 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... 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... 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... 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... 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... 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... 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... 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...
« Back