The Computer Oracle

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

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: The Builders

--

Chapters
00:00 Question
00:37 Accepted answer (Score 728)
01:00 Answer 2 (Score 228)
01:20 Answer 3 (Score 54)
01:44 Answer 4 (Score 50)
02:04 Thank you

--

Full question
https://superuser.com/questions/90008/ho...

Accepted answer links:
[answered here]: https://superuser.com/a/634217/34893

Answer 2 links:
http://www.commandlinefu.com/commands/vi...

Answer 4 links:
[(credit)]: http://www.tldp.org/LDP/abs/html/io-redi...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #commandline

#avk47