: nop command
:
echo $? # 0
$? the previous command return value
Dead loop
while :
do
operation-1
.
.
.
done
the same with
while ture
do
done
Another example
if condition
then :
else
take some action
fi
: ${username=`whoami`}
Clear file
: > file
cat /dev/null > file