偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

chattr 中文man頁(yè)面

系統(tǒng)
chattr 修改文件在Linux第二擴(kuò)展文件系統(tǒng)(E2fs)上的特有屬性

NAME(名稱(chēng))

chattr - 修改文件在Linux第二擴(kuò)展文件系統(tǒng)(E2fs)上的特有屬性  

SYNOPSIS(總覽)

chattr [ -RV ] [ -v version ] [ mode ] files...  

DESCRIPTION(描述)

chattr 修改文件在Linux第二擴(kuò)展文件系統(tǒng)(E2fs)上的特有屬性

符號(hào)模式有+-=[ASacdisu]幾種格式.

操作符`+'用來(lái)在文件已有屬性的基礎(chǔ)上增加選定的屬性; `-'用來(lái)去掉文件上的選定的屬性;而`='用來(lái)指定該文件的唯一屬性.

字符`ASacdisu'用作文件新屬性的選項(xiàng): 不更新atime(A),同步更新(S),只能添加(a), 壓縮(c),不可變(i),不可轉(zhuǎn)移(d),刪除保護(hù)(s)以及不可刪除(u).  

OPTIONS(選項(xiàng))

-R
遞歸地修改目錄以及其下內(nèi)容的屬性. 如果在遞歸目錄時(shí)遇到了符號(hào)鏈接,遍歷將跳過(guò).
-V
詳盡地給出chattr的輸出信息并打印出程序的版本.
-v version
設(shè)置文件系統(tǒng)的版本.

ATTRIBUTES(屬性)

當(dāng)修改設(shè)置了'A'屬性的文件時(shí),它的atime記錄不會(huì)改變. 這可以在筆記本電腦系統(tǒng)中避免某些磁盤(pán)I/O處理.

設(shè)置了`a'屬性的文件只能在添加模式下打開(kāi)用于寫(xiě)入. 只有超級(jí)用戶(hù)可以設(shè)置或清除該屬性.

設(shè)置了`c'屬性的文件在磁盤(pán)上由內(nèi)核自動(dòng)進(jìn)行壓縮處理. 從該文件讀取時(shí)返回的是未壓縮的數(shù)據(jù). 對(duì)該文件的一次寫(xiě)入會(huì)在保存它們到磁盤(pán)之前進(jìn)行數(shù)據(jù)壓縮.

設(shè)置了`d'屬性的文件不能對(duì)其運(yùn)行 dump(8) 程序進(jìn)行備份.

設(shè)置了`i'屬性的文件不能進(jìn)行修改:你既不能刪除它, 也不能給它重新命名,你不能對(duì)該文件創(chuàng)建鏈接, 而且也不能對(duì)該文件寫(xiě)入任何數(shù)據(jù). 只有超級(jí)用戶(hù)可以設(shè)置或清除該屬性.

當(dāng)刪除設(shè)置了`s'屬性的文件時(shí),將對(duì)其數(shù)據(jù)塊清零并寫(xiě)回到磁盤(pán)上.

當(dāng)修改設(shè)置了`S'屬性的文件時(shí), 修改會(huì)同步寫(xiě)入到磁盤(pán)上;這與應(yīng)用到文件子系統(tǒng)上的`sync'掛載選項(xiàng)有相同的效果.

當(dāng)刪除設(shè)置了`u'屬性的文件時(shí), 將會(huì)保存其內(nèi)容. 這使得用戶(hù)可以請(qǐng)求恢復(fù)被刪除的文件.

AUTHOR(作者)

chattr 的作者為Remy Card <card@masi.ibp.fr>, 他是ext2 fs的開(kāi)發(fā)和維護(hù)者.  

BUGS AND LIMITATIONS(BUGS和局限性)

對(duì)于ext2 fs 0.5a來(lái)說(shuō),`c'和`u'屬性是不被內(nèi)核代碼所承認(rèn)的. 對(duì)于Linux 2.0內(nèi)核而言,'A'屬性也是不被內(nèi)核代碼所支持的. (noatime代碼仍在測(cè)試中.)

這些屬性將在未來(lái)的ext2 fs版本中實(shí)現(xiàn).  

AVAILABILITY(怎樣獲取)

chattr 是e2fsprogs包的一部分, 你可以通過(guò)對(duì)tsx-11.mit.edu的匿名ftp訪問(wèn)在 /pub/linux/packages/ext2fs下找到它.  

SEE ALSO(另見(jiàn))

lsattr(1)  

#p#

NAME

chattr - change file attributes on a Linux second extended file system  

SYNOPSIS

chattr [ -RV ] [ -v version ] [ mode ] files...  

DESCRIPTION

chattr changes the file attributes on a Linux second extended file system.

