6 ms·
Ask HN: What's your favorite CLI or ncurses program?
- g0rfel 11y agoATM when testing deployment flow: function sd() { n=2 while [ $n -gt 0 ] do sed -i ''"${1}"'d' $HOME/.ssh/known_hosts n=$(($n-1)) done } I like sed.
- anjanb 11y agocare to explain what the script does and how ncurses is involved here ?
- marios 11y agoIt removes a line from the known_host file. When spinning up a new VM/container or reaching a machine that has an IP/hostname you've used before (happens a lot in dev environments/NATed networks), you'll get a warning about a possible MITM attack. ncurses is not involved though.
- ta0967 11y agothat ''"${1}"'d' is needlessly complicated. this would do the same: "${1}d"
- balthamos89 11y agoIf you are careful, you can avoid that annoying problem altogether: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $1
- Yaa101 11y agoFor many years that is Midnight Commander for me.
- dagw 11y agoslrn was pretty much perfect back in the day.
- vortico 11y agomocp. It replaced iTunes for me (although I've long since switched to Linux).
- luxpir 11y agocmus in a similar vein, although annoyingly the Debian packaged version segfaults for me in some edge cases (adding large libraries, adding m4a files).
- hultner 11y agoI've experienced the same thing with ncmpcpp, it can be a bit annoying.
- 98Windows 11y agoI wish I could do that, but having an iPod forces me to run a windows virtual machine just for iTunes.
- luxpir 11y agoI used to sync my iPod with foobar2000 on Win7 to avoid having to deal with iTunes - I'm sure there are a few other Linuxy options to explore too. Vive la résistance :)
- 0942v8653 11y agoWait can you get this for Mac? I couldn't find it. Edit: Apparently it's on homebrew but as "moc" (I was searching for "mocp" before).
- olalonde 11y agoVim :)
- alex101 11y agoDoes Vim count? I guess so :)
- rkangel 11y agomenuconfig
- chilicuil 11y agoVim, mutt, wicd-curses, irssi, mplayer|mpd and conky
- realusername 11y agoWith ncurses I would say htop, you can see what happens on the machine quickly. And for pure CLI, sysdig is a must-have on every machine !
- bonf 11y agomitmproxy has a great terminal UI
- tokamach 11y agoncmpcpp is a great MPD client.
- nicwest 11y agotig: https://github.com/jonas/tig https://github.com/jonas/tig ranger: https://github.com/hut/ranger https://github.com/hut/ranger vim
- octetta 11y agoOh my god... how have I never seen ranger before? Back in my MS-DOS development days, I used an old program called LIST.COM. Ranger feels lighter than MC. I love it. Thanks for sharing!
- adamlindsay 11y agojq, vim, sysdig
- Jach 11y agoMoon-buggy.
- nicwest 11y agoThere goes my morning.
- threesixandnine 11y ago#"$%#"$%RFDS I am hooked :) Damn you!
- znpy 11y agoMutt or The emacsclient in terminal mode (ncurses)
- yami 11y agoDwarf Fortress
- anjanb 11y agomc aka [midnight commander!](https://www.midnight-commander.org/ https://www.midnight-commander.org/)
- iofj 11y agoSeconded. Although I still think Turbo C and Borland Pascal 7 win out, but it's not like I'm using those anymore. I miss the demo days.
- neunhoef 11y agoI only say that on many days I spend more time in my vim than in my bed. I usually run it in a terminal Window.
- luxpir 11y agoI've become a big fan of ncurses software over the years without really realising. Newsbeuter, irssi, cmus/mocp, vim, mutt. It's the resource efficiency and speed of use that make the difference with their shiny UI counterparts. That and still having a GUI, albeit a minimum viable GUI. It has inspired me more than once to pick up K&R's C and have a stab at a tool of my own that I'd love to have - but it's way down on the current list of priorities. ...Now wondering why the question - are you working on something? EDIT: Forgot a special mention for Finch (pidgin client), which along with the others runs nicely on Tmux (another forgotten mention) on a perma-on server. Rpi2 in my case.
- hultner 11y agoI'm using ncmpcpp with MPD for music but have experience some problems, the software feels a bit unstable and tends to slow down a lot, eventually causing segfault every few weeks. How's cmus/mocp here, can you use them with MPD/Spotify?
- luxpir 11y agoafaik mocp is it's own daemonized process, so you can close the client and the music keeps on playing; cmus is a standalone client that just reads from the filesystem and URLs and does not daemonize. cmus unfortunately skips and segfaults at times on the latest Debian packaged version, which is of course a few versions back (2.5.0 vs 2.7.0 iirc) and so I'm relying on mocp much more now. To answer your question more directly, again afaik, mocp is not accessible over MPD (separate daemon altogether) and does not play nicely with Spotify, but I'm not a user, so wouldn't know. Neither is mocp accessible over the network (afaik!).
- _ak 11y agonewsbeuter author here. If you want to develop your own text terminal tools, I can really recommend STFL: http://www.clifford.at/stfl/ http://www.clifford.at/stfl/ Without it, I would have probably been driven crazy when I attempted to put together a UI. It helped me get from an idea to a working prototype really quickly. In the case of newsbeuter, like 2 days.
- mahouse 11y agoIrssi
- jordibunster 11y agogit
- frantzmiccoli 11y agoncdu: ncurse disk usage (very convenient to see what is consuming too much space)
- vinitagr 11y agoI like it
- PopeOfNope 11y agoThis is awesome.
- frantzmiccoli 11y agoncdu: ncurse disk usage (very convenient to see what is consuming too much space)
- sssk 11y agomc
- SandB0x 11y agoThe bpython interpreter is great http://bpython-interpreter.org/ http://bpython-interpreter.org/ http://bpython-interpreter.org/screenshots.html http://bpython-interpreter.org/screenshots.html
- nicwest 11y agoif you are a vim person then I can recommend ptpython: https://github.com/jonathanslenders/ptpython https://github.com/jonathanslenders/ptpython https://raw.githubusercontent.com/jonathanslenders/ptpython/master/docs/images/example1.png https://raw.githubusercontent.com/jonathanslenders/ptpython/...
- kanche 11y agovim, htop and ncmpcpp :)
- posnet 11y agoack
- hultner 11y agoSemi related, anyone got a great lib/framework for graphs/charts/plots in ncursers with python? I'm considering to build some simple terminal monitor utility to keep track of health status but haven't really looked in to it yet.
- chazu 11y agoA couple of neat options here: Look into urwid first, which is a full TUI framework in python. Also consider using libcaca, which has excellent python bindings but is generally used for flashier stuff than simple utilities (text-based demoscene stuff, etc etc)... Apologies for not linking to the relevant projects, but I'm certain you'll find them with a quick search :)
- p4bl0 11y agoncurses: emacs. cli: cd, ls, mv, rm, grep, …, i.e., the core utils, + git, svn. I couldn't live without the core utils, and I use them a lot as I don't have a graphical file manager (I think the last time I used one was in 2007, I might try again someday). Also, I don't know if it counts in either category but: ssh, of course.
- fla 11y agoqemu
- yc1010 11y agoiftop
- orkoden 11y agofortune | cowsay
- contingencies 11y agoYep. Try also with https://github.com/globalcitizen/taoup https://github.com/globalcitizen/taoup
- _gdd_ 11y agobeet (https://github.com/sampsyo/beets https://github.com/sampsyo/beets)
- DanBC 11y agoOrpheus - an MP3 player. http://thekonst.net/orpheus http://thekonst.net/orpheus I used to love Wordstar and wordperfect. I'm a bit surprised at the glut of curses / cli text editors and the lack of curses / cli word processors.
- anthk 11y agoWordstar -> jstar from joe(1). Or try wordgrinder https://kmandla.wordpress.com/2008/11/30/howto-use-wordgrinder-like-a-pro/ https://kmandla.wordpress.com/2008/11/30/howto-use-wordgrind...
- hdoerey 11y agoTaskwarrior - www.taskwarrior.org, best CLI todo list manager.
- captn3m0 11y agogit, ranger, cmus, byobu (I shifted to i3 though)
- a3n 11y agoi3: hell to the yeah.
- ch215 11y agoI'll add two that have yet to be mentioned: moreutils and youtube-dl.
- rol 11y agoglances is nice if you want to get an overview of your system resources: https://github.com/nicolargo/glances https://github.com/nicolargo/glances bmon and iftop can be used to see network usage: https://github.com/tgraf/bmon/ https://github.com/tgraf/bmon/ http://www.ex-parrot.com/pdw/iftop/ http://www.ex-parrot.com/pdw/iftop/ Similar to iftop there is also iotop, but instead of showing network usage, it shows disk usage: http://guichaz.free.fr/iotop/ http://guichaz.free.fr/iotop/ Side note: There was a blog a couple years ago, which isn't being updated now, that would post reviews of CLI tools. Anyone that is interested in this topic should take a look at it: https://kmandla.wordpress.com/software/ https://kmandla.wordpress.com/software/ https://inconsolation.wordpress.com/ https://inconsolation.wordpress.com/ (new blog from the same person that did http://kmandla.wordpress.com http://kmandla.wordpress.com)
- Nicolargo 11y agoGlances: http://nicolargo.github.io/glances/ http://nicolargo.github.io/glances/
- a3n 11y agotig htop ipython vim little bash and python tools that I write myself, to automate my specific workflows.
- pppp 11y agonvlc - a ncurses vlc videolan media player built into vlc. nvlc is just a script supplied with vlc: #! /bin/sh exec /usr/bin/vlc -I "ncurses" "$@"
- blakesterz 11y agoGlances is a cross-platform curses-based system monitoring tool written in Python.... https://github.com/nicolargo/glances https://github.com/nicolargo/glances
- chazu 11y agoDoes 'sl' count? Because it should...
- Shorel 11y agoMidnight Commander, a clone of the original Norton Commander for D.O.S.
- MoSal 11y agonethogs: bandwidth usage by process(Does not work with UDP!) iptraf-ng: bandwidth usage by port. lsof: list open files(including network files).
- jacobroufa 11y agotig
- anthk 11y ago- nethack - mc - ag - ssh - renice,pkill,htop - ncdu
- deleted 11y ago[deleted]
- baochan 11y agortorrent has become my go-to torrent client.