Tips & Tricks


Suppose you want to empty a file from command line.

Here is how easily you can do it :

$ > [complete file path]

For example :

$ > ./logfile

This will delete all the contents of the file ‘logfile’ and empty it.

Go Back to Menu