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

Write a command that will display files in the current directory, in a colored, long format.

671


Explain mount and unmount command.

607


How do I use grep to find a file?

572


How do I use nslookup?

568


why metadb requires a seperate slice to create Solaris volume manager

2545






Name the various commands that are used for the user information in unix.

534


What will the following command do?

607


What is rmdir command?

541


hw will u use awk in replacing cahrs and files

2719


Describe the usage and functionality of the command rm –r * in unix?

815


What are the dos commands?

639


Explain ‘library functions’ with respect to unix commands?

595


What are the differences among a system call, a library function, and a unix command?

560


Name the general commands in using unix os for a beginner?

613


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

786