![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove help removing to files | wereyou | UNIX for Dummies Questions & Answers | 3 | 12-27-2007 07:44 PM |
| Remove the older files | Prasandha | UNIX for Dummies Questions & Answers | 1 | 10-17-2006 04:03 AM |
| how to remove files with a date | justintime | Shell Programming and Scripting | 5 | 09-10-2006 10:50 PM |
| How to remove files with zero lenght | GNMIKE | UNIX for Dummies Questions & Answers | 2 | 09-08-2005 07:20 PM |
| remove some files on a condition.. | ST2000 | Shell Programming and Scripting | 4 | 08-27-2002 10:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
How do i remove all the files that are present in the directory.. I know a way of doing this..that is by using *.* .. But my directory has executables or some files without extensions... So they are not getting deleted. What do i do to remove all of them? Thanks, Nisha |
|
||||
|
Hey,
Thanks for that. I changed the permissions and its working fine. I used rm -r *.* and it deleted both the directory and its contents. Just kindly tell me this. Even when we create our own directory and files, the default permissions can only be given is it? so there is no way of deleting the files without the changing the permissions or what? Thanks in Advance, Nisha |
|
||||
|
Two things..... this looks like it's got more complicated than it needs to be:
1) To remove all files just use '*' The *.* that you have been using will only delete files that have the '.' character in the name. 2) If you want to remove the directory as well as its contents then you could just go up one level in the filesystem and do 'rm -rf dir_name' |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|