Will rm -r* removes hidden files?

Answer Posted / anandhi

$rm –rf .??*


With the option –rf and the use " .??* " will remove/delete
all hidden files/directory. The initial " . " indicates
a 'hidden' file and the " ?? " match at least two
characters to exclude the parent-directory which is " .. "
and to remove or delete everything the " * " will match all
number or characters that used for files or directory name.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

829


What does #!/ Bin sh do?

597


What does the md command do?

578


What does grep v do?

562


What is “chmod” command?

568






Who command in unix operating system?

669


Enlist some filename manipulation commands in unix.

556


Why is it called a shebang?

574


What is updatedb?

590


What is pipe command in unix?

677


Give the command for finding the current date.

583


Does cp command overwrite files?

628


What is ‘ps’ command for?

620


Which command can you use to find the currently running process in unix server?

592


What is s and g in sed command?

563