Piggybacking on OP's suggestion of youtube-dl, i have this alias for quickly grabbing the audio-only version of a youtube video. (I use it when I come across a song on youtube that I can't find for sale or streaming anywhere else) alias dl-audio='youtube-dl --extract-audio --audio-format mp3' If you have ffmpeg installed, just drop the video ID after dl-audio, and you'll get an mp3 of the highest quality audio stream…
Ask HN: What are your favorite terminal programs?
161–170 of 203 posts
Re: Ask HN: What are your favorite terminal programs?
#162Earlier quoted context omitted.
> Also, for saving (and then viewing) man pages (about commands or other topics), without the formatting characters (such as ^H), on some Linux distros, I find this useful: ^H is one of the two backspace characters (the other being ^?) depending on which VT standard you're configured to use. So you shouldn't really need a dedicate script to do that as it's just a problem between your pseudo-TTY (Linux console) and yo…
Thanks for your inputs. A few comments: I first created that script called m years ago on some Unix boxes that I was using. Could have been HP-UX or other version. And I've used it over the years on many Unix and Linux versions that I worked on. It could be that in some cases, the script is needed due to a tty or TERM or other configuration issue. But I'm pretty sure that I've had the need for it (to remove those con…
The other thing worth trying is seeing whether your locals are set correctly and/or set the GROFF_TYPESETTER environment variable. Though this might only by GNU specific. Or just redirect the output (as suggested by the other reply) which is how I used to get around the issue on SunOS at least.
Re: Ask HN: What are your favorite terminal programs?
#163Earlier quoted context omitted.
Thanks for your inputs. A few comments: I first created that script called m years ago on some Unix boxes that I was using. Could have been HP-UX or other version. And I've used it over the years on many Unix and Linux versions that I worked on. It could be that in some cases, the script is needed due to a tty or TERM or other configuration issue. But I'm pretty sure that I've had the need for it (to remove those con…
Also see the man page for the col command, which is used in my m script: http://man7.org/linux/man-pages/man1/col.1.html
I used to use 'col' alot to resolve the tabs Vs spaces problem with different actors imposing different preferences in their source code. It's a handy tool but often overlooked.
Re: Ask HN: What are your favorite terminal programs?
#164zsh: Stepping up your terminal game - https://github.com/robbyrussell/oh-my-zsh
tmux: A terminal multiplexer, aka turns your terminal to a minimalist workspace (the only sane way I found to copy terminal output without using a mouse)
howdoi: Search stachoverflow/stackexchange from the CLI - https://github.com/gleitz/howdoi/
nmtui: WIFI/Networking from the terminal - https://github.com/heftig/NetworkManager
bluetoothctl: Bluetooth from the terminal
___________________
Lists for exploration:
- https://en.wikipedia.org/wiki/List_of_Unix_commands
- https://wiki.archlinux.org/index.php/List_of_applications
- https://github.com/alebcay/awesome-shell
- https://github.com/agarrharr/awesome-cli-apps
- https://github.com/herrbischoff/awesome-command-line-apps
(The github links seems similar, but there are some differences indeed)
Re: Ask HN: What are your favorite terminal programs?
#165https://news.ycombinator.com/item?id=17019197
It's a bit like a mix of (x)stow and apt for Windows. Or the good parts of arch aur with binary distribution.
Should probably also mention that I'm experimenting with asdf as a version manager - to avoid a long list of setup in bashrc to adjust paths to various interpreters. It follows a lot of best practices that various dedicated version managers seem to pick up eventually:
Re: Ask HN: What are your favorite terminal programs?
#166xrandr: Manege external monitors zsh: Stepping up your terminal game - https://github.com/robbyrussell/oh-my-zsh tmux: A terminal multiplexer, aka turns your terminal to a minimalist workspace (the only sane way I found to copy terminal output without using a mouse) howdoi: Search stachoverflow/stackexchange from the CLI - https://github.com/gleitz/howdoi/ nmtui: WIFI/Networking from the terminal - https://github.com…
Re: Ask HN: What are your favorite terminal programs?
#167 $ time locate -0 /{opt,usr}/\*.gitignore |
xargs -0 stat --format=%s | wc
387 387 1225
real 0m0.087s
$ time find /{opt,usr} -name '.gitignore' -print0 2>/dev/null |
xargs -0 stat --format=%s | wc
387 387 1225
real 0m0.748s
The speedup comes from reading a single database file rather than every directory within the tree to be searched. If the files you want were last touched today, a manually triggered rebuild of the database may be needed: $ sudo updatedb
The argument syntax for path specification of locate I find more convenient as well.Re: Ask HN: What are your favorite terminal programs?
#168 - googler: Google from the terminal
- Buku: Bookmark manager like a text-based mini-web
- nnn: The missing terminal file browser for X
- bcal: Storage expression calculator
- imgp: Multi-core batch image resizer and rotator
- keysniffer: Linux kernel mode debugfs keylogger
- ddgr: DuckDuckGo from the terminal
- pdd: Tiny date, time diff calculatorRe: Ask HN: What are your favorite terminal programs?
#169https://github.com/junegunn/fzf Fuzzy Finder for files, history and more. Integrates with Vim (and maybe other editors). It is wicked fast.
Re: Ask HN: What are your favorite terminal programs?
#170history | 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.