]>
Commit | Line | Data |
---|---|---|
3839e657 TT |
1 | .\" -*- nroff -*- |
2 | .TH CHATTR 1 "March 1994" "Version 0.5" | |
3 | .SH NAME | |
4 | chattr \- change file attributes on a Linux second extended file system | |
5 | .SH SYNOPSIS | |
6 | .B chattr | |
7 | [ | |
8 | .B \-RV | |
9 | ] | |
10 | [ | |
11 | .B -v | |
12 | version | |
13 | ] | |
14 | [ | |
15 | mode | |
16 | ] | |
17 | .I files... | |
18 | .SH DESCRIPTION | |
19 | .B chattr | |
20 | changes the files attributes on an second extended file system. | |
21 | .PP | |
22 | The format of a symbolic mode is +-=[Scsu]. | |
23 | .PP | |
24 | The operator `+' causes the selected attributes to be added to the | |
25 | existing attributes of the files; `-' causes them to be removed; and | |
26 | `=' causes them to be the only attributes that the files have. | |
27 | .PP | |
28 | The letters `Scsu' select the new attributes for the files: synchronous | |
29 | updates (S), compressed (c), secure deletion (s), and undeletable (u). | |
30 | .SH OPTIONS | |
31 | .TP | |
32 | .I -R | |
33 | Recursively change attributes of directories and their contents. | |
34 | .TP | |
35 | .I -V | |
36 | Verbosely describe changed attributes. | |
37 | .TP | |
38 | .I -v version | |
39 | Set the files version. | |
40 | .SH AUTHOR | |
41 | .B chattr | |
42 | has been written by Remy Card <card@masi.ibp.fr>, the developer and maintainer | |
43 | of the ext2 fs. | |
44 | .SH BUGS AND LIMITATIONS | |
45 | As of ext2 fs 0.4, the kernel code only honours the `s' and `S' attributes. When | |
46 | a file with the `s' attribute set is deleted, its blocks are zeroed and | |
47 | written back to the disk. When a file with the `S' attribute set is modified, | |
48 | the changes are written synchronously on the disk; this is equivalent to | |
49 | the `sync' mount option applied to a subset of the files. | |
50 | .PP | |
51 | The other attributes will be implemented in a next ext2 fs version. | |
52 | .SH AVAILABILITY | |
53 | .B chattr | |
54 | is available for anonymous ftp from ftp.ibp.fr (132.227.60.2) in | |
55 | /pub/linux/BETA/ext2fs. | |
56 | .SH SEE ALSO | |
57 | .BR lsattr (1) |