![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Named PIPE | Tamil | UNIX for Dummies Questions & Answers | 2 | 01-17-2007 12:20 AM |
| tee into 2 named pipes | zzol | UNIX for Advanced & Expert Users | 9 | 12-12-2006 05:10 PM |
| named | tamemi | UNIX for Dummies Questions & Answers | 5 | 08-07-2002 03:11 PM |
| named pipes | truma1 | Shell Programming and Scripting | 4 | 11-21-2001 09:36 AM |
| DNS daemon named | Deuce | IP Networking | 4 | 10-01-2001 06:16 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I remove a directory named: $HOME
$ rm "$HOME" rm: $HOME is a directory $ rmdir "$HOME" rmdir: directory "/home/bob": Directory is a mount point or in use |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
If I'm correct you want to remove a directory named literally as $HOME
rm '$HOME' |
|
#3
|
|||
|
|||
|
if the directory is having some content you don't want to keep...
rm -rf '$HOME' |
|
#4
|
||||
|
||||
|
This better NOT be a homework question, but I will answer anyway.
$HOME is a variable for your home directory path. The same thing would happen if you used the full path /path/to/my/homedir If you try to remove $HOME, it will try to remove YOUR home directory. That's why you get the "busy" error. "you can't pull the rug out from under your own feet"
__________________
My brain is your brain |
|
#5
|
|||
|
|||
|
you have to go into you /home directory and the delete the users directory from there there.So if you want to delete bobs home directory just type 'rm -rf bob' and your done.
|
|||
| Google The UNIX and Linux Forums |