# Is there any way to change working dir

**URL:** <https://community.openpbs.org/t/is-there-any-way-to-change-working-dir/1518>\
**Category:** Users/Site Administrators\
**Created:** [March 21, 2019, 1:49am UTC](https://community.openpbs.org/t/is-there-any-way-to-change-working-dir/1518 "2019-03-21T01:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![squallabc](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@squallabc](https://community.openpbs.org/u/squallabc)\
**Post date:** [March 21, 2019, 1:49am UTC](https://community.openpbs.org/t/is-there-any-way-to-change-working-dir/1518/1 "2019-03-21T01:49:10Z")

</div>

Hi Team,

it looks like the job are always from /home dir. is there any way to change it ? Thanks.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [March 21, 2019, 5:45pm UTC](https://community.openpbs.org/t/is-there-any-way-to-change-working-dir/1518/2 "2019-03-21T17:45:12Z")

</div>

The PBS\_O\_WORKDIR will be the directory from where the job is submitted (qsub).  
By default it is always set to the directory to the location where qsub is run

Setting PBS\_O\_WORKDIR in the profile.d scripts might work.
