Help Docs Server Administration Linux Server Administration Getting Started with Your Linux Server

Getting Started with Your Linux Server

New to Linux? Get started with your Linux server. Learn basic commands for AlmaLinux/Ubuntu, how to run updates, and how to troubleshoot common errors.

Overview

If you are new to managing a Linux server, this guide is for you. Widely recognized for its reliability, security, and versatility, Linux powers many of the world’s servers, hosting environments, and cloud infrastructures.

Getting started can seem complex, but we’ll walk you through the essentials. This guide will show you how to:

  • Understand which version of Linux you have (AlmaLinux or Ubuntu).
  • Run your first basic commands.
  • Keep your server secure with updates.
  • Troubleshoot common, simple errors.

Linux Distributions

There are different versions of Linux available from various organizations, called Linux distributions (or distros). Distributions combine the kernel with additional tools, software, and package managers to meet different needs. Some focus on stability for enterprise use, while others emphasize ease of use and community support.

Liquid Web Linux servers primarily use AlmaLinux and Ubuntu—proven, secure, and well-supported hosting applications and websites.

Parameters / Features

FeatureDescriptionWhat it means for you
Open SourceFreely available for use, modification, and redistribution.
You get a powerful, secure operating system without paying extra licensing fees.
Stability & SecurityIdeal for server environments. Linux is less prone to malware and reboots.Your server is designed to run for long periods without reboots and is less prone to malware, keeping your sites online.
Package ManagementUses repositories and package managers (dnf, apt) for software installation and updates.You will use simple commands (like dnf or apt) to easily install, update, and remove software like Apache, PHP, or MySQL.
User RolesUses a strict permission system with root (admin) and user accounts.You will use the sudo command to perform administrative tasks. This protects your system from accidental changes and improves security.
PerformanceEfficient use of system resources and optimized for multitasking.Efficient use of system resources and optimized for multitasking.
Linux intelligently manages your server’s resources (like CPU and RAM) very efficiently. This means your websites and applications load faster and can stay responsive even when handling many visitors at once.
CustomizationModular architecture allows for tailored configurations.You have the flexibility to tailor your server precisely to your needs. You can install only the specific software you require (like your preferred web server or database), which improves performance and security by removing unnecessary components.
Differences between Distributions
Command syntax and file locations can differ between AlmaLinux and Ubuntu. Always verify which distribution you are using before running system commands.

Examples

AlmaLinux

AlmaLinux is a Linux distribution built to be fully compatible with Red Hat Enterprise Linux (RHEL). It is widely used on servers where reliability and long-term support are essential. AlmaLinux relies on the DNF package manager and is mostly managed through the command line, which makes it suitable for production environments.

Common Commands

sudo dnf update               # Update all system packages
sudo systemctl restart httpd  # Restart the Apache server
cat /etc/almalinux-release    # Display AlmaLinux version

Why Choose AlmaLinux
AlmaLinux is ideal for production environments requiring RHEL compatibility without subscription licensing.

Ubuntu

Ubuntu is based on another distribution named Debian. Known for being user-friendly while still powerful, it uses the APT package manager and is popular for web hosting, development, and testing.

Common Commands

sudo apt update && sudo apt upgrade  # Update packages
sudo systemctl restart nginx         # Restart the Nginx server
lsb_release -a                       # Show Ubuntu version information

Why Choose Ubuntu
Ubuntu offers broad software availability and straightforward management, making it ideal for developers.

How to Keep Your Server Secure and Up-to-Date

Keeping your server updated is one of the most important tasks for security and performance. There are two different types of updates you should know about.

1. Routine Package Updates (Security & Maintenance)

This is a task you should perform regularly. It applies the latest security patches and bug fixes to the software you already have installed (like Apache, PHP, or the kernel). This does not upgrade you to a new operating system version.

  • AlmaLinux: sudo dnf update
  • Ubuntu: sudo apt update && sudo apt upgrade

We recommend running these updates during a planned maintenance window when lower traffic is expected.

2. Major Operating System Upgrades (Migration)

This is a large, complex project, like moving from AlmaLinux 8 to AlmaLinux 9. When planning your operating system upgrade, the safest and most reliable best practice is to purchase a new server that already has your target OS installed. This method allows you to migrate your data and fully test your sites and applications in the new environment without risking your live server. Once you’re confident everything works, you can simply update your DNS to point to the new server, ensuring minimal downtime. Depending on your server’s management level, Liquid Web can provide migration

In-Place Upgrades

The alternative is an “in-place” upgrade, which attempts to upgrade the OS on your current server. This method is generally riskier and can cause unexpected complications. While we strongly recommend the new server migration path, Liquid Web does provide support for specific in-place upgrades on supported control panels and operating system distributions.

Backup Before Major Updates
Always create a full backup before applying kernel or system-level updates, or beginning the Operating System upgrade process.

Common Use Cases

  • Web servers (Apache, NGINX, LiteSpeed)
  • Database servers (MySQL, MariaDB, PostgreSQL)
  • Application hosting (PHP, Python, Node.js)
  • Container environments (Docker, Kubernetes)
  • CI/CD and development servers
  • DNS and mail services
Version Lifecycle
Always verify that your Linux version is still supported. Running an End-of-Life (EOL) release can expose your server to security risks.

Troubleshooting & FAQs

This error means the command you are trying to run is not installed or isn’t in your system’s path. You can often fix this by installing the correct package.

AlmaLinux: 

sudo dnf install package-name


Ubuntu: 

sudo apt install package-name

This almost always means the command requires administrative privileges to run. Try adding sudo before the command. 

Example:

sudo systemctl restart nginx

Root Access
Commands run as root can modify or delete critical files. Only use sudo when required.

Configuration or dependency issues are the most common cause. Try checking the service status and logs:

sudo systemctl status servicename
sudo journalctl -xe

This can occur when updates involve mismatched versions.

Prevent Conflicts
Run regular updates and remove unused packages to keep dependencies consistent.

AlmaLinux

sudo dnf clean all
sudo dnf update --best --allowerasing

Ubuntu

sudo apt --fix-broken install
sudo apt update && sudo apt upgrade

Use system monitoring tools to check resource usage such as:

  • top
  • htop
  • vmstat
  • iostat
Easier Monitoring
Install htop for a color-coded, real-time performance view.

System updates should be done during planned maintenance windows.

Apply updates off-peak to avoid downtime or unexpected restarts:

sudo dnf update                       # AlmaLinux  
sudo apt update && sudo apt upgrade   # Ubuntu

Links to API / CLI docs

Was this article helpful?