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
locusofself1 reply#
I love 'bpython' , python CLI with syntax highlighting and autocomplete for testing out quick ideas.

Slightly off topic, but can I just say that iTerm2's native tmux integration is really awesome.

spondyl#
Ah yes! I knew I had forgotten to install something recently
kuroguro3 replies#
I wonder if there's any 2FA code storing/generating cli application? I know they aren't supposed to be used like that but storing them all on just a phone doesn't seem wise in the long run. Might be useful while building some automated scripts as well.

_edit_
oathtool seems promising (needs to be paired with something to manage and crypt the keys tho) http://www.nongnu.org/oath-toolkit/oathtool.1.html

heuiop#
If you use pass as a password manager, you can use pass-otp to keep the 2fa keys.
znpy1 reply#
I am getting fonder and fonder of xargs. It basically reads some input and appends it to a pre-supplied string. Then executes the newly created string as a command.

Trivial example:

    ls -1 | xargs -L1 echo processing

I am finding it quite useful to load and delete a bunch of netapp volume snapshots in a single line:

    ssh netappuser@netapphost volume snapshot show $volname | awk '/selector_pattern/{print $1}' | xargs -L1 ssh netappuser@netapphost volume snapshot delete $volname
aptmiguk1 reply#
With xargs (and find), I wish I would've found this sooner:

find test -print0 | xargs -0 file
"This allows file names that contain newlines or other types of white space to be correctly interpreted by programs that process the find output. This option corresponds to the -0 option of xargs."

tyingq#
Perl also supports -0 and is handy for some use cases because it won't spawn a process per line like xargs.

  # remove files without spawning lots of rm processes
  find . -name "*.xyz" -print0 -type f| perl -0 -ne 'chomp;print "$_\n";unlink;'
Already__Taken#
As a windows admin, docker has actually been super handy for running CLI tools with platforms (linux) that I can't easily get or have no will to compile natively myself on windows.

Load more comments