The format of a symbolic mode is +-=[ASacDdIijsTtu].

The operator `+' causes the selected attributes to be added to the existing attributes of the files; `-' causes them to be removed; and `=' causes them to be the only attributes that the files have.

The letters `acdijsuADST' select the new attributes for the files: append only (a), compressed (c), no dump (d), immutable (i), data journalling (j), secure deletion (s), no tail-merging (t), undeletable (u), no atime updates (A), synchronous directory updates (D), synchronous updates (S), and top of directory hierarchy (T).  

OPTIONS

-R
Recursively change attributes of directories and their contents. Symbolic links encountered during recursive directory traversals are ignored.
-V
Be verbose with chattr's output and print the program version.
-v version
Set the file's version/generation number.

ATTRIBUTES

When a file with the 'A' attribute set is accessed, its atime record is not modified. This avoids a certain amount of disk I/O for laptop systems.

A file with the `a' attribute set can only be open in append mode for writing. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

A file with the `c' attribute set is automatically compressed on the disk by the kernel. A read from this file returns uncompressed data. A write to this file compresses data before storing them on the disk.

When a directory with the `D' attribute set is modified, the changes are written synchronously on the disk; this is equivalent to the `dirsync' mount option applied to a subset of the files.

A file with the `d' attribute set is not candidate for backup when the dump(8) program is run.

The 'E' attribute is used by the experimental compression patches to indicate that a compressed file has a compression error. It may not be set or reset using chattr(1), although it can be displayed by lsattr(1).

The 'I' attribute is used by the htree code to indicate that a directory is behind indexed using hashed trees. It may not be set or reset using chattr(1), although it can be displayed by lsattr(1).

A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

A file with the `j' attribute has all of its data written to the ext3 journal before being written to the file itself, if the filesystem is mounted with the "data=ordered" or "data=writeback" options. When the filesystem is mounted with the "data=journal" option all file data is already journalled and this attribute has no effect. Only the superuser or a process possessing the CAP_SYS_RESOURCE capability can set or clear this attribute.

When a file with the `s' attribute set is deleted, its blocks are zeroed and written back to the disk.

When a file with the `S' attribute set is modified, the changes are written synchronously on the disk; this is equivalent to the `sync' mount option applied to a subset of the files.

A directory with the 'T' attribute will be deemed to be the top of directory hierarchies for the purposes of the Orlov block allocator (which is used in on systems with Linux 2.5.46 or later).

A file with the 't' attribute will not have a partial block fragment at the end of the file merged with other files (for those filesystems which support tail-merging). This is necessary for applications such as LILO which read the filesystem directly, and which don't understand tail-merged files. Note: As of this writing, the ext2 or ext3 filesystems do not (yet, except in very experimental patches) support tail-merging.

When a file with the `u' attribute set is deleted, its contents are saved. This allows the user to ask for its undeletion.

The 'X' attribute is used by the experimental compression patches to indicate that a raw contents of a compressed file can be accessed directly. It currently may not be set or reset using chattr(1), although it can be displayed by lsattr(1).

The 'Z' attribute is used by the experimental compression patches to indicate a compressed file is dirty. It may not be set or reset using chattr(1), although it can be displayed by lsattr(1).

AUTHOR

chattr was written by Remy Card <Remy.Card@linux.org>. It is currently being maintained by Theodore Ts'o <tytso@alum.mit.edu>.  

BUGS AND LIMITATIONS

The `c', 's', and `u' attributes are not honored by the ext2 and ext3 filesystems as implemented in the current mainline Linux kernels. These attributes may be implemented in future versions ext2 and ext3.

The `j' option is only useful if the filesystem is mounted as ext3.

The `D' option is only useful on Linux kernel 2.5.19 and later.  

AVAILABILITY

chattr is part of the e2fsprogs package and is available from http://e2fsprogs.sourceforge.net.  

SEE ALSO

lsattr(1)

責(zé)任編輯:韓亞珊 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-15 13:59:34

stty中文man

2011-08-22 10:14:05

crontab中文man

2011-08-24 15:08:18

EXECUTE中文man

2011-08-25 18:22:06

tcsetattr中文man

2011-08-12 09:23:11

diff中文man

2011-08-25 09:07:16

suffixes中文man

2011-08-25 10:43:13

protocols中文man

2011-09-23 13:59:40

find中文man

2011-08-16 09:56:22

groupdel中文man

2011-08-25 17:27:58

rewind中文man

2011-08-25 15:54:08

ferror中文man

2011-08-25 10:28:26

nologin中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:34:50

setlinebuf中文man

2011-08-25 15:09:38

clearerr中文man

2011-08-11 16:17:46

autorun中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)