The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?

The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?Category: Linux EssentialsThe number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?
Linux Questions Staff asked 1 year ago

The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?

  • test –f USERS=5
  • test $USERS = 5
  • test $USERS,5
  • test $USERS –eq 5
  • test $USERS –a 5

About the author