Originally Posted by balajireddy789
Thanks and in interview I faced question like how to deleted files in Linux var directory
Lucky you getting an interview!
Yes, They may try "trick" questions like that.
Of course the general answer is: "You don't".
Then explain why and your alternatives like nulling out logs.
Just be sure of any implications of your actions. ;-)
In another words, be informed and tread carefully
panic may ensue --!
I wish you much success!
All the best.