When you open a website, the server answering you is most likely running Linux. Servers don’t need a graphical desktop, so they’re usually managed with text commands over SSH or through a control panel such as cPanel.
Core concepts
- Kernel and distribution: the kernel is the core of the system; a distribution bundles it with tools and a package manager. Ubuntu and Debian use
apt; AlmaLinux and CloudLinux usednf. - Everything is a file: settings, logs and even devices appear as files in a tree that starts at
/. - Users and permissions: every file has an owner and read, write and execute permissions. The
rootuser can do anything. - Case matters:
Image.jpgandimage.jpgare different files.
Commands you’ll use often
| Command | What it does | Example |
|---|---|---|
pwd |
Shows the current folder | pwd |
ls -la |
Lists files with permissions | ls -la public_html |
cd |
Changes folder | cd ~/public_html |
cp, mv, rm |
Copy, move, delete | cp .htaccess .htaccess.bak |
tail -f |
Follows a log file live | tail -f error_log |
chmod |
Changes permissions | chmod 644 index.php |
du -sh |
Shows a folder’s size | du -sh ~/public_html |
A practical example: the site breaks after an edit. Watch the error log live while you reload the page:
cd ~/public_html
tail -f error_log
The error appears, with file and line number, the moment it happens; press Ctrl+C to stop following.
Common mistakes when coming from Windows
- File names with different letter case between the code and the real file, causing 404 errors.
- Line endings: a script written on Windows can fail because of
\r; save it with LF endings. - Trying
sudoon shared hosting: it won’t work, because it needs root access.
On ArabyHost
ArabyHost servers run CloudLinux, with each account isolated in CageFS and given its own resource limits. AI/Developer plans include jailed SSH for running commands, Git, Composer, Node.js and Python, without root access. On other plans you manage files with the cPanel File Manager. Start with the SSH access guide.
FAQ
Do I need Linux on my computer to host a site on it?
No. You can work from Windows or macOS and upload files through the control panel or Git. A few commands only help if your plan includes SSH.
What's the difference between Linux and Windows hosting?
Linux hosting suits PHP, WordPress, Laravel, Node.js and Python, and is by far the most common. Windows hosting is mostly needed for older ASP.NET apps built on the .NET Framework.
Why does my site work locally but give 404s on the server?
Usually letter case: Linux treats Logo.png and logo.png as different files, while Windows ignores the difference. Make file names and links match exactly.