🐧 Linux Basics

Common Commands

pwd                  # show current directory
ls -lh               # list files and folders
cd /path/to/dir      # change directory
cd ..                # go one level up

File & Folder Management

mkdir backups                # create a new folder
rmdir empty_folder           # remove empty folder
rm file.txt                  # delete file
rm -r old_data               # delete folder with contents
cp source.txt /tmp/          # copy file
mv oldname.txt newname.txt   # rename or move file

Editing Files

nano config.toml   # simple text editor
vim config.toml    # advanced editor (ESC :wq β€” save & exit)

System Commands

top          # show active processes
ps aux       # list all processes
kill <PID>   # stop a process
df -h        # check disk usage
free -h      # check memory usage

Node.js Reference

Installation & Setup

Create a Project

Install Packages

Run Project


Docker Essentials

Basic Commands

Example Dockerfile


Docker Cleanup & Removal

Remove Docker (Ubuntu/Debian)

Clean up Docker containers and images

Clear system cache


🧭 Conclusion

This quick reference guide provides essential commands for Linux, Node.js, and Docker β€” everything a validator or system administrator needs for setup, management, and automation in production environments.

Last updated