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
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!
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.
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.
Related Posts:
- Apply for Linux Internship
- Buy Linux Books
- Practice Programming MCQs
- Buy Information Technology Books
- Apply for Programming Internship