FreeBSD Bugzilla – Attachment 245092 Details for
Bug 273997
truncate 1 EXAMPLE incorrect description
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff for submited bug and new example
truncate.diff (text/plain), 1.07 KB, created by
toxictrash
on 2023-09-21 11:44:01 UTC
(
hide
)
Description:
Diff for submited bug and new example
Filename:
MIME Type:
Creator:
toxictrash
Created:
2023-09-21 11:44:01 UTC
Size:
1.07 KB
patch
obsolete
>--- truncate.1 2023-09-20 16:12:53.000000000 +0200 >+++ truncate.1.edit 2023-09-21 13:37:49.081851000 +0200 >@@ -27,7 +27,7 @@ > .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > .\" SUCH DAMAGE. > .\" >-.Dd August 19, 2021 >+.Dd September 21, 2023 > .Dt TRUNCATE 1 > .Os > .Sh NAME >@@ -190,7 +190,7 @@ > .Pa test_file > to 10 Megabytes but do not create it if it does not exist: > .Bd -literal -offset indent >-truncate -c -s +10M test_file >+truncate -c -s 10M test_file > .Ed > .Pp > Same as above but create the file if it does not exist: >@@ -213,9 +213,18 @@ > -rw-r--r-- 1 root wheel 31352552 Jul 22 19:15 test_file2 > .Ed > .Pp >+Incrase the size of the file >+.Pa test_file >+by 5 Megabytes but do not create it if it does not exist: >+.Bd -literal -offset indent >+# truncate -s +5M test_file >+ls -l test_file* >+-rw-r--r-- 1 root wheel 36595432 Sep 20 19:17 test_file >+-rw-r--r-- 1 root wheel 31352552 Sep 20 19:15 test_file2 >+.Pp > Downsize > .Pa test_file >-in 5 Megabytes: >+by 5 Megabytes: > .Bd -literal -offset indent > # truncate -s -5M test_file > ls -l test_file*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273997
:
245092
|
258011
|
258146