This tutorial explains Linux “true” command, options and its usage with examples.
Exit with a status code indicating success. true returns 0.
For example, the following shell script repeats the echo hello loop until interrupted:
while true do echo hello done
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.