Skip to Content
🇬🇧Linux Basics

Linux Basics

This guide covers essential commands and skills for effective Linux administration on your VPS server.


Connecting via SSH

Connect from any operating system using SSH:

Note: All CoreSynth servers run Linux. Use any SSH client (Terminal, PowerShell, Termius, PuTTY, etc.)


Basic Navigation

CommandDescription
pwdShow current directory
lsList files
ls -laList files including hidden
cd directoryChange to directory
cd ~Go to home directory
cd ..Go up one level

Important Directories

DirectoryContents
/rootRoot user’s home directory
/homeUser home directories
/var/wwwWeb files and applications
/var/logSystem logs
/etcConfiguration files
/tmpTemporary files

File Operations

CommandDescription
cat fileDisplay file contents
nano fileEdit file in Nano editor
cp source destinationCopy file
mv source destinationMove/rename file
rm fileDelete file
mkdir directoryCreate directory
rm -r directoryDelete directory recursively

Nano Editor

Nano is a simple terminal text editor.

ShortcutAction
Ctrl + OSave file
Ctrl + XExit editor
Ctrl + WSearch in file
Ctrl + KDelete line
Ctrl + UUndelete line

Package Management (apt)

# Update package list apt update # Install a package apt install package-name # Remove a package apt remove package-name # Search for a package apt search keyword # Upgrade all packages apt upgrade

Service Management (systemctl)

# Start a service systemctl start service-name # Stop a service systemctl stop service-name # Restart a service systemctl restart service-name # Check service status systemctl status service-name # Enable on boot systemctl enable service-name # Disable on boot systemctl disable service-name

System Monitoring

CommandDescription
htopInteractive process manager
df -hDisk usage
free -hRAM usage
uptimeSystem uptime
topBasic process overview

Network Commands

CommandDescription
ip aShow IP addresses
ping -c 4 domain.comTest connectivity
curl ifconfig.meGet public IP
netstat -tlnpActive TCP ports
ss -tlnpActive TCP ports (modern)
nslookup domain.comDNS lookup

User Management

# Add a new user adduser username # Switch to user su username # Add user to sudo group usermod -aG sudo username

File Permissions

# Change file owner chown user:group file # Change permissions chmod 755 file # Example: make script executable chmod +x script.sh

Useful Tips

TipDescription
TabAuto-complete command
Arrow UpPrevious command from history
Ctrl + CCancel current operation
Ctrl + LClear screen
historyShow command history

Need help? Open a support ticket  or ask Alex.

Last updated on