From DN Wiki
Revision as of 21:41, 1 December 2019 by Dave (talk | contribs)
Jump to navigation Jump to search

Random Linux stuff that I'm tired of looking up.


My preferred date/time format.

  • echo test >> `date +'%Y-%m-%d_%H:%M:%S'`.txt
Command Substitution

Backticks or the other thing I never remember.

  • `ping -c10 -W2`
  • $(ping -c10 -W2
  • for x in 0{1..9} {10..12} ; do mkdir 2016/2016-$x
  • while read LINE; do echo $LINE; done < FILE