Lurker News
I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.

Comments (385) 158 threads

Earlier comments
sebcat2 replies#
A few of these (all?) are TUIs and not CLIs.

CLIs are command driven. TUIs are driven by user interactions. I'm sure more/better distinctions between the two can be made.

em-bee2 replies#
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.

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

Continue this thread — 6 replies

michaelmrose#
On one hand it's in the acronym command line interface and on the other

"was wondering if anyone had any solid recommendations for applications that one can use in a terminal window" it really looks like he meant to express console apps not cli I think you are correct.

bhengaij#
I wish more people made the distinction and more people made TUIs too...
libdjml2 replies#
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.

em-bee#
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.

zeveb1 reply#
Amusingly, you can actually do all of that within emacs:

- email: notmuch/Rmail/Gnus/&c.
- password manager: pass.el (uses pass under the covers)
- navigate directories: shell or eshell, with autocompletion and/or Helm
- task management: Org Mode
- music: emms
Emacs is crazy-powerful!

gglitch#
dired-mode by itself is pretty excellent for navigating directories.
skrebbel2 replies#
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.

superasn2 replies#
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!
PhilippGille1 reply#
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.

skrebbel#
Nice tool btw! I wish I'd known about it 5 days ago, when I taught a class that involved a little bit of web development. I used devd, but getting it in the PATH was a non trivial task for some of the trainees who used Windows. Serve has an installer, which presumably solves that even without scoop or chocolatey.
skrebbel#
Yeah I used chocolatey for a while too, but I found it needlessly overengineered, and often the abstraction was leaky. Scoop is dumber, in a good way.
JustFinishedBSG1 reply#
> no admin rights needed,

> Make sure Powershell 3 (or later) and .NET Framework 4.5 (or later) are installed.
Yeah not exactly. Wouldn't work in most ( all ? ) the places I worked at.

AnIdiotOnTheNet1 reply#
Really? PS 3.0 was integrated as of Win 8 / Server 2012. In 7 and 2008/2008R2 it was in service pack 1.
y4mi1 reply#
Yes it is installed. But script execution is pretty much always disabled through group policy

Continue this thread — 1 reply

xelxebar2 replies#
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 are some I use and enjoy:
[0]:http://abook.sourceforge.net/ -- Vintage address book; Plays well with mutt
[1]:http://git-annex.branchable.com -- A better Dropbox, and via git!
[2]:https://www.lesbonscomptes.com/recoll/ -- Index and search the contents and metadata of (pdf, word, etc) documents
[3]:https://www.roaringpenguin.com/products/remind -- Vintage and sophisticated tool for doing calendrical stuff.
[4]:https://github.com/trizen/youtube-viewer -- CLI YouTube with all the bells and whistles!
[5]:https://6xq.net/pianobar/ -- Pandora radio!

rmbeard1 reply#
Try googler and you can browse from the command line.
xelxebar1 reply#
If you like that, then you might like surfraw[0].

The main problem is that these don't really obviate the need for a browser, they just make it easier to open said browser tab from the command line.
[0]:https://gitlab.com/surfraw/Surfraw

zzo38computer#
In order to load browser bookmarks from the command-line, I use this shell script:

  #!/bin/bash --
  f0() {
    echo 'select moz_bookmarks.title || '"'"' = '"'"' || url from moz_places, moz_bookmarks on moz_places.id = moz_bookmarks.fk where parent = 2;' | sqlite3 /home/user/.mozilla/firefox/twht79zd.default/places.sqlite
  }
  f1() {
    firefox `echo 'select url from moz_places, moz_bookmarks on moz_places.id = moz_bookmarks.fk where moz_bookmarks.title = '"'$1'"';' | sqlite3 /home/user/.mozilla/firefox/twht79zd.default/places.sqlite`
  }
  f$# $1
You will need to modify it for your use, such as by changing the filenames. I also made another shell script to load Wikipedia.

However, is also my opinion making many thing which do not need a web browser and can just be the command-line programs.

vanderZwan1 reply#
> git-annex is not a filesystem or Dropbox clone. However, the git-annex assistant is addressing some of the same needs in its own unique ways. (There is also a FUSE filesystem built on top of git-annex, called ShareBox.)

So I assume you made it work like Dropbox for you anyway. How did that go?

xelxebar1 reply#
The "a better Dropbox" comment was quite tongue in cheek. You can think of git-annex as a way of managing files in git without managing the contents, which is exactly what we want for binary blobs like PDFs, word documents, whatever.

The syncronization between computers is done essentially how one would do it with git. Personally, I sync to a private VM host so the content is available "in the cloud".
At the moment I just sycn everything manually, but it's possible to setup git-hooks to make it automatic. git-annex is nice for power users, since it allows fine grained control of where to keep what content. The file metadata is stored in git, but you choose when and how to pull or push the actual files themselves.
That makes it possible to sync cross sections of an entire library, for example. This is how I manage what to put on my kindle and what to keep off it.

joshbaptiste3 replies#
Tmux: https://github.com/tmux/tmux/

ts: http://vicerveza.homeunix.net/~viric/soft/ts/ (TaskSpooler) queue commands in different terminals
socat: http://www.dest-unreach.org/socat/ -- Multi-purpose relay
most: http://www.jedsoft.org/most/ pager more features than less/more
sshfs: https://github.com/libfuse/sshfs remote filesystem using SFTP via FUSE
passgo: https://github.com/ejcx/passgo Simple golang password manager
rclone: https://github.com/ncw/rclone rsync for cloud storage
autosub: https://github.com/agermanidis/autosub Command-line utility for auto-generating subtitles for any video file

janlaureys1 reply#
Intrigued by autosub, is it better than Youtube's auto-captions ?
joshbaptiste#
It relies on Google’s translation API in GCP which isn’t free but does have a trial period. I assume YouTube would also rely on this service internally for auto captions.

Continue this thread — 1 reply

haloux1 reply#
Finally, someone who posted socat. Endlessly useful for doing a mitm of a connection for debugging. Paired with tpcdump, you can view _anything_
gHosts#
Ahh, socat, the zombo.com of the networking world.

Takes a log time to digest the man page, but once you have you can do anything.

Load more comments