Will rm -r* removes hidden files?

Answer Posted / viswa

The command rm -r * will not delte the hidden files. The
command will delte all the normal(unhidden) files and
direcotories.

#1 //Deleting all hidden files in present dir
rm -f .*

#2 //Deleting all hidden dir's in the present dir
rm -r .* OR rmdir .*

Note the command #2 will delete only the hidden dir's
created by the user not the default hidden dir's(. & ..)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called grep?

557


How does pipe () work?

591


Can you explain a little bit about command substitution?

606


What command will change your prompt to myprompt?

696


What are filter commands in unix?

552






What are bash commands?

588


How do I open a port?

589


How do I search a whole word in vim?

687


Explain how to use grep command to list find the records of a file containing 10 different strings?

593


What is grep command in unix with examples?

604


Can you enlist some commonly used network commands?

596


What are file commands?

648


What is unix command line?

603


What happens when we execute a unix command?

597


What is nr in awk command?

598