How do you remove content of a file in Linux?

Experience Level: Junior
Tags: Linux

Answer

Run the following command:

> file.txt

Comments

No Comments Yet.
Be the first to tell us what you think.
Linux for beginners
Linux for beginners

Are you learning Linux ? Try our test we designed to help you progress faster.

Test yourself