Lurker News
I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.

Comments (385) 158 threads

Earlier comments
petdance#
Various grepalike tools like ack, ag and rg have been mentioned. Most comments seem to be based on which tool runs simple searches faster, but note that their feature sets vary widely.

Here's a handy chart that compares the features of each of these tools, along with git grep and plain ol' GNU grep.
https://beyondgrep.com/feature-comparison/

jolmg#
I guess these are so obvious no one mentioned them, but: ssh, git, zsh, bash, curl, wget, gpg, gzip, xz, btrfs, qemu, pv, tar, diff, comm, column, sort, uniq, sed, bc, tr, od, xxd, tcpdump, tshark, ping, nmap, ip, iw, xdotool, xrdb, grep, pgrep, pkill, lsof, inotifywait, journalctl, systemctl, convert, ed, and probably countless more I'm taking too much for granted to remember.
sndean2 replies#
My top 4:

     40.2%  ls
     22.8%  cd
     15.6%  python
     3.6%   nano
Since no one's mentioned it yet: I don't necessarily think nano is great, but it's always there and it opens immediately. Almost all small, quick edits I make (where opening VSCode/Emacs/whatever doesn't make sense) are done in nano. Pretty useful.
Lordarminius#
Nano simply and efficiently gets the job done in 70% of cases.

Nano Vim Xdg youtube-dl wttr git curl top watch

Tepix#
nano is not on many of the systems i deal with - vi is.
ComputerGuru3 replies#
* fish - essential prerequisite in order to live in the command line

* autojump (aka j) - for changing directories quickly
* open - required to interact with the non-cli world, ships by default on macOS and here's one for Windows/WSL: https://github.com/neosmart/open
* imgpaste - for pasting screenshots into a PNG or JPEG directly (https://github.com/neosmart/imgpaste)
* pbpaste - for pasting into the shell (or if you're on Linux or Windows: https://github.com/mqudsi/fish-config/blob/master/functions/...)
* fzf - a general-purpose "selector" ui for choosing "things" from a list based off, such as your history (bound to ctrl+r) or files in a directory (bound to ctrl+p with input generated by bfs or fd)
* neovim - my configuration here: https://github.com/mqudsi/nvim-config
* ripgrep - for finding strings in files
* fd - for finding files quickly
* sed (with -r) - insanely powerful for common string operations
* tr - lets you deal with line endings, which sed can't
* youtube-dl - download youtube videos from the CLI
* curl/httpie - (scriptable) network requests
* aria2c - high-speed (multi-threaded) downloads and torrent downloads, it just works
* jq - for manipulating json in shell scripts
* ncdu - find space taken up by directories/files, but it's aging and in need of a dire rewrite like fd/rg did for find/grep
* pbedit - edit the contents of the clipboard in your favorite editor https://github.com/mqudsi/fish-config/blob/master/functions/...
* weechat - irc in your command line
* ffmpeg - except I am much more likely to use it via one of the wrapper fish scripts I've written such as ffencode, fftrim, ffconcat, ffmute, etc. because it is (necessarily) so damn verbose and infinitely tunable.
* tmux - if I'm working remotely or on a headless machine where I can't just ctrl+shift+n to open a new terminal window (which I prefer)

zzo38computer#
Maybe is meant you can remove the carriage returns easily, in case you want only the line feed on the end of the line.
ComputerGuru1 reply#
I mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.
jfhufl3 replies#
Like so?

    % echo 'one\ntwo\nthree' | sed -e 's,$, four,'
    one four
    two four
    three four

Continue this thread — 3 replies

efreak1 reply#
Forget tr/sed, just use `perl -i.original -pe`
ComputerGuru#
On bare-bones unixish systems, you’ll be more likely to find sed/tr than Perl (for me, a clean FreeBSD install).

Load more comments