Linux question - how to empty a text file?

Hi guys,

anyone know a simple command to empty a file of all its contents but leave the file and its attributes in place?

I'm looking for something which doesnt involve opening the file and hitting the delete key.

Thanks.

 

 

 

 

Top