Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

cd into home directory ~

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 04-12-2005
Just Ice's Unix or Linux Image
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 18 October 2016, 12:06 PM EDT
Location: Philadelphia metro
Posts: 961
Thanks: 3
Thanked 67 Times in 61 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 Unix and Linux 04-12-2005
RTM's Unix or Linux Image
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 6 August 2016, 11:44 AM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 34 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 Unix and Linux 04-12-2005
vibhor_agarwali vibhor_agarwali is offline
Registered User
 
Join Date: Jan 2005
Last Activity: 24 September 2015, 2:37 AM EDT
Posts: 313
Thanks: 1
Thanked 1 Time in 1 Post
Try

cd ~/username_here
Sponsored Links
    #5  
Old Unix and Linux 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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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:26 AM.