Linux.com are back with another in the excellent series titled “CLI for noobies”. This time they discuss the test command and show its uses. Guess I am a noobie because I didn’t even know about this command.
The test command allows you to conditionally perform some task based on the existence, type, or status of a file. It also lets you do the same thing by comparing integer and string values. For my sake, we’ll keep it as simple as possible and stick to file tests while still showing off some of its potential.