News for hackers. Stuff that matters.
Re:Ask HN: Share your best terminal tricks by PeterHK on Monday August 14, 2017 @05:25AM (#15007455)
Stuck in a broken remote session?

  <enter>
  ~.<enter>
want to use different command on last argument?

  less /path/to/some.file
  vim !$
piping and sudo

  sudo sh -c "my command | jq > meh.txt"
Re:Ask HN: Share your best terminal tricks by KishanB on Tuesday August 15, 2017 @01:56AM (#15015864)
To clear only the contents of a file (my most used and most favourite one esp with application logs)

cat /dev/null > any_file.txt

Re:Ask HN: Share your best terminal tricks by Ecco on Saturday August 12, 2017 @09:03AM (#14997740)
Ctrl-D = EoF = Closes the term / tmux