Clear file content & command truncate
-
: > file
-
cat /dev/null > file
truncate:
belongs to coreutils package.
truncate from the end of the file.
: > file
cat /dev/null > file
truncate:
belongs to coreutils package.
truncate from the end of the file.