Ask HN: What are your favorite terminal programs?
191–200 of 203 posts
Re: Ask HN: What are your favorite terminal programs?
#192Re: Ask HN: What are your favorite terminal programs?
#193Earlier 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…
Re: Ask HN: What are your favorite terminal programs?
#194Earlier 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.
Re: Ask HN: What are your favorite terminal programs?
#195Re: Ask HN: What are your favorite terminal programs?
#196micro, 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.
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?
#197history | 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.
Re: Ask HN: What are your favorite terminal programs?
#198Emacs, 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
Re: Ask HN: What are your favorite terminal programs?
#199 - `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.