Your coding questions, answered.
Terminus gives developers precise, actionable solutions to everyday command-line problems. A growing library of recipes, shell tips, and reference material for the tools you live in.
Featured
Bash
17Git
18Docker
37More Articles
170Curl With Headers
Send request headers with cURL
Show Curl Headers
Curl request and response headers
Copy File From Container To Host
Copy files and directories from a Docker container to my local machine
Remove All Docker Images
Learn how to remove all used, unused, and dangling Docker images using the `docker rmi` and `docker image prune` commands.
Undo A Git Pull
How to effectively remove the commits introduced by a pull in Git using git-reset and preserve your local changes using git-stash. Also, how to cancel an unmerged pull request on GitHub.
How To Run a SQL File With psql
Importing a SQL file into a PostgreSQL database with psql
POST JSON Data With Curl
How to send valid HTTP POST requests with JSON data payloads using the curl command and how to avoid common syntax pitfalls. Also, how to solve the HTTP 405 error code.
Grep Multiple Strings
How to filter lines and extract specific information from the output of commands or text files based on string patterns and regular expressions with grep.
Vim Find And Replace
You can use either the substitute command or the slash and dot method to search for patterns and replace with different values.
Linux Chmod Command
Understand how to use chmod to change the permissions of files and directories. See examples with various chmod options.
About Terminus
Terminus gives developers precise, actionable solutions to everyday command-line problems. A growing library of recipes, shell tips, and reference material for the tools you live in.