Terminus

A repository of common commands for the Terminal written and maintained by a collection of engineers

Npm

Execute Packages With npx And npm

Discover the power of npm's npx tool, a developer's best friend for running packages without global installs.

Npm

Install Dev Dependencies With npm

Learn how to install and update dev dependencies using the npm install command.

Docker

Remove a Docker Image

Learn how to remove a Docker image locally, on a Docker registry, and on Artifactory.

Docker

Create Kubernetes Secrets with `kubectl`

Learn how to securely manage sensitive data in your cluster using Kubernetes secrets: from standard key-value pairs, file-based secrets, Docker secrets, TLS certificates, env files, and pod connections.

Docker

Launch PostgreSQL Using Docker Compose

Learn how to launch and connect a PostgreSQL instance to an application using Docker Compose.

Docker

Docker Compose Volume: Bind Mounts

Learn how to mount files and directories into a Docker container with Compose using the `compose.yaml` file.

Git

Adding a Submodule in Git

This post will show you how to simply add a submodule to a local repository, clone a repository with a submodule, and work within a repository that has a submodule.

Git

Undo a git push

This post will show you had to simply undo a git push three different ways.

Linux
Unix

Ignoring SSL Certificate Issues with cURL

Discover how to bypass SSL certificate verification in cURL for HTTPS endpoints, addressing both direct requests and those via proxies. We will also see how this could be handled both in the terminal and system-wide via the `.curlrc` file

Npm
Linux

Clear npm Cache

Learn how to clear the npm cache on Linux, macOS, and Windows.

Bash
Python

Loop Through Files in Directory in Bash

Learn how to iterate over files in a directory linearly and recursively using Bash and Python.

Git

Undo a Git Merge

This post will show you how to undo a merge operation using git revert and git reset.

Git

Undo Git Add

Learn how to effectively use 'git add' to stage files in Git for committing, and discover two powerful methods to undo accidental stagings.

Docker

Docker Bind Mounts (docker run --volume)

Learn how to mount files and directories into a Docker container using the `docker run --volume` command.

Linux
Unix

Verify Certificate With OpenSSL

Learn how to verify local and remote certificates with openssl

Yarn

Upgrade Yarn Package(s)

Learn how to update one or more packages to a specific or latest version using the `yarn upgrade` command.

Vim
Vi

Vim Modes

Learn about seven of Vim’s modes

Vim

Go To Top of File in Vim

Learn how to jump the top of the file in Vim, then navigate, search, highlight, and delete.

Vim

Go To Line In Vim

variety of approaches to go to lines

Vim
Vi

Vim / Vi Page Up and Down Controls

Quick reference for Vim's page up and down controls

Vim
Vi

Vim Find and Replace

Use either substitute or slash & dot

Vim

Vim Go To End/Start of Line

Go to the end or beginning of a line in Vim

Npm

How To Update NPM

Learn how to update npm to a specific version using the npm, nvm, or npx commands.

Vi
Vim

Copy & Paste in Vim / Vi

Copy (Yank), Paste (Put) and Cut (Delete) in Vim

Yarn

How To Update Yarn

How to update yarn and related troubleshooting

Git

Undo a Git Rebase

This post will show you how to undo a rebase using git reset, git rebase and git revert

Linux
Unix
Bash

How To Use sudo su

A quick overview of using sudo su

Vim
Vi

Undo & Redo in Vim / Vi

Keyboard shortcuts and summary of how Vim tracks changes

Vim
Vi

Show & Hide Line Numbers in Vim / Vi

Toggle absolute and relative line numbers

Git

Git Push Origin

A breakdown of git push origin

Vim
Vi

Select all in Vim / Vi

Select all and copy, paste, or delete the contents

Linux
Unix

What Does sudo chown Do?

Why sudo chown is sudo and some common pitfalls

Linux
Unix

Removing Directories in Linux

How to remove directories and their content

Docker

Save Docker Container As Image

create Docker image from existing container

Linux
Unix

Copy File From Remote To Local Using Scp

copy files and directories from a remote to local

Bash
Linux
Unix

POST JSON data with cURL

Different ways of sending JSON via cURL

Npm

Re-Installing Npm

Learn how to reinstall Node.js and npm on macOS, Linux, and Windows using `curl`, `brew`, `apt`, `nvm`, and Node installer.

Vim
Vi

Searching in Vim

Search forward, backward, case insensitive, and more

Python

Delete a File in Python

There are two approaches to deleting a file in Python

SQL
Psql

How To Run a SQL File With psql

Importing a SQL file into a PostgreSQL database with psql

Bash
Linux
Unix

Generate, Sign, and View a CSR With OpenSSL

Learn how to generate, self-sign, and verify certificate signing requests with `openssl`.

Npm

How To Reinstall Packages With Npm

Brief guide to reinstalling npm packages using npm

Npm

Check Npm Package Version

Check an npm package version within your project

SQL

Import a SQL File in MYSQL

MySQL command line to run an SQL file

Npm

Install NPM Packages From GitHub

