Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

361–370 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#361
post #349

Earlier quoted context omitted.

Yeah, have you seen the readme? > interactively and incrementally explore textual data Just like less. > This is achieved by boosting any typical Linux text-processing utils such as grep, sort, cut, paste, awk, wc, perl, etc., etc., by providing a quick, interactive, scrollable preview of their results. Yep, that's less. > use PgUp/PgDn and Ctrl-[←]/Ctrl-[→] for basic browsing through the command output; Sure that's…

Ahahah, lol, ok, get it :D So, apparently I totally reinvented less, I concede :) To say even more, it's actually very much a crippled less (not all of its functions available!). With just one feature added, namely: > in the input box at the top of the screen, start writing any bash pipeline; then press Enter to execute the command you typed, and the Ultimate Plumber will immediately show you the output of the pipeli…

I haven't used the command, but from what I understand, it is like a shell with less-like interface that you can pipe to, and work on a copy of the output stream.

Re: Ask HN: Best Command-Line Applications?

#362
post #349

Earlier quoted context omitted.

Ahahah, lol, ok, get it :D So, apparently I totally reinvented less, I concede :) To say even more, it's actually very much a crippled less (not all of its functions available!). With just one feature added, namely: > in the input box at the top of the screen, start writing any bash pipeline; then press Enter to execute the command you typed, and the Ultimate Plumber will immediately show you the output of the pipeli…

I haven't used the command, but from what I understand, it is like a shell with less-like interface that you can pipe to, and work on a copy of the output stream.

I guess one way to articulate what you are doing is building /up/ more commands in a step by step fashion with immediate feedback. It is not necessarily a bad thing, especially if processing or preparation times for the input are long. However, you could also accomplish the same thing with a smaller sample size and repeatedly applying your commands using a regular shell instead of an interactive less.

Re: Ask HN: Best Command-Line Applications?

#363

Earlier quoted context omitted.

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/

I like using a different plugin manager with OMZ. https://github.com/tarjoilija/zgen If you use a lot of addons, this can load up prompts faster without losing any OMZ goodness.

I also love zgen and used to use some parts of OMZ with it. But after debugging weird issues a bunch of times and always finding a funny opinionated config in OMZ I changed everything to Prezto. Zgen supports Prezto natively.

FWIW, here's my .zshrc. https://github.com/dancek/dotfiles/blob/master/.zshrc

Re: Ask HN: Best Command-Line Applications?

#364
post #195

Just about every Rust cli app written by sharkdp: https://github.com/sharkdp/fd https://github.com/sharkdp/bat https://github.com/sharkdp/diskus https://github.com/sharkdp/hyperfine For viewing csv's as tabular, paged data from the terminal, check out VisiData (python) https://github.com/saulpw/visidata

fd is awesome so I have to check the others out too. Thanks for the tip!

Re: Ask HN: Best Command-Line Applications?

#365

Aria2: https://github.com/aria2/aria2 an excellent download manager. Supports many functionalities such as downloading torrents, multi-connection downloads, and resuming uncompleted downloads. It also support RPC calls which enables it to be an excellent download manager back-end.

I saw Aria2 has two packages in F-driod. I installed them and looked at the docs but I couldn't figure out how to download stuffs with Aria2. A small example of it's use will be highly appreciated. Thank you.

Re: Ask HN: Best Command-Line Applications?

#366
post #277

Earlier quoted context omitted.

I might be revealing my lack of experience here, but why would you need an app to view your csv? What is the benefit of this over running the data frame or df.head?

Visidata is much more than a simple CSV viewer. It can open xls/xlsx/sas7bdat/spss files, and allows you to quickly edit the in-memory copy of the table using Vim-like keyboard shortcuts. It also allows you to create plots using Braille Unicode symbols. It's a great tool!

Thanks for sharing! Will check it out.

Re: Ask HN: Best Command-Line Applications?

#367
post #69

netcat

the one that comes with nmap?

Doesn't matter because every re-implementation of that old unix tool is made for same purpose and mostly accept same arguments.

For example you can make tar archive and pipe it to nc. On other server nc would accept data and pipe it to tar for unpack. This shows real power of unix pipes.

Re: Ask HN: Best Command-Line Applications?

#368

Aria2: https://github.com/aria2/aria2 an excellent download manager. Supports many functionalities such as downloading torrents, multi-connection downloads, and resuming uncompleted downloads. It also support RPC calls which enables it to be an excellent download manager back-end.

I saw Aria2 has two packages in F-driod. I installed them and looked at the docs but I couldn't figure out how to download stuffs with Aria2. A small example of it's use will be highly appreciated. Thank you.

you need both. One of them pnly supplies a UI, while the other only supplies the binary. I personally recommend running aria2c via termux and using ziahamza.github.io/webui-aria2

Re: Ask HN: Best Command-Line Applications?

#369

* fish - essential prerequisite in order to live in the command line * autojump (aka j) - for changing directories quickly * open - required to interact with the non-cli world, ships by default on macOS and here's one for Windows/WSL: https://github.com/neosmart/open * imgpaste - for pasting screenshots into a PNG or JPEG directly ( https://github.com/neosmart/imgpaste ) * pbpaste - for pasting into the shell (or if…

Forget tr/sed, just use `perl -i.original -pe`

Re: Ask HN: Best Command-Line Applications?

#370
for a software keyboard, since I've seen several lists of aliases:

```alias ,v='mv' alias r,='mv'```

Otherwise:

ttyclock tmux/byobu pv ncdu htop megadl webcomix and/or dosage - download webcomics into cbz files for local viewing. Installable via pip. elinks, links2 - Browsers. especially useful if compiled with javascript support. nnn aria2c grc most mlocate (prrovides thelocate and updatedb connands. I can't recall why i like it more than slocate or find-utils)

Generally built-in:

watch tee sed (or just use `perl -pi -e` 7z

'Fun' cli programs:

nyancat sl cowsay toilet ttysolitaire

Post reply on HN