Will rm -r* removes hidden files?

Answers were Sorted based on User's Feedback



Will rm -r* removes hidden files?..

Answer / sathya

rm .* will remove all hidden files

Is This Answer Correct ?    8 Yes 3 No

Will rm -r* removes hidden files?..

Answer / wizard_cmp@yahoo.co.in

No. will get an error.

Is This Answer Correct ?    5 Yes 3 No

Will rm -r* removes hidden files?..

Answer / jennie

find the hidden files by doing ls -lat
and then use rm <filename>

Is This Answer Correct ?    1 Yes 0 No

Will rm -r* removes hidden files?..

Answer / 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

Will rm -r* removes hidden files?..

Answer / shan, chennai

Not at all agree. Will post you once I get the command for
that.

Shan, Chennai

Is This Answer Correct ?    0 Yes 0 No

Will rm -r* removes hidden files?..

Answer / abhijit (pune)

No, it will not delete hidden files.
but, rm -f .* will definately removes the hidden files in
that perticular directory.

Is This Answer Correct ?    0 Yes 0 No

Will rm -r* removes hidden files?..

Answer / jagadeesh kumar.k[tpgsi]

NO

Is This Answer Correct ?    0 Yes 1 No

Will rm -r* removes hidden files?..

Answer / 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

Will rm -r* removes hidden files?..

Answer / sunitha k

rm -r* delete all files in the current directory and all
its sub-directories.it works really.

Is This Answer Correct ?    0 Yes 1 No

Will rm -r* removes hidden files?..

Answer / praful naik

Ans is rm -a

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More Unix Commands Interview Questions

How can you see the command line history?

0 Answers  


Who wrote grep?

0 Answers  


Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...

27 Answers   CGI,


what is the use of the hidden files?

3 Answers  


Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?

5 Answers  






Explain ‘system calls’ with respect to unix commands?

0 Answers  


How to display no of records in oracle using unix command?

0 Answers  


If JFS file system is 100% full how we can increase the file system ?

3 Answers  


distinguish between user mode and kernel mode?

6 Answers   Infosys,


Who invented grep?

0 Answers  


What is file system in unix??

10 Answers   Symphony,


What command would users use to see what file one page at a time in UNIX?

7 Answers   IBM,


Categories