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