Can you write a command to erase all files in the current directory including all its sub-directories?



Can you write a command to erase all files in the current directory including all its sub-directorie..

Answer / yamini

rm -rf <directoryname>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

Explain ‘system calls’ with respect to unix commands?

1 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


what is the function of grep command?

4 Answers  


Describe the zip/unzip command using gzip.

1 Answers  


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


Which unix command lists files/folders in alphabetical order?

3 Answers  


What is time_t?

1 Answers  


What is the unix command to confirm a remote host is alive or not?

1 Answers  


How do you repeat a command in terminal?

1 Answers  


Categories