Recapping the test command

So far, we have used the built-in test command to drive our conditional statements. Using other options with test, we can look at the returned value to determine the status of files in the filesystem. Running the test command without any options will return a false output:

$ test

Get Mastering Linux Shell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.