[X-Unix] deleting files

Scott J. Kramer x-unix at sjk.us
Mon May 3 13:37:51 PDT 2004


--On Monday, May 3, 2004 12:31 -0400 "William H. Magill" 
<magill at mcgillsociety.org> wrote:

[...]

> man chflags ...
>
>         chflags nouchg <filename>
>
>
> They are locked in the "extension" -- ls does not show the information
> since it was written before the extension was added to the BSD file
> system and nobody ever updated ls.

Untrue.  From the "ls" man page:

     -o      Include the file flags in a long (-l) output.

Example:

  % ls -lo file; chflags uchg file; ls -lo file
  -rw-r--r--  1 me   me   - 139  9 Dec 22:21 file
  -rw-r--r--  1 me   me   uchg 139  9 Dec 22:21 file

-sjk



More information about the X-Unix mailing list