![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 512 Error while creating a directory | shreyasjothish | UNIX for Dummies Questions & Answers | 11 | 04-17-2008 03:35 AM |
| Determining directory path | cwalsek | Shell Programming and Scripting | 2 | 07-19-2007 06:04 AM |
| Truncate directory path | here2learn | Shell Programming and Scripting | 4 | 01-26-2006 12:50 PM |
| ifconfig: difference between creating logical or alias network interface | zaff | IP Networking | 5 | 11-22-2005 07:28 AM |
| Help with find command on a shortcut directory(Alias)??? | swamy455 | UNIX for Dummies Questions & Answers | 2 | 07-07-2005 10:32 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Creating alias for directory path
I am trying to create an alias for a frequently used directory path by using
alias xyz="/proj/dir_name" and then trying to reach a sub-directoy by using cd xyz/abc but I get an error saying " No such file or directory " plz tell me wats wrong with this ... |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Check the syntax of alias command.
It is similar to: alias alias_name='some_command' "/proj/dir_name" isn't a valid command, is it? |
|
#3
|
|||
|
|||
|
Thanks a lot ... I got what I was doing wrong
finally i declared the path as a variable ... and then used cd $<var>/<further directories> |
|
#4
|
||||
|
||||
|
Perhaps consider setting $CDPATH variable, e.g...
Code:
CDPATH='.:/proj/dir_name' Code:
cd xyz/abc |
||||
| Google The UNIX and Linux Forums |