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

Show all comments

Showing thread 9 of 158

lozf1 reply#
Some great contributions here ... some that are missing (or at least scarce) which deserve more attention:

units - for a broad range of conversions without having to resort to Wolfram Alpha or a search engine
bc -l - the -l option really empowers this awesome little calculator.
mpv - awesome media player - point it at a media URL (it uses youtube-dl in the background, so perfect for viewing or listening with no ads,) but can also play from open directories / SMB shares, online radio, Play a series of images as video, Access any FFmpeg/Libav libavformat protocol or filter (including generating tones and images, and more. And once it's playing, has great interactive keyboard controls for many useful functions.

vram22#
>Some great contributions here ...

Agreed.
>bc -l - the -l option really empowers this awesome little calculator.
Right. Since bc is a Unix filter, you can also pipe expressions into it, to be evaluated, so it can be used in general Unix pipelines. E.g.:

  echo *arithmetic_expression* | bc -l
and the output comes on stdout, so it can be further piped.

Edit: You have to quote any shell special characters in arithmetic_expression with single quotes, or better, just enclose the entire arithmetic_expression in single quotes. If asterisk (for multiplication) is not quoted, for example, it will be treated as a filename wildcard instead, and likely lead to an error. A wrong and a right example:

  $ echo 2 + 3 * 4 | bc -l
  (standard_in) 1: syntax error

  $ echo '2 + 3 * 4' | bc -l
  14