Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

221–230 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#221
post #89

If you aren't using tmux or screen, you probably should be, especially over SSH sessions. They allow you to have multiple consoles open and switch between them, split window, and disconnect from SSH and then reconnect with all your things still open and running (as long as the server stayed running).

As someone who hasn't invested much time into tmux/screen, what are the benefits of it over just using eg; multiple terminal tabsn or using the terminal's built in split windowing? I'm sure there's probably a benefit but I dunno what it is

I agree with everyone else that it's great on remote systems, but the reason I use it locally too is because I can set up all a project's "tabs" with just one command. I have dozen-line scripts for each client/project that will either create or attach to a tmux session, and when creating set up all the windows how I want: setting their names, cd'ing, opening psql, tailing a log, changing the bottom color (green for development, yellow for staging, red for production), etc. For Rails work I typically have separate windows for models, controllers, views, stylesheets, and javascripts. It makes it really easy to get started after a reboot, or just hide projects for a while and bring them back quickly.

Re: Ask HN: Best Command-Line Applications?

#222
post #162

Earlier quoted context omitted.

that's a fair point, but i don't think that's what the OP meant. CLI is commonly used to cover TUI when pittet against GUI. greetings, eMBee.

I don't believe that's true. TUI has more in common with GUI than CLI.

sure, conceptually it does, but that's not the point.

what matters for most is the fact that i can run the application in a text only terminal, on any machine (remote or local), from any device (be it linux, windows, mac or even a mobile phone (ok, that's rarely practical, but it's possible))

a GUI does not offer that advantage.

greetings, eMBee.

Re: Ask HN: Best Command-Line Applications?

#223
post #165
post #48

Earlier quoted context omitted.

It's been mentioned previous, but you should check out ripgrep - it's even faster than Silver Searcher a lot of the time https://github.com/BurntSushi/ripgrep

Does anyone not working on million-line codebase ever find themselves limited by grep? I am genuinely curious.

Do you mean more or less than 1M LOC?

grep is usable on very large code bases, because after the first scan, all the sources are loaded in the file system cache, so the successive grep are done in RAM and are very fast.

So much so that I almost never use ctags despite the improved semantic search (you can find more easily the exact identifiers and distinguish them by category). grep is just as fast and precise enough.

Re: Ask HN: Best Command-Line Applications?

#225

Tmux: https://github.com/tmux/tmux/ fish-shell: https://github.com/fish-shell/fish-shell/ ranger: https://github.com/ranger/ranger/ tig: https://github.com/jonas/tig/ ag or rg: https://github.com/ggreer/the_silver_searcher https://github.com/BurntSushi/ripgrep And all my configurations, especially for fish-shell: http://github.com/c02y/dotfiles

I love fish-shell, but after years of using it I switched to Oh My ZSH! . The bash compatibility makes it a whole lot easier to use when you're the type of person who has to look up "how to do X on the command line" on the internet more often than you'd like to admit (that would be me). https://ohmyz.sh/

Same except using zplug.

I still use fish for scripting as its syntax is far more casual looking.

Re: Ask HN: Best Command-Line Applications?

#226
I use mcabber and irssi for chat. Mcabber doesn't really support much in the way of features (so even on a modern XMPP server you're missing simple things like fetching history), but its vi style shortcuts and nice layout mean I can't give it up. Combined with jmp.chat I can even send text messages from it.

Re: Ask HN: Best Command-Line Applications?

#227
post #98
post #3

A few of the ones I use almost daily - Pandoc a handy document format converter: https://pandoc.org/ - Ripgrep, a faster grep: https://github.com/BurntSushi/ripgrep - There are quite a few prompt-toolkit based CLI which have been really nice: * mycli ( https://github.com/dbcli/mycli ), pgcli ( https://github.com/dbcli/pgcli ) * ptpython/ptipython ( https://github.com/prompt-toolkit/ptpython ) - Youtube-dl: http://rg3…

Wow. mycli and pgcli are so good!

It is. Omitting the semi colon to execute a statement alone feels good.

Re: Ask HN: Best Command-Line Applications?

#228
post #87

Nice question! Here my personal setting: - Email : mutt [ http://www.mutt.org/ ] - Passwords manager : pass [ https://www.passwordstore.org/ ] - Navigate directories : autojump [ https://github.com/wting/autojump ] - Task manager : task [ https://taskwarrior.org/ ] - Music : cmus [ https://cmus.github.io/ ] - Text editor : emacs -nw [ https://www.gnu.org/software/emacs/ ]

Excuse my very basic question, but how do you manage spam when using mutt? Do you interface to a cloud-based service in mutt, or have some kind of other spam filter? I’ve always liked the idea of moving my email to mutt and using personal domains, but not convinced I could manage spam well.

the same way you manage it with a GUI mail client. if you use a mailservice that includes a spam-filter, you can use mutt's imap support to access it, and thus access the filtered mailbox like any GUI or webmail client would.

for your own personal domain, either use a service that supports personalization. (gmail does, but there should be others) and you are covered again.

if you want to host your own mail server, then you'll probably want to run your own spam filter on that server. it works by having the mail server forward the mail to the filter (which can be local or remote) and then deal with the mail based on the response from the service.

greetings, eMBee.

Re: Ask HN: Best Command-Line Applications?

#229
post #189

up - https://github.com/akavel/up Ultimate Plumber is a tool for writing Linux pipes with instant live preview It's a new CLI tool I've recently written, and it reached a Top 1 position on HN just after the public release. It works with other classic CLI tools by boosting the speed with which they can be composed together. It's especially useful for quick exploration of logs, CSV files, and other text files or pipeli…

is it like less?
Post reply on HN