Warning: include(wp-includes/class-wp-query-update.php): failed to open stream: No such file or directory in /home/content/24/7043224/html/wp-settings.php on line 473
Warning: include(): Failed opening 'wp-includes/class-wp-query-update.php' for inclusion (include_path='.:/usr/local/php5_6/lib/php') in /home/content/24/7043224/html/wp-settings.php on line 473 How to Empty a file using '>' operator ? | Grassoft Digital Service
Call us : +1 (915) 526-5022
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.