Please write a loop for removing all files in the current directory that contains a word ‘log’?



Please write a loop for removing all files in the current directory that contains a word ‘log&..

Answer / saurabh

rm -rf *log*

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux General Interview Questions

Explain the features of stateless linux server?

0 Answers  


How do you share a program across different virtual desktops under linux?

0 Answers  


Name some linux variants.

0 Answers  


Can I put linux on my laptop?

0 Answers  


you have forgotten the root password how would you retrieve it in linux operating system?

0 Answers  






How to jump to a particular line in a file using vim editor?

0 Answers  


What is the latest version of linux?

0 Answers  


Which are the shells used in linux?

0 Answers  


List all the files with ‘.mem’ extension in reverse alphabetical order in a particular directory?

2 Answers   HCL,


How do I install linux?

0 Answers  


How can you enhance the security of the password file?

0 Answers  


How can you terminate vi session?

0 Answers  


Categories