in linux you can use the evil bird emoticon (:>) to destroy files, eg `:> important_document.txt`
the bird will eat the file and leave it completely empty!
in linux you can use the evil bird emoticon (:>) to destroy files, eg `:> important_document.txt`
the bird will eat the file and leave it completely empty!
: (I mean yeah it does make the face but from a commands perspective I mean): is ignored or perhaps written into the file?@ChaosKitsune https://www.gnu.org/software/bash/manual/bash.html#index-_003a
the colon is a shell command that does nothing
it's often used to perform expansions with side-effects, like:
: ${ARGUMENT:=default value}
: ${MUST_BE_SET:?error message}@dakkar @ChaosKitsune @rebane2001 also infinite cycles:
while :
do
<whatever>
Done
while true because it reads better to me