How to clear the contents of a file from the command line?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=x7wNg8m6kP8



Category:
Guide
Duration: 5:37
5 views
0


How to clear the contents of a file from the command line?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(superuser.com/users/13663/andrew)Andrew |
(superuser.com/users/7730/geek)geek |
(superuser.com/users/246990/nono)nono |
(superuser.com/users/18525/thechickenmoo)Thechickenmoo |
(superuser.com/users/27109/stuart-p-bentley)Stuart P. Bentley |
(superuser.com/users/12758/brian-wigginton)Brian Wigginton |
A special thanks goes out to the (https://superuser.com/questions/90008/how-to-clear-the-contents-of-a-file-from-the-command-line)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

linux command-line







Tags:
linux
command-line