Will rm -r* removes hidden files?
Answers were Sorted based on User's Feedback
Answer / jennie
find the hidden files by doing ls -lat
and then use rm <filename>
| Is This Answer Correct ? | 1 Yes | 0 No |
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 |
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 |
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 |
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 |
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 |
Explain command to display different lines that are found when compare two files?
Describe the zip/unzip command using gzip.
What does 'mkdir' command do in UNIX?
what is the use of wild cards?
What is the unix command to confirm a remote host is alive or not?
Where can I get the free download of Unix by Yeswant Kanetkar?
How can i know my Filesystem and its current usage in my prod UNIX system?
How to convert a hidden file to normal visible file?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
What is in grep command?
Which command will you use to change the permissions on file?
How do you list the files in an UNIX directory while also showing hidden files?