test command in Linux with Examples

test command in Linux means Checking file types and comparing values.

test command in Linux with Examples

Syntax

test EXPRESSION
test
[ EXPRESSION ]
[ ]
[ OPTION

On the man page, the describes it

  • test – check file types and compare values.
  • man test – More details information about test command.

test command in Linux with Examples

$ test 10 -gt 5 && echo "Yes"

Conclusion

test command in Linux is a simple command in Linux. It is the most popular in use terminal Linux check file types and compares values. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.