# \#command-line

**URL:** https://forum.codeselfstudy.com/tag/command-line/15.md

[Latest](https://forum.codeselfstudy.com/latest.md) · [Categories](https://forum.codeselfstudy.com/categories.md) · [Tags](https://forum.codeselfstudy.com/tags.md)

---

## [\[POLL\] What Terminal Do You Use? (Linux)](https://forum.codeselfstudy.com/t/poll-what-terminal-do-you-use-linux/2541)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 17\
**Last updated:** [September 17, 2021, 7:39pm UTC](https://forum.codeselfstudy.com/t/poll-what-terminal-do-you-use-linux/2541 "2021-09-17T19:39:54Z")

</div>

I’m curious what terminal emulators people like. I use gnome-terminal (with tmux and i3) and it works for me — are there any reasons to investigate switching to a different one? poll

---

## [CLI: improved (command line tools)](https://forum.codeselfstudy.com/t/cli-improved-command-line-tools/1001)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 11\
**Last updated:** [August 2, 2021, 2:46am UTC](https://forum.codeselfstudy.com/t/cli-improved-command-line-tools/1001 "2021-08-02T02:46:23Z")

</div>

Interesting command line tools: CLI: improved Summary: bat instead of cat prettyping instead of ping fzf instead of ctrl-r htop instead of top diff-so-fancy instead of diff fd instead of find ncdu or nnn instead of du t…

---

## ["Zsh Tricks to Blow your Mind"](https://forum.codeselfstudy.com/t/zsh-tricks-to-blow-your-mind/2580)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 9:56am UTC](https://forum.codeselfstudy.com/t/zsh-tricks-to-blow-your-mind/2580 "2021-02-18T09:56:02Z")

</div>

There are some useful zsh tips here:

---

## [Check out fzf](https://forum.codeselfstudy.com/t/check-out-fzf/2554)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 5:25am UTC](https://forum.codeselfstudy.com/t/check-out-fzf/2554 "2021-02-05T05:25:29Z")

</div>

If anyone isn’t using fzf yet, check it out. It works well with other command line tools like fd, ripgrep, and bat. Here is a video walk through: Here’s a text version of the tutorial: If the terminal …

---

## [How to prettify huge JSON files (jq stream)](https://forum.codeselfstudy.com/t/how-to-prettify-huge-json-files-jq-stream/1429)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 2\
**Last updated:** [December 22, 2020, 4:00am UTC](https://forum.codeselfstudy.com/t/how-to-prettify-huge-json-files-jq-stream/1429 "2020-12-22T04:00:22Z")

</div>

I have a large, compact (one-line) JSON file (2 GB) that is too large for most tools to process quickly. I thought if I could prettify it, it would be possible to process it with command line tools more quickly. Trying …

---

## [How to open multiple webpages in a browser automatically](https://forum.codeselfstudy.com/t/how-to-open-multiple-webpages-in-a-browser-automatically/2444)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 9:03pm UTC](https://forum.codeselfstudy.com/t/how-to-open-multiple-webpages-in-a-browser-automatically/2444 "2020-10-16T21:03:15Z")

</div>

Someone asked a question about how to open multiple web pages in browser tabs at once. I’ll post an answer here in case anyone else is searching for the answer online. This method will work on Linux and Mac, and possibl…

---

## [Becoming faster with the command line](https://forum.codeselfstudy.com/t/becoming-faster-with-the-command-line/990)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 11\
**Last updated:** [April 2, 2020, 7:10pm UTC](https://forum.codeselfstudy.com/t/becoming-faster-with-the-command-line/990 "2020-04-02T19:10:15Z")

</div>

A few people have asked about the command line recently. Here are some common keyboard shortcuts that make using the command line much faster: ctrl + a – move to beginning of line ctrl + e – move to end of line ctrl …

---

## [Command Line Study Guide](https://forum.codeselfstudy.com/t/command-line-study-guide/1439)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 7\
**Last updated:** [February 11, 2020, 9:42pm UTC](https://forum.codeselfstudy.com/t/command-line-study-guide/1439 "2020-02-11T21:42:00Z")

</div>

This page is from the old wiki. It’s a guide for becoming more familiar with the command line. These are some basic GNU/Linux terminal commands that are useful to know as a minimum. Feel free to edit this post as a wiki …

---

## [Using the terminal for everything](https://forum.codeselfstudy.com/t/using-the-terminal-for-everything/1005)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 1\
**Last updated:** [December 22, 2019, 10:25pm UTC](https://forum.codeselfstudy.com/t/using-the-terminal-for-everything/1005 "2019-12-22T22:25:51Z")

</div>

“Can you use the terminal for everything?” Here’s a summary, with some additions in brackets: WordGrinder for word processing. \[Alternatively, you can use Vim or any text editor and then run it through pandoc direct…

---

## [Htop Explained](https://forum.codeselfstudy.com/t/htop-explained/1950)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [November 17, 2019, 9:50pm UTC](https://forum.codeselfstudy.com/t/htop-explained/1950 "2019-11-17T21:50:28Z")

</div>

For users of the top or htop commands:

---

## [Programmatically generating mesh (STL) 3D object files](https://forum.codeselfstudy.com/t/programmatically-generating-mesh-stl-3d-object-files/1818)

<div class="topic-metadata">

**Author:** [@OutsourcedGuru](https://forum.codeselfstudy.com/u/OutsourcedGuru)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 6:09pm UTC](https://forum.codeselfstudy.com/t/programmatically-generating-mesh-stl-3d-object-files/1818 "2019-09-12T18:09:55Z")

</div>

I did something clever a while back that I wanted to share. I wanted to use the three.js module in JavaScript server-side in Node which is problematic since there’s no Window and therefore no Canvas object to render to. …

---

## [How to write a shell script that you can use anywhere on your computer](https://forum.codeselfstudy.com/t/how-to-write-a-shell-script-that-you-can-use-anywhere-on-your-computer/1534)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 1\
**Last updated:** [September 11, 2019, 6:40pm UTC](https://forum.codeselfstudy.com/t/how-to-write-a-shell-script-that-you-can-use-anywhere-on-your-computer/1534 "2019-09-11T18:40:52Z")

</div>

This post is to answer a question that someone asked about automating a task with Bash. It’s just how I would do it, and I’m not an expert shell scripter, so if there is a better way, please comment below. :slight\_smile: …

---

## [How to extract lines from a large file in the terminal](https://forum.codeselfstudy.com/t/how-to-extract-lines-from-a-large-file-in-the-terminal/1800)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 4:39am UTC](https://forum.codeselfstudy.com/t/how-to-extract-lines-from-a-large-file-in-the-terminal/1800 "2019-09-05T04:39:50Z")

</div>

Here’s a quick tip on slicing a few lines out of a file that is too large to open in a text editor. This extracts lines 10,350 to 10,400 and saves them in a file named sliced.txt: $ sed -n 10350,10400 dump.sql \> sliced…

---

## [Terminal Based Organization Systems](https://forum.codeselfstudy.com/t/terminal-based-organization-systems/1780)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 4\
**Last updated:** [August 29, 2019, 4:30am UTC](https://forum.codeselfstudy.com/t/terminal-based-organization-systems/1780 "2019-08-29T04:30:01Z")

</div>

I currently use Org Mode for note taking, but I’ve been wondering about switching to a similar system that uses a collection of custom scripts and command line tools. Has anyone tried these tools or know of other simila…

---

## [A shell script to spellcheck multiple webpages](https://forum.codeselfstudy.com/t/a-shell-script-to-spellcheck-multiple-webpages/1546)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 1\
**Last updated:** [March 20, 2019, 6:43pm UTC](https://forum.codeselfstudy.com/t/a-shell-script-to-spellcheck-multiple-webpages/1546 "2019-03-20T18:43:48Z")

</div>

Here’s a quick script to check the spelling on multiple web pages at once. To run it on Linux or Mac (and possibly also on Bash for Windows): The script requires that lynx and aspell are installed on the computer. Save…

---

## [Quick Shell Scripting Examples](https://forum.codeselfstudy.com/t/quick-shell-scripting-examples/1528)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 1\
**Last updated:** [March 17, 2019, 8:23pm UTC](https://forum.codeselfstudy.com/t/quick-shell-scripting-examples/1528 "2019-03-17T20:23:22Z")

</div>

These quick examples aren’t all practical, but they show examples of what you can do with small shell scripts (make HTTP requests, download files, process JSON, move files, etc.). This takes a command line argument (a g…

---

## [Desktop Background Switcher for i3wm](https://forum.codeselfstudy.com/t/desktop-background-switcher-for-i3wm/1044)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [September 12, 2018, 6:42pm UTC](https://forum.codeselfstudy.com/t/desktop-background-switcher-for-i3wm/1044 "2018-09-12T18:42:20Z")

</div>

I wanted rotating background images on my desktop in i3wm (a great tiling window manager) and had trouble configuring some of the other options, so I wrote this script: #!/bin/zsh # Put this file at \`~/bin/desktop\_back…

---

## [Useful command-line tools for managing files on remote servers](https://forum.codeselfstudy.com/t/useful-command-line-tools-for-managing-files-on-remote-servers/1041)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [September 11, 2018, 9:19pm UTC](https://forum.codeselfstudy.com/t/useful-command-line-tools-for-managing-files-on-remote-servers/1041 "2018-09-11T21:19:17Z")

</div>

Related to some recent discussions at meetups, here are a few command-line tools that make working with servers easier: ssh – connect to a remote server $ ssh -p 22 \<username\>@\<ip\_address\> scp – copy files between co…

---

## [Interesting Command Line Tools](https://forum.codeselfstudy.com/t/interesting-command-line-tools/112)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Replies:** 0\
**Last updated:** [December 23, 2017, 9:50pm UTC](https://forum.codeselfstudy.com/t/interesting-command-line-tools/112 "2017-12-23T21:50:24Z")

</div>

Here are some interesting tools for people who like to stay in the terminal as much as possible: TIG (Text-mode Interface for Git) This tool lets you navigate your Git logs with Vim keybindings. I use this instead of gi…
