This tutorial explains Linux “true” command, options and its usage with examples.
true – do nothing, successfully.
Exit with a status code indicating success. true returns 0.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!
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.
Check this: Programming MCQs | Information Technology Books
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.
- Apply for Linux Internship
- Buy Linux Books
- Practice Programming MCQs
- Buy Information Technology Books
- Apply for Programming Internship