Comments on Linux test Command Tutorial for Beginners (with Examples)
Sometimes, while working on the Linux command line, you might want to test certain things like integer values, or whether or not a file is of certain type? You'll be glad to know there's a built-in command line utility test that lets you do most of these comparisons and tests.
2 Comment(s)
Add comment
Comments
By: Javier
Good examples thx.
By: likejudo
But what value is returned when the test command executes? 0 or 1 or something else?
When I do
```
echo $(test 2 -eq 3)
```
Nothing shows in the terminal