![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how unix called as secure | sanjeev1 | UNIX for Dummies Questions & Answers | 5 | 06-18-2007 06:29 AM |
| Need help with ksh script that uses sqlplus, called from PHP | j2owilson | Shell Programming and Scripting | 7 | 02-27-2006 12:35 PM |
| cpio in shell called from php | mmarino | Shell Programming and Scripting | 3 | 10-07-2005 08:39 AM |
| Procedures are not called ? | dreams5617 | Shell Programming and Scripting | 2 | 11-11-2004 04:02 PM |
| I tried to get the PID on the files called PID_Server | hoang | Shell Programming and Scripting | 1 | 04-16-2002 11:46 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Help I've created a dir called /
OK, I had some odd characters in my mkdir command which resulted in the following directory getting created:
drwxr-xr-x 2 fred fredgroup 512 Apr 12 16:52 / Any ideas how I get rid of it safely? Interestingly that's a straight cut'n'paste and there appear to be some odd characters before the /... Thanks! |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
1. cd to the directory containing the file 2. ls -li (will provide inode numbers in the far left column) 3. find . -xdev -inum inode_number -exec rm {} \; |
|
||||
|
It may not be possible if the name contains a "/".
http://www.faqs.org/faqs/unix-faq/fa...section-2.html But you could try the Code:
rm -ri . Last edited by kahuna; 05-02-2007 at 04:21 AM. Reason: Additional thought. |
||||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|