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

What is the use of finger command?

603


What is awk used for?

624


What is updatedb?

590


What does the metacharacter mean?

612


Who invented grep?

655






What is nr in awk command?

611


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


What does grep v do?

562


What is the general format of unix command syntax?

698


Why is it called grep?

565


Explain command to show the space allocation of files?

633


Why is awk called awk?

581


What is the pipe command?

583


What is the command to find maximum memory taking process on the server?

674


Explain mount and unmount command.

621