The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Home directory Query mmg2711 UNIX for Dummies Questions & Answers 2 10-25-2007 09:30 AM
home directory security prvnrk UNIX for Advanced & Expert Users 5 08-09-2007 02:13 AM
Can you navigate ABOVE the home directory? patwa UNIX for Dummies Questions & Answers 4 06-13-2007 07:27 PM
home directory nokia3100 UNIX for Dummies Questions & Answers 1 05-07-2007 11:16 AM
c++ home directory?? user666 UNIX for Dummies Questions & Answers 3 03-16-2002 05:49 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2005
Registered User
 

Join Date: Nov 2003
Posts: 53
Stumble this Post!
cd into home directory ~

I'm trying to cd into a home directory with
cd ~username_here
and I'm getting the following error:
~username_here: does not exist
The directory exists and I can directly go to it via cd /export/home/username_here without any problems.

Any suggestions?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-12-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
Stumble this Post!
... make sure you're using ksh, bash or another shell that can translate ~ ... if yes, then look at whether the system can automount /export/home/user into /home/user ...
Reply With Quote
  #3 (permalink)  
Old 04-12-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Stumble this Post!
Your problem may be in the use of ~. cd ~ will put you into your home directory - you are then telling it to go into your home directory to username_here. Unless you have that directory in your home directory, then it will not work.
Reply With Quote
  #4 (permalink)  
Old 04-12-2005
Registered User
 

Join Date: Jan 2005
Posts: 212
Stumble this Post!
Try

cd ~/username_here
Reply With Quote
  #5 (permalink)  
Old 04-12-2005
Registered User
 

Join Date: Nov 2003
Posts: 53
Stumble this Post!
Thanks Ice.

I believe the particular shell was the issue. Apparently, the Bourne shell can not translate ~ . When I switched to the Korn shell, the command worked as planned.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:43 PM.


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

Content Relevant URLs by vBSEO 3.2.0