HACKER Q&A
📣 yarapavan

What's one Linux command you wish you'd learned years ago?


What's one Linux command you wish you'd learned years ago?


  👤 asicsp Accepted Answer ✓
sed, awk or even the fact that I could've used perl from command line

    sed -i 's/old/new/g'
alone would have saved me lot of time instead of fiddling with a perl script everytime

Also, I would've liked to understand shell concepts like file redirections, command substitution, parameter expansion, difference between stdout/stderr, why sometimes I got an error for too many file arguments, or even knew that there existed sites like https://mywiki.wooledge.org/BashFAQ and stackoverflow/unix.stackexchange and https://www.shellcheck.net/ and https://explainshell.com/ and so on.


👤 deanmoriarty
fzf as command history search, coupled with an unlimited history file. It is by far my “unfair advantage”, I do things so much faster than my coworkers...

👤 UrbanPiper
Tmux and Vim for me - they are tools and not exactly commands.

👤 dcminter
^R in bash to search command history.

👤 gigatexal
Xargs or awk

👤 pseudonymousgun
watch command

👤 theSealedTanker
man

👤 DanBC
Awk.

👤 arkj
find ... -exec ... {}\;

👤 BenjiWiebe
pushd popd cd -

👤 tacone
shutdown :)

👤 jamieweb
tac

👤 simonblack
sed, tr.

👤 p0d
tailf