Tips for using the Linux test command

Posted by bob on Oct 26, 2022 1:06 PM EDT
Opensource.com; By Seth Kenlon
Mail this story
Print this story

The [ command, often called a "test," is a command from the GNU Core Utils package, and initiates a conditional statement in Bash. Its function is exactly the same as the test command. When you want to execute a command only when something is either true or false, use the [ or the test command. However, there's a significant difference between [ or test and [[, and there's a technical difference between those commands and your shell's versions of them...

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: GNU, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.