Forrest logo
back to the true tool

true:tldr:b326b

true: Return a successful exit code.
$ true
try on your machine

The command "true" is a built-in command in various operating systems, including Unix-like systems. When you run the "true" command, it simply returns a successful exit status (0), indicating that the command was executed successfully.

The "true" command does not have any output or effect on the system. It is often used in shell scripts or command pipelines where a command with a successful exit status is needed, but the command itself does not perform any real action or produce any output. It can be useful as a placeholder or a way to bypass certain conditions or execution paths in scripts.

Overall, the "true" command serves the purpose of being a no-op (no operation) command that always succeeds.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the true tool