Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

71–80 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#72
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…

nice ones! couple from my bash_alias

    alias ..="cd .."
    alias ..2="cd ../.."
    # ... you get the idea, mine goes up to 5
    function mkcd () { mkdir -p "$@" && eval cd "\"\$$#\""; }
    alias h="history|grep"

Re: Ask HN: Best Command-Line Applications?

#73
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 maintainers needed either.

Re: Ask HN: Best Command-Line Applications?

#74
nc - arbitrary TCP and UDP connections and listens

File transfer between machines:

    $ nc -l 1234 > filename.out
Using a second machine, connect to the listening nc process, feeding it the file which is to be transferred:

    $ nc host.example.com 1234 
Or a simple web server:

    $ while true ; do nc -l -p 1500 -c 'echo -e "HTTP/1.1 200 OK\n\n $(date)"'; done

Re: Ask HN: Best Command-Line Applications?

#76
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.

Unless you pass the option --follow=name in which case tail will if necessary reopen the file and follow it even when log-application has closed and moved it elsewhere and opened a new one of the same name.

Re: Ask HN: Best Command-Line Applications?

#77
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 and contacts with any web calendar service.

Re: Ask HN: Best Command-Line Applications?

#78
supmua. https://github.com/sup-heliotrope/sup beats mutt hands down. groups emails by tags instead of folders.

and it allows to open multiple views at once, keeping state in each. it also supports saved searches as a view.

it's not actively maintained right now, but it is stable. i haven't had any problems yet.

sup is the ancestor of the notmuch libraries which can be integrated into mutt. but i don't know how well that works. perhaps https://news.ycombinator.com/item?id=18483833 can shed some light on that.

greetings, eMBee.

Re: Ask HN: Best Command-Line Applications?

#79

Sort of on topic...Does anyone know of a good interactive resource for learning some of the tools that are included by default on UNIX systems? RTFM is useful, of course.

Not sure what you mean interactive - trying things out on bash itself is a good way to learn. I put together a (quite long) single-webpage not-so-quick guide to bash shell,[0] which covers a lot of the basic stuff (well, with separate pages for grep/sed and AWK), at the bottom of the page are links to the best bash websites and names of the best books that I've found. Hope that's of some use. But yeah, the man pages become perfectly adequate guides/refreshers once you've learnt the basics of a command/tool - especially using them with "/" for searching for what you want.

[0] http://www.adamponting.com/mac-terminal/

Post reply on HN