![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change current working directory for dbx on UNIX? | login0001 | UNIX for Dummies Questions & Answers | 5 | 04-26-2007 07:47 AM |
| working directory shown | swchee | UNIX for Dummies Questions & Answers | 3 | 05-11-2006 04:05 AM |
| how to change working directories in perl? | megastar | Shell Programming and Scripting | 1 | 11-02-2005 03:05 PM |
| Getting present working directory | winsonlee | High Level Programming | 0 | 08-07-2004 10:32 AM |
| Time change not working... | conflansun | UNIX for Dummies Questions & Answers | 7 | 11-02-2001 01:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Change to a new working directory...
I need to CD to a particular directory to check log files and interface files. Instead of typing the path manually, is there a way of getting a script to change my working directory to the one I need?
Currently I have a script that CD's to the directories I need but a soon as the script exits, I am back in my home directory. I would like it to change and then exit leaving me in the desired directory. Thanks for help offered |
|
||||
|
Hi vino,
Thanks heaps I tried your advise, but I keep getting -bash: ../stpth: No such file or directory. it will only run when I use stpth without any path indications. I am using Linux/bash. I see what you mean about the seperate shell, not the original shell having the directory changed. I will keep trying for an answer. ![]() |
|
||||
|
Though not a script, pushd works well for this, cuts down typing out a whole directory name a second time.
man pushd http://linux.about.com/library/cmd/blcmdl1_pushd.htm |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|