The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-16-2007
felixwhoals felixwhoals is offline
Registered User
 

Join Date: Dec 2007
Posts: 18
Testing permission

One question to test the permission

I know test commands give us:
test -w filename - to test if file exists and writeable
test -x filename - to test if file exists and executable
test -r filename - to test if file exists and readable

How do I test if the permission is writeable or readable or executable by group users and everybody? As far as I know -w -x -r is to test for owners, am I right?
Reply With Quote
Remove advertisements
!!
Forum Sponsor