Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

121–130 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#121
post #25

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. Prob…

I use git so much that I made these aliases in zsh: alias g="git show" alias gh="git show HEAD" alias gs="git status" alias gl="git log" alias gco="git checkout" alias gd="git diff" alias gbl="git branch -v" alias gbd="git branch -D" alias gri="git rebase --interactive" alias grc="git rebase --continue" alias gra="git rebase --abort" alias gst="git stash" alias gsta="git stash apply" alias gx="gco -- \*; git reset HE…

The oh-my-zsh git plugin [1] aliases have become second nature.

No need to install oh-my-zsh you can just take the file or cherry pick (!) the useful ones.

I may drop oh-my-zsh completely and just set up zsh with the small subset of plugins I use.

[1] https://github.com/robbyrussell/oh-my-zsh/tree/master/plugin...

Re: Ask HN: Best Command-Line Applications?

#122

Ngrok - https://ngrok.com So easy and super convienient if you quickly need your local server accessible from somewhere else.

I keep a VPS running with Nginx on it for a specific port. Then I forward that port via SSH using remote forwarding to enable this exact functionality. It's free if you've already got a server running.

ngrok is free even if you don't have a server running... and you can tunnel raw TCP.

(not affiliated, I just really admire ngrok so I take it personally when people don't use it :))

Re: Ask HN: Best Command-Line Applications?

#124

Scoop - https://scoop.sh It's basically apt/brew on Windows, but it's particularly awesome because it does not manage dependencies. It just downloads and extracts installers, which works because every self-respecting program that works on Windows distributes binaries as an installer (or just a zip) somewhere. Result: everything just works, every program is self-contained, no admin rights needed, no package maintainer…

So far I've been using Chocolatey ( https://chocolatey.org ) for doing this (and ninite though that's not command line). But this looks pretty cool too. Thanks for sharing!

I created a small CLI tool that I package for Homebrew, Snap, Docker, Chocolatey and Scoop, and I prefer the packaging experience for Scoop, which is the most easy and straightforward one.

Compare the respective directories in https://github.com/philippgille/serve.

Re: Ask HN: Best Command-Line Applications?

#125

https://newsboat.org/ Newsboat, fantastic RSS reader, built on top of newsbeuter. http://www.mutt.org/ Mutt for email of course. https://vifm.info/ Vifm file manager, I am using it for everything, not having any other file manager on my system. https://github.com/pimutils/khal Khal for calendar. https://github.com/scheibler/khard/ Khard for contacts. https://github.com/pimutils/vdirsyncer Vdirsyncer to sync calendar…

Mutt is great, but if you want to use a "real" programming language to configure your client you might enjoy my alternative:

https://lumail.org/

https://github.com/lumail/lumail/

Re: Ask HN: Best Command-Line Applications?

#126

Cli-junkie brofist! I only drop out of the command line for occasional one-off browser stuff. Depending on your current familiarity with things, I can't recommend enough simply combing through the tools in coreutils , util-linux , find-utils etc. If you take just three or so a day, by the end of a few months you'll have a solid survey-understanding of what almost every *nix shell has available. Apart from that, here…

Try googler and you can browse from the command line.

Re: Ask HN: Best Command-Line Applications?

#127
Three tools I make sure are installed on everything I use via CLI: rsync, pv, & progress.

rsync (usually over SSH): the kitchen sync of file transfer commands. In Linux-land it is quite common to find it already installed, and if not it is in the standard repos. Available for Windows too.

pv (pipeviewer, http://www.ivarch.com/programs/pv.shtml): very useful for monitoring some classes of long-running process.

progress (https://github.com/Xfennec/progress): for similar reasons to pv, wanting to see how a long-running task (that isn't giving its own progress information) is getting on.

Re: Ask HN: Best Command-Line Applications?

#128
post #62
post #29

Earlier quoted context omitted.

I think I remember combining watch with tail before...not sure why since -f keeps a stream open.

Tail -f works by opening the file and remembering the byte offset, if it’s a log file that gets flushed/wiped then tail -f won’t see anything until the logs fill enough to exceed the previous file contents.

True, but the `-F` flag will work in that case.
Post reply on HN