Live data from Hacker News

Ask HN: What are your favorite terminal programs?

news.ycombinator.com

191–200 of 203 posts

Re: Ask HN: What are your favorite terminal programs?

#193
post #186
post #177

Earlier quoted context omitted.

You described the issue and cause better than I did :) I didn't know about the ANSI behavior, interesting. >FWIW, if you need a fool-proof way to convert a man page to plain old ASCII with no escapes at all, it's easiest just to redirect the output of "man" to a file: > man ls > ls.txt IIRC, even with that way, the control chars still appeared in the file (at least on some Unix version), which is why I wrote the scri…

> the control chars still appeared in the file (at least on some Unix version) That's a good point. My whole reply is a bit GNU-centric: the "col -bx" solution should work with everything except groff in ANSI mode (looks like the flag to go back to the standard troff behaviour is GROFF_NO_SGR [1][2], in case anybody is interested). [1] See: https://linux.die.net/man/1/grotty [2] SGR is "Select Graphics Rendition", ap…

[deleted]

Re: Ask HN: What are your favorite terminal programs?

#194
post #153

Earlier quoted context omitted.

The problem isn't using indentation. The problem is the platform's rendering on mobile. Agree on links tho.

Given that we're members of HN (as opposed to someone running the site), I try to provide constructive advice that others can actually use to improve the situation. The admins are well aware of the situation; continuing to argue that it's a problem with the platform while refusing to do what you can to work with the given situation seems like a needless waste of a comment.

[deleted]

Re: Ask HN: What are your favorite terminal programs?

#196
post #46

micro, mc, ag silver searcher, stat, find, aria2c, xev, w3m, wmctrl, nohup, xdotool, docker, php, ffmpeg, phantomjs, du, ls [From my history file, all others are homemade scripts and little functions in .bashrc]

ncdu is much better than just du.

Genuinely the only way I use du is like this:

  du -sh *
which shows total disk usage for every file and folder in the current directory. I've actually aliased it as `dush` because I use it so often.

Bonus tip: if you're using btrfs, it has a built-in du that keeps track of cow statistics, so you can see which files/folders are deduped and which aren't. It's invoked with

  btrfs filesystem du -s *
or (because the btrfs binary understands abbreviations)

  btrfs fi du -s *

Re: Ask HN: What are your favorite terminal programs?

#197

history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 1 167 16.7% git 2 130 13% ll 3 94 9.4% clear 4 90 9% make 5 80 8% cd 6 57 5.7% e 7 52 5.2% cat 8 45 4.5% man 9 38 3.8% valgrind 10 37 3.7% rm Where ´e´ is an alias for ´vim´.

1 401 16.04% git 2 337 13.48% fg 3 241 9.64% cargo 4 234 9.36% cd 5 197 7.88% ls 6 195 7.8% tig 7 165 6.6% task 8 81 3.24% vim 9 38 1.52% imag 10 31 1.24% pwd "imag" is my own tool, a personal information management suite for the commandline.

Perhaps you want new tabs for your shell instead of typing 'fg' every so often.

Re: Ask HN: What are your favorite terminal programs?

#198

Emacs, tmux, tmuxp, ripgrep, eless[1], ncdu, exa (ls replacement. I often use 'exa --tree'), sed, awk, peco (I use this in aliases to select one or more items from a command outputting multiple values), hugo, dtrx, textract (npm), wget, shellcheck, rsync, htop. I heavily use git, but via Magit in Emacs. [1]: My own little utility to use bare bones Emacs as less/pager: https://eless.scripter.co

Wow, peco is so convenient, now I don't have to keep trying to grep every possibilities.

Re: Ask HN: What are your favorite terminal programs?

#199
I can't live without `sudo` :p

    - `ffmpeg` one utility for video manipulation to rule them all.

    - `ping` to check whether I am connected to the internet or not.

    - `curl -vvv maktabkhooneh.org` to check where is the connection problem happens.

    - `howdoi` search StackOverflow for snippets to solve your problem from the command line.

Re: Ask HN: What are your favorite terminal programs?

#200
post #158

Earlier quoted context omitted.

mpv + youtube-dl plugin are also a nice combination, especially for live streams.

I prefer Streamlink[0] for live streams. [0]: https://github.com/streamlink

Could you please elaborate why you prefer streamlink over youtube-dl?
Post reply on HN