sudo apt install git build-essential python3 python3-venv python3-pip nodejs npm
build-essential installs gcc, g++, make and common headers.
Commands, distributions, and practical Linux guidance
Command hub
Cross-platform developer commands and Windows-to-Linux equivalents for Git, compilers, language runtimes, build tools and project workflows.
Distro notes
Developer Tools
sudo apt install git build-essential python3 python3-venv python3-pip nodejs npm
build-essential installs gcc, g++, make and common headers.
sudo dnf groupinstall "Development Tools" && sudo dnf install git python3 python3-pip nodejs npm
Fedora uses dnf groups for common compiler toolchains.
sudo pacman -S base-devel git python python-pip nodejs npm
base-devel is the standard Arch development tool group.
Guides
38 commands
MSBuild equivalent simple project→cmake --build build
Build Tools
Build CMake project
Builds an already configured CMake build directory.
Distro equivalents
Debian/Ubuntu
cmake --build build
Fedora
cmake --build build
Arch
cmake --build build
Open full guide →
Visual Studio build tools make→make
Build Tools
Run Makefile build
Executes build rules from a Makefile.
Distro equivalents
Debian/Ubuntu
make
Fedora
make
Arch
make
Open full guide →
cmake configure on Windows→cmake -S . -B build
Build Tools
Configure CMake project
Generates build files in a separate build directory.
Distro equivalents
Debian/Ubuntu
cmake -S . -B build
Fedora
cmake -S . -B build
Arch
cmake -S . -B build
Open full guide →
ninja build on Windows→ninja -C build
Build Tools
Run Ninja build
Builds a project with Ninja.
Distro equivalents
Debian/Ubuntu
ninja -C build
Fedora
ninja -C build
Arch
ninja -C build
Open full guide →
cl.exe compile C→gcc main.c -o app
Compilers
Compile C program
Compiles a C source file into an executable.
Distro equivalents
Debian/Ubuntu
gcc main.c -o app
Fedora
gcc main.c -o app
Arch
gcc main.c -o app
Open full guide →
code . on Windows→code .
Editors
Open VS Code in folder
Opens the current folder in VS Code when installed.
Distro equivalents
Debian/Ubuntu
code .
Fedora
code .
Arch
code .
Open full guide →
notepad source file→nano file
Editors
Edit text file in terminal
Opens a text file in a terminal editor.
Distro equivalents
Debian/Ubuntu
nano file
Fedora
nano file
Arch
nano file
Open full guide →
git add on Windows→git add path
Git
Stage changes
Stages file changes for the next commit.
Distro equivalents
Debian/Ubuntu
git add path
Fedora
git add path
Arch
git add path
Open full guide →
git branch on Windows→git branch -a
Git
List Git branches
Lists local and remote branches.
Distro equivalents
Debian/Ubuntu
git branch -a
Fedora
git branch -a
Arch
git branch -a
Open full guide →
git clone on Windows→git clone URL
Git
Clone Git repository
Downloads a repository into a new local directory.
Distro equivalents
Debian/Ubuntu
git clone URL
Fedora
git clone URL
Arch
git clone URL
Open full guide →
git commit on Windows→git commit -m "message"
Git
Create Git commit
Records staged changes in repository history.
Distro equivalents
Debian/Ubuntu
git commit -m "message"
Fedora
git commit -m "message"
Arch
git commit -m "message"
Open full guide →
git diff on Windows→git diff
Git
Show unstaged Git changes
Displays line changes not yet staged.
Distro equivalents
Debian/Ubuntu
git diff
Fedora
git diff
Arch
git diff
Open full guide →
git log on Windows→git log --oneline --graph --decorate
Git
Show Git history
Displays compact commit history.
Distro equivalents
Debian/Ubuntu
git log --oneline --graph --decorate
Fedora
git log --oneline --graph --decorate
Arch
git log --oneline --graph --decorate
Open full guide →
git pull on Windows→git pull --ff-only
Git
Pull Git changes
Fetches and fast-forwards from the remote branch.
Distro equivalents
Debian/Ubuntu
git pull --ff-only
Fedora
git pull --ff-only
Arch
git pull --ff-only
Open full guide →
git push on Windows→git push
Git
Push Git commits
Uploads local commits to the configured remote.
Distro equivalents
Debian/Ubuntu
git push
Fedora
git push
Arch
git push
Open full guide →
git remote on Windows→git remote -v
Git
Show Git remotes
Lists configured repository remotes.
Distro equivalents
Debian/Ubuntu
git remote -v
Fedora
git remote -v
Arch
git remote -v
Open full guide →
git stash on Windows→git stash push -m "work in progress"
Git
Stash Git changes
Temporarily shelves uncommitted changes.
Distro equivalents
Debian/Ubuntu
git stash push -m "work in progress"
Fedora
git stash push -m "work in progress"
Arch
git stash push -m "work in progress"
Open full guide →
git status on Windows→git status
Git
Show Git working tree status
Shows changed, staged and untracked files in a repository.
Distro equivalents
Debian/Ubuntu
git status
Fedora
git status
Arch
git status
Open full guide →
git switch on Windows→git switch BRANCH
Git
Switch Git branch
Moves the working tree to another branch.
Distro equivalents
Debian/Ubuntu
git switch BRANCH
Fedora
git switch BRANCH
Arch
git switch BRANCH
Open full guide →
go build on Windows→go build ./...
Go
Build Go packages
Builds Go packages in the current module.
Distro equivalents
Debian/Ubuntu
go build ./...
Fedora
go build ./...
Arch
go build ./...
Open full guide →
go test on Windows→go test ./...
Go
Run Go tests
Runs Go tests recursively.
Distro equivalents
Debian/Ubuntu
go test ./...
Fedora
go test ./...
Arch
go test ./...
Open full guide →
go version on Windows→go version
Go
Check Go version
Prints Go toolchain version.
Distro equivalents
Debian/Ubuntu
go version
Fedora
go version
Arch
go version
Open full guide →
gradle build on Windows→gradle build
Java
Build Gradle project
Runs a Gradle build.
Distro equivalents
Debian/Ubuntu
gradle build
Fedora
gradle build
Arch
gradle build
Open full guide →
java -version on Windows→java -version
Java
Check Java runtime
Prints Java runtime version.
Distro equivalents
Debian/Ubuntu
java -version
Fedora
java -version
Arch
java -version
Open full guide →
javac on Windows→javac Main.java
Java
Compile Java source
Compiles a Java source file.
Distro equivalents
Debian/Ubuntu
javac Main.java
Fedora
javac Main.java
Arch
javac Main.java
Open full guide →
mvn test on Windows→mvn test
Java
Run Maven tests
Runs test phase for a Maven project.
Distro equivalents
Debian/Ubuntu
mvn test
Fedora
mvn test
Arch
mvn test
Open full guide →
node --version on Windows→node --version
Node.js
Check Node.js version
Prints Node.js version.
Distro equivalents
Debian/Ubuntu
node --version
Fedora
node --version
Arch
node --version
Open full guide →
npm install -g on Windows→npm install -g PACKAGE
Node.js
Install global npm package
Installs a global Node.js CLI package.
Distro equivalents
Debian/Ubuntu
npm install -g PACKAGE
Fedora
npm install -g PACKAGE
Arch
npm install -g PACKAGE
Open full guide →
npm install on Windows→npm install
Node.js
Install project dependencies
Installs dependencies from package.json.
Distro equivalents
Debian/Ubuntu
npm install
Fedora
npm install
Arch
npm install
Open full guide →
npx on Windows→npx PACKAGE
Node.js
Run npm package command
Runs an npm package binary without permanent global install.
Distro equivalents
Debian/Ubuntu
npx PACKAGE
Fedora
npx PACKAGE
Arch
npx PACKAGE
Open full guide →
pip freeze on Windows→python3 -m pip freeze
Python
List Python packages
Prints installed Python packages and versions.
Distro equivalents
Debian/Ubuntu
python3 -m pip freeze
Fedora
python3 -m pip freeze
Arch
python3 -m pip freeze
Open full guide →
pip install on Windows→python3 -m pip install PACKAGE
Python
Install Python package
Installs a Python package into the active environment.
Distro equivalents
Debian/Ubuntu
python3 -m pip install PACKAGE
Fedora
python3 -m pip install PACKAGE
Arch
python3 -m pip install PACKAGE
Open full guide →
pipx install on Windows→pipx install PACKAGE
Python
Install Python CLI app
Installs a Python command-line app in an isolated environment.
Distro equivalents
Debian/Ubuntu
pipx install PACKAGE
Fedora
pipx install PACKAGE
Arch
pipx install PACKAGE
Open full guide →
py -m venv→python3 -m venv .venv
Python
Create Python virtual environment
Creates an isolated Python environment.
Distro equivalents
Debian/Ubuntu
python3 -m venv .venv
Fedora
python3 -m venv .venv
Arch
python3 -m venv .venv
Open full guide →
where python→python3 --version
Python
Check Python version
Prints the installed Python version.
Distro equivalents
Debian/Ubuntu
python3 --version
Fedora
python3 --version
Arch
python3 --version
Open full guide →
cargo build on Windows→cargo build
Rust
Build Rust project
Builds a Rust package.
Distro equivalents
Debian/Ubuntu
cargo build
Fedora
cargo build
Arch
cargo build
Open full guide →
cargo test on Windows→cargo test
Rust
Run Rust tests
Runs Rust project tests.
Distro equivalents
Debian/Ubuntu
cargo test
Fedora
cargo test
Arch
cargo test
Open full guide →
cargo version on Windows→cargo --version
Rust
Check Cargo version
Prints Rust Cargo version.
Distro equivalents
Debian/Ubuntu
cargo --version
Fedora
cargo --version
Arch
cargo --version
Open full guide →