The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-23-2002
Registered User
 

Join Date: Oct 2001
Location: Denver
Posts: 25
Question removing a dir named: $HOME

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  
Old 10-23-2002
Registered User
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
If I'm correct you want to remove a directory named literally as $HOME

rm '$HOME'
  #3  
Old 10-23-2002
Registered User
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
if the directory is having some content you don't want to keep...

rm -rf '$HOME'
  #4  
Old 10-23-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
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  
Old 10-25-2002
Registered User
 

Join Date: Sep 2001
Location: Brighton,MA
Posts: 10
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0