Check an npm package version within your project

Linux
Unix

Linux File Permissions Explained

Understand what common expressions do

Linux
Unix

How To Use Unix Wildcards

How to use wildcard characters in Linux/Unix commands

Linux
Unix

How to Make Grep Case Insensitive

By default, grep is case sensitive

Npm

List Installed Npm Packages

Learn how to list globally and locally installed packages with npm, including their dependencies.

Linux
Unix

mkdir if not exists

Create directories when they don’t already exist

Linux
Unix

Linux Chmod Command

Review how to best use the chmod command

Git

Create Folder In GitHub Repository

Learn how to create and push one or more empty directories in a Git repository using `.placeholder` and `README.md` files using both the CLI and the GitHub interface.

Linux
Unix

Kill Command

Basic syntax and usage of the kill command

Psql

Import CSV Into Postgres

How to import data from a CSV file into a PostgreSQL table

Linux
Unix

Kill a Process in Linux

Strategies for finding and killing processes

Linux
Unix

Grep Across Multiple Lines

Guide on several cases of using grep across multiple lines

Bash
Linux
Unix

How to use sudo rm -rf safely

We'll help you understand its components

Linux
Unix

How to run cron every hour

along with variations and examples

Linux
Bash
Unix

How to run chmod recursively

Using -R is probably not what you want

Git

Git Push Tags

This post will show you how to push a single tag, multiple tags, all tags, and tags with commits.

Linux
Unix

Grep Show Lines Before and After

Learn how to show N lines or all lines before and after the result returned by the `grep` command.

Bash
Linux
Unix

Grep Multiple Strings

For two or more string, use an “or” expression (\|), or the -e flag.

Linux
Unix

Grep In a Directory

Grep to search for words/phrases in directories and subdirectories

Vim
Vi

Go To End of File in Vim / Vi

Select and delete to the end of a file in Vim

Linux
Unix

Exclude With Grep

Excluding unwanted key terms or directories when using grep

Bash
Linux
Unix

Grep Count

Efficiently count lines or occurrences in a file.

Git

Undo a Git Pull

This post will guide you through reverting a git pull and getting you back to your previous commits and history. Also learn how to undo GitHub pull requests.

Git

Undoing Git Commits

Overview of the simple way to undo a commit using git reset

Git

Delete Local Git Branch

variety of situations to delete a local git branch

Git

Git Commit History

Navigate the commit history of a repo or branch

Git

How To Create a Git Repository

Creating repos in various scenarios with git

Git

Git Clone, Push, And Pull Over SSH

use an SSH key for Git repos

Git

Amend a Git Commit

making changes to a previous commit

Git

Change Git Origin Remote URL

change git repo URL

Docker

Run a Shell Script in a Dockerfile

When and how to run a shell script in a Dockerfile

Docker
Bash

Run Bash Shell In Docker

start an interactive shell in Docker container

Docker

Docker Remove Stopped Containers

Remove all stopped Docker containers at once

Vim
Vi

How to delete lines in Vim / Vi

The best answer depends on which mode you use

Docker

Remove All Docker Images

Learn how to remove all used, unused, and dangling Docker images using the `docker rmi` and `docker image prune` commands.

Docker

Copy File From Container To Host

copy files and directories from a Docker container to my local machine

Linux
Unix

Show Curl Headers

curl request and response headers

Linux
Unix

Curl With Basic Auth

perform a basic access authentication with cURL

Linux
Unix

Curl With Headers

send request headers with cURL

Bash
Unix
Linux

Curl Post Request

Use cURL to send data to a server

Linux
Unix

Curl Follow Redirect(s)

Learn how to make curl automatically follow a redirect along with the most common pitfalls to avoid when doing so.

Docker

Copy File To Docker Container

how to copy files and directories from a local machine to a Docker container

Linux
Unix

Chown Recursively

How to recursively change the ownership of files

Unix
Linux

Chmod +X

An overview of chmod +x and how to use it

Homebrew

Brew Uninstall Package

remove installed packages with Homebrew

Bash
Linux
Unix

Reading User Input

Via command line arguments and prompting users for input

Homebrew

List Installed Packages With Brew

list the installed packages with Homebrew

Linux
Unix

Chmod 755

General meaning, examples, and flags for chmod 755

Bash
Linux
Unix

Bash Aliases

Create an alias for common commands

Bash
Linux
Unix

Bash Case Statement

A popular alternative to the if-then-else statement

Linux
Unix

How to Add a User to Sudoers

Grant elevated privileges to users

Bash
Unix
Linux

Bash printf

How to use string formatting with bash printf

Bash
Linux
Unix

Bash Comments

Comments will help make your scripts more readable

Bash
Linux
Unix

Bash Concatenate Strings

Join two strings together in Bash

Experience the power of Warp

  • Write with an IDE-style editor
  • Easily navigate through output
  • Save commands to reuse later
  • Ask Warp AI to explain or debug
  • Customize keybindings and launch configs
  • Pick from preloaded themes or design your own