Sponsored Content
Full Discussion: $cdpath?
Top Forums UNIX for Dummies Questions & Answers $cdpath? Post 9901 by marist89 on Monday 5th of November 2001 11:33:45 AM
Old 11-05-2001
CDPATH, when set, will tell the cd command to search those paths when looking for the target directory. For example:
% echo $CDPATH
.:/usr/local
% pwd
/home/myuser
% cd bin
% pwd
/usr/local/bin
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cdpath

i add a new path to CDPATH but i cannot go to that path the error is as follows: export CDPATH:$CDPATH:/home/dir1/dir2 cd dir2 ksh: dir2: not found what is the problem? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

2. UNIX for Dummies Questions & Answers

environment variables in cdpath

CDPATH=.:/users/:/users/user1/:/users/user1/dir1/ is ok but CDPATH=.:$HOME/:$HOME/dir1/ fails although $HOME=/users/user1 why? (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies
All times are GMT -4. The time now is 03:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy