cd into home directory ~ | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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

cd into home directory ~

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-12-2005
here2learn here2learn is offline
Registered User
 
Join Date: Nov 2003
Last Activity: 29 September 2008, 2:15 PM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old 04-12-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 67 Times in 60 Posts
... 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 ...
Sponsored Links
    #3  
Old 04-12-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 17 October 2014, 8:46 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 32 Times in 9 Posts
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.
    #4  
Old 04-12-2005
vibhor_agarwali vibhor_agarwali is offline
Registered User
 
Join Date: Jan 2005
Last Activity: 11 April 2014, 2:37 AM EDT
Posts: 307
Thanks: 1
Thanked 1 Time in 1 Post
Try

cd ~/username_here
Sponsored Links
    #5  
Old 04-12-2005
here2learn here2learn is offline
Registered User
 
Join Date: Nov 2003
Last Activity: 29 September 2008, 2:15 PM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Restricting SFTP user to a defined directory and home directory sftpuser Solaris 1 10-16-2009 08:00 PM
home directory topic32428285 Shell Programming and Scripting 8 04-18-2009 04:42 PM
home directory nokia3100 UNIX for Dummies Questions & Answers 1 05-07-2007 03:16 PM
c++ home directory?? user666 UNIX for Dummies Questions & Answers 3 03-16-2002 09:49 PM



All times are GMT -4. The time now is 09:24 PM.