Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rmger

macrumors member
Original poster
Jan 26, 2013
34
0
In BSD systems we can set special attributes for files with the command "chflags". This command is also present as in OS X.
In UNIX systems we can see what specials attributes are put on the file with command "lsattr", but this command is not present in OS X. And how now see what are the attributes of the file?

Get a situation that we can set, but can not see what attributes are present.
 

pitaya

macrumors member
Jun 17, 2012
34
0
man chflags:
Code:
...
     You can use "ls -lO" to see the flags of existing files.
...
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
In BSD systems we can set special attributes for files with the command "chflags". This command is also present as in OS X.
In UNIX systems we can see what specials attributes are put on the file with command "lsattr", but this command is not present in OS X. And how now see what are the attributes of the file?

Get a situation that we can set, but can not see what attributes are present.

MacOS X is fully POSIX 2003 compliant. MacOS X _is_ Unix. Therefore either "lsattr" is available on MacOS X, or it is _not_ available on all Unix implementations. Turns out that lsattr is a Linux and AIX command, not Unix, which Google would have told you.

And instead of posting here, open terminal, enter "man chflags", and read what it says.
 
  • Like
Reactions: joss.b
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.