Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

11–20 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#11
For working on servers, tmux + mosh is a killer combination: mosh makes your connection resilient to network issues and tmux gives you (back) scrollback and cross-session persistence.

mutt is hard to beat as an email client and circe (an emacs package) + znc on a digital ocean instance or equivalent makes for a great persistent irc session.

Re: Ask HN: Best Command-Line Applications?

#13

If you need to handle XML, xmlstarlet ( http://xmlstar.sourceforge.net ) is fantastic, and much more powerful than the standard line-oriented tools like sed and awk for this task. Similarly jq ( https://stedolan.github.io/jq/ ) for JSON data is great.

The only issue I have with xmlstarlet is that it can be sort of a pain when there are xml namespaces in the document. Most of the time, you just have to pass it the long option that ignores them all together

Re: Ask HN: Best Command-Line Applications?

#14
youtube_dl an ffmpeg would be my top two in terms of power.

Here are my top commands by frequency of use:

    4421 git
     952 open
     936 vim
     908 cd
     603 ls
     566 grep
     533 cp
     429 rm
     414 mv
     250 atom
     247 pip
     233 mkdir
     223 fab
     163 docker
     130 touch
     128 find
     123 youtube-dl
     113 python
     103 ssh
     100 cat
      99 wget
      81 pytest
      75 brew
total is of ~16k history lines... this means one in ever 4 commands I type is git! Wow I didn't know that. Probably `git status`...

Re: Ask HN: Best Command-Line Applications?

#16
httpie + jq is a great duo for exploring and manually probing APIs.

Gron (grep JSON) is handy when you get a massive API response and quickly need to figure out what subkeys interest you.

The silver searcher (ag) is my go-to code search tool. I'll have to try ripgrep to compare.

Pass is neat for injecting personal secrets into bash scripts securely.

Re: Ask HN: Best Command-Line Applications?

#17
Some of my favorites, apart from the obvious ones like Vim/Emacs and common Unix utils...

    notmuch - email database 
    ncmpcpp - MPD frontend (music player)
    taskwarrior - task and time management
    mutt - email
    ranger - file manager
    pass - password manager

Re: Ask HN: Best Command-Line Applications?

#18
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).

Re: Ask HN: Best Command-Line Applications?

#19

I'm not big on applications, period. Activities should be decomposed (or at least decomposable) into individual actions that I can stitch together in the shell.

I agree, we can use the pipes to put them together. That is how I do such thing, and design these programs, at least.

For example, one program is "playmod" which read a module music file from stdin, and write the raw audio data to stdout. The program "amigamml" is takes the MML code from stdin and write the module music file to stdout. And then, program "aplay" is playing the audio data from stdin on the speaker. Other example can be, "ls" to list files, "shuf" to put into a random order, and "xargs" to run another program for each one, and a shell script might then do "playmod" and "aplay", you can play the music at random!

Post reply on HN