Basic Commands for Working with a Linux VPS Server - DEXBOT
LOGB
  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
Login / Register
Sign inCreate an Account

Lost your password?

0 items 0,00 USDC
  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা
LOGB
  • English
    • Русский
    • English
    • Deutsch
    • 中文 (中国)
    • Español
    • فارسی
    • हिन्दी
    • Italiano
    • 日本語
    • Tiếng Việt
    • Français
    • 한국어
    • Türkçe
    • العربية
    • Português
    • বাংলা

Telegram BOT EN

10
  • Main Menu
  • Active Trades
  • Closed Trades
  • Blockchain Settings
  • Selected Blockchain Overview
  • Trading Settings
  • Bot Settings
  • Create a Telegram Bot and Get the Token
  • Setting up trading indicators
  • Token setup

Website Documentation

4
  • Affiliate Program
  • License — Reset Device
  • Two-Factor Authentication
  • Using a coupon (promo code) to get a discount

VPS Installation

6
  • Generating and Preparing the Secret Key
  • Server and Folder Preparation
  • Deploying the Bot on the Server
  • Configuration Setup of .env and Database
  • Creating and Activating Systemd Services for Running Bots
  • Basic Commands for Working with a Linux VPS Server
  • Home
  • Documentation
  • VPS Installation
  • Basic Commands for Working with a Linux VPS Server
View Categories

Basic Commands for Working with a Linux VPS Server

1 мин. чтения

🔄 Rebooting and Shutting Down the Server #

sudo reboot — reboot the server

sudo shutdown -h now — shut down the server immediately

sudo shutdown -r +5 — reboot in 5 minutes

sudo poweroff — power off the server


📂 File System Navigation #

pwd — show current directory

ls — list files and folders in the current directory

ls -la — list all files including hidden, with details

cd /path/to/folder — change to specified directory

cd .. — go up one directory level

cd ~ or cd — go to the user’s home directory


🗂️ Working with Files and Folders #

cp source destination — copy a file or folder

mv source destination — move or rename a file/folder

rm file — delete a file

rm -r folder — delete a folder recursively

mkdir folder_name — create a new folder

touch file_name — create an empty file

cat file — display file contents in the terminal

nano file — open file in nano text editor


⚙️ Managing Processes and Services #

🧠 Viewing and managing processes: #

top — show active processes in real time

htop — improved top (if installed)

ps aux — list all processes with details

kill PID — terminate a process by ID

kill -9 PID — force kill a process

🔧 Managing systemd services: #

sudo systemctl start service_name — start a service

sudo systemctl stop service_name — stop a service

sudo systemctl restart service_name — restart a service

sudo systemctl status service_name — check service status

sudo systemctl enable service_name — enable service autostart at OS boot

sudo systemctl disable service_name — disable service autostart

sudo journalctl -u service_name — view service logs

sudo journalctl -u service_name -f — view service logs in real time


💾 Disk and Memory Information #

df -h — show disk usage in human-readable format

du -sh /path/to/folder — size of specified folder

free -h — show RAM usage

vmstat — show memory and process statistics


🌐 Network and Connections #

ip a — show all network interfaces

ping google.com — check website availability

netstat -tulnp — show all listening ports and processes

ss -tulw — modern alternative to netstat

curl ifconfig.me — show server external IP address

ssh user@ip_address — connect to another server via SSH


👥 User Management #

whoami — show current user

adduser username — create a new user

passwd username — change user password

usermod -aG sudo username — add user to sudo group

deluser username — delete a user


📦 Package Management (Debian/Ubuntu) #

sudo apt update — update package list

sudo apt upgrade — upgrade installed packages

sudo apt install package_name — install a package

sudo apt remove package_name — remove a package

sudo apt autoremove — remove unused packages


🛠️ Additional Useful Commands #

history — show command history

clear — clear terminal screen

who — show who is currently logged in

uptime — show server uptime

date — show current date and time

chmod +x file — make a file executable

scp file user@host:/path/ — copy a file to a remote server


🔒 Security Tips #

  • Never run commands as root unless necessary. Use sudo.
  • Regularly update the system and installed packages.
  • Use SSH keys instead of passwords for server access.
  • Create backups of important data.



Rate this document?
Updated on July 31, 2025
Creating and Activating Systemd Services for Running Bots
Table of Contents
  • 🔄 Rebooting and Shutting Down the Server
  • 📂 File System Navigation
  • 🗂️ Working with Files and Folders
  • ⚙️ Managing Processes and Services
    • 🧠 Viewing and managing processes:
    • 🔧 Managing systemd services:
  • 💾 Disk and Memory Information
  • 🌐 Network and Connections
  • 👥 User Management
  • 📦 Package Management (Debian/Ubuntu)
  • 🛠️ Additional Useful Commands
  • 🔒 Security Tips

© 2025 DEXBOT. All rights reserved

  • Home
  • Blog
  • Catalog
  • Update
  • Instruction manual
  • Documentation
We use cookies to ensure you get the best experience on our website. By continuing to use this site, you agree to our use of cookies.
More info More info Accept
Home
0 items Cart
My account
Menu