.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH TRUNCATE 1 2020年三月 "GNU coreutils 8.32" 用戶命令 .SH 名稱 truncate \- 縮減或擴展文件尺寸至指定大小 .SH 概述 \fBtruncate\fP \fI\,選項\/\fP... \fI\,文件列表\/\fP... .SH 描述 .\" Add any additional description here .PP 將文件縮減或擴展至指定大小 .PP 如果指定文件不存在則創建。 .PP 如果指定文件超出指定大小則超出的數據將丟失。如果指定文件小於指定大小則將用零字節填充擴展部分(空洞)。 .PP 必選參數對長短選項同時適用。 .TP \fB\-c\fP, \fB\-\-no\-create\fP 不要創建任何文件 .TP \fB\-o\fP, \fB\-\-io\-blocks\fP 將給定大小的數字作爲 IO 塊數處理,而非作爲字節數處理 .TP \fB\-r\fP, \fB\-\-reference\fP=\fI\,參考文件\/\fP 以所指定的文件大小作爲基準 .TP \fB\-s\fP, \fB\-\-size\fP=\fI\,尺寸值\/\fP 使用給定尺寸值設定或調整文件大小 .TP \fB\-\-help\fP 顯示此幫助信息並退出 .TP \fB\-\-version\fP 顯示版本信息並退出 .PP The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on. .PP 給定尺寸值也可以使用下面給出的字符之一前綴進行修飾:\&'+' 指擴展數值,'\-' 指縮減數值,'<' 值最大值,'>' 指最小值, \&'/' 修改大小爲指定數值的倍數,向下舍入,'%' 修改大小爲指定數值的倍數,向上舍入。 .SH 作者 由 Padraig Brady 編寫。 .SH 報告錯誤 GNU coreutils 的在線幫助: .br 請向 報告翻譯錯誤。 .SH 版權 Copyright \(co 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH 參見 dd(1), truncate(2), ftruncate(2) .PP .br 完整文檔請見: .br 或者在本地使用: info \(aq(coreutils) truncate invocation\(aq .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR