Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

The first commands on your VPS: finding your way around the command line

You've logged in to your VPS for the first time and all you see is a blinking cursor. A handful of commands will help you find your way around: where you are, what's in a folder, how to read or edit a file and how your server is doing. Not logged in yet? First read Logging in to your VPS with SSH (and creating an SSH key) and, the first time, compare the fingerprint as described in Logging in with SSH for the first time.

Reading the prompt

To the left of the cursor is the prompt, for example anna@web1:~$. It tells you who you are (anna), which server you're on (web1) and which folder you're in (~ is your own home folder). The last character matters: $ means a regular user, # means root. Root can do anything, without asking "are you sure". So it's better to work with your own user and put sudo in front of commands that need admin rights. How to create that user is explained in Your own user with sudo.

Looking around in folders

CommandWhat it does
pwdShows which folder you're currently in
ls -laShows the contents of the folder, with permissions, owner and size, including hidden files (names starting with a dot, such as .ssh)
cd /etc/sshGoes to a folder. cd .. goes up one folder, cd with nothing after it takes you back to your home folder

You'll run into a few folders all the time: /etc (configuration), /var/log (log files), /home (home folders), /root (root's home folder) and /var/www or /srv (websites and services). Capitals matter: /etc/SSH doesn't exist, /etc/ssh does.

Reading and editing files

  • cat bestand shows a short file all at once.
  • less bestand lets you scroll with the arrow keys and the space bar. Search with /woord, quit with q.
  • tail -n 50 bestand shows the last 50 lines, handy for log files.
  • nano bestand opens a simple editor. Save with Ctrl+O and Enter, exit with Ctrl+X.

Make a copy before you edit a configuration file, for example sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak. Change one thing at a time, and test the configuration before restarting the service: many programs have their own command for that, such as sudo sshd -t or sudo nginx -t.

How is your server doing?

CommandWhat you see
cat /etc/os-releaseWhich operating system and version is running, for example Debian 13 or Ubuntu 24.04 LTS
uptimeHow long the server has been running and the load over 1, 5 and 15 minutes
df -hFree disk space. A full disk is a common reason a server stops "out of nowhere"
free -hMemory. Look at the available column, not at free: Linux uses free memory as cache and gives it back when a program needs it
ip -brief addressYour server's IP addresses

Is your disk filling up or is the server slow? Check Disk full, memory full or slow. Need more disk space? See Increasing your VPS disk space.

Finding help

  • man ls opens the manual for a command. Scrolling and searching work just like in less. If the manuals are missing, install them with sudo apt install man-db.
  • ls --help gives a short list of options for most commands.
  • The Tab key completes command and file names. That saves you typos. Press the up arrow to bring back earlier commands.
rm has no recycle bin: once it's gone, it's gone. Be extra careful with rm -r (a folder with everything in it) and with wildcards such as *, especially when you're root. Also, don't paste commands from the internet without reading them first. Make a snapshot before a big change, see Snapshots and backups of your VPS.

Your VPS is fully self-managed: whatever happens inside your server, you manage yourself. We help with the WebOké side, such as the VPS screen, the network and snapshots. Prefer working with a hosting package? There you get a more limited command line, see SSH access and the Terminal in DirectAdmin: which packages and how to log in.

Want to learn more? Take the free course VPS and Linux server management, lesson 1.4 Looking around on the command line.

Was this article helpful?

← Back to VPS hosting

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…