Provided by: manpages-zh_1.6.3.6-1_all 

名稱
truncate - 縮減或擴充套件檔案尺寸至指定大小
概述
truncate 選項... 檔案列表...
描述
將檔案縮減或擴充套件至指定大小 如果指定檔案不存在則建立。 如果指定檔案超出指定大小則超出的資料將丟失。如果指定檔案小於指定大小則將用零位元組填充擴充 套件部分(空洞)。 必選引數對長短選項同時適用。 -c, --no-create 不要建立任何檔案 -o, --io-blocks 將給定大小的數字作為 IO 塊數處理,而非作為位元組數處理 -r, --reference=參考檔案 以所指定的檔案大小作為基準 -s, --size=尺寸值 使用給定尺寸值設定或調整檔案大小 --help 顯示此幫助資訊並退出 --version 顯示版本資訊並退出 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. 給定尺寸值也可以使用下面給出的字元之一字首進行修飾:'+' 指擴充套件數值,'-' 指縮減數 值,'<' 值最大值,'>' 指最小值, '/' 修改大小為指定數值的倍數,向下舍入,'%' 修改大小為指 定數值的倍數,向上舍入。
作者
由 Padraig Brady 編寫。
報告錯誤
GNU coreutils 的線上幫助: <https://www.gnu.org/software/coreutils/> 請向 <https://translationproject.org/team/zh_CN.html> 報告翻譯錯誤。
版權
Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
參見
dd(1), truncate(2), ftruncate(2) 完整文件請見: <https://www.gnu.org/software/coreutils/truncate> 或者在本地使用: info '(coreutils) truncate invocation'
跋
本頁面中文版由中文 man 手冊頁計劃提供。 中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh