Live data from Hacker News

Less Commonly Used Unix Commands

danielmiessler.com

51–60 of 95 posts

Re: Less Commonly Used Unix Commands

#51
post #7

I found jq the other day ( http://stedolan.github.io/jq/ ), which is a commandline utility for manipulating json data, resembling awk. Considering the number of API's that return json data these days, it's simplified my life a great deal. It's proven especially useful for automation shell scripts, when working with things like the aws command line client that return all results as json. Usually I'm looking to extract…

+1 for jq. Lifechanging. I had to build it on CentOS6, but as you said, super easy.

Re: Less Commonly Used Unix Commands

#53
post #50

Earlier quoted context omitted.

I still don't get how emacs ever got that image.. I never have to press more than two keys at a time, which is also true for vim..

Then you are doing it wrong. ;) But seriously: How do you do common things such as `query-replace{-regex}` or `indent-region`? Have you rebound them all?

Nope.. Haven't rebound anything. But strangely I very rarely need either of them, so haven't bothered so far to remember the shortcut (however I would indeed rebind them if that were to change).

However.. point taken. The default bindings for those two functions are terrible (at least with a german keyboard layout).

Re: Less Commonly Used Unix Commands

#54

popd and pushd are commands that, once learned, I thought would change my life forever. Turns out, not so much. :| EDIT: 'watch mtr' is handy for keeping an eye on your network connection, and finding slowdowns.

Agreed. The game changer for me turned out to be: https://github.com/rupa/z

It has an uncanny knack for getting me to where I want to go with very little in the way of input.

Re: Less Commonly Used Unix Commands

#57

popd and pushd are commands that, once learned, I thought would change my life forever. Turns out, not so much. :| EDIT: 'watch mtr' is handy for keeping an eye on your network connection, and finding slowdowns.

Why do you need to 'watch' mtr? It functionally behaves as a watched tool to begin with.

Re: Less Commonly Used Unix Commands

#58
post #57

popd and pushd are commands that, once learned, I thought would change my life forever. Turns out, not so much. :| EDIT: 'watch mtr' is handy for keeping an eye on your network connection, and finding slowdowns.

Why do you need to 'watch' mtr? It functionally behaves as a watched tool to begin with.

Because I'm dumber than a sack of rocks, apparently. :|

Re: Less Commonly Used Unix Commands

#59
post #49

popd and pushd are commands that, once learned, I thought would change my life forever. Turns out, not so much. :| EDIT: 'watch mtr' is handy for keeping an eye on your network connection, and finding slowdowns.

I aliased `cd` to pushd (squelching output) and `dc` to popd in my interactive shell. It's super handy to have a back button for my shell.

Oh, that's cute--I like that. :)

Re: Less Commonly Used Unix Commands

#60
post #49

popd and pushd are commands that, once learned, I thought would change my life forever. Turns out, not so much. :| EDIT: 'watch mtr' is handy for keeping an eye on your network connection, and finding slowdowns.

I aliased `cd` to pushd (squelching output) and `dc` to popd in my interactive shell. It's super handy to have a back button for my shell.

dc(1) is also an RPN calculator, which comes in handy sometimes.
Post reply on HN