Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Clear the file with a cd command? Commented Nov 4, 2020 at 21:39
  • @AlexisWilke The cd command is just to navigate to the directory, the next line is bashism which truncates the size of the file to 0 (this answer assumes the shell used is Bash, and doesn't work with things like zsh) Commented Feb 8, 2021 at 13:38
  • @Ferrybig Ah. Now that the formatting was fixed, I can see how that works. Before those two lines appeared on a single line. Commented Feb 8, 2021 at 18:32