LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   whats the (wd:...) in the table of the jobs command? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-wd-in-the-table-of-the-jobs-command-261697/)

merlin23 12-02-2004 07:16 AM

whats the (wd:...) in the table of the jobs command?
 
Hello!
Can anybody explain me, whats this wd at the end of the entry when I do ps:

[1] - 1646 Stopped (signal) /usr/local/bin/htdig-dbgen (wd: /var/www/htdig/db)
[2] + 22394 Stopped (signal) ./htdig-dbgen (wd: /usr/local/bin)


What does the - or the + do mean? and what the (wd...) ??

I've started just one job, now I see 2...

please give me some hints...

thanx

merlin

theYinYeti 12-02-2004 07:58 AM

wd: Working Directory, usually the directory from which you launched the command.

Yves.

merlin23 12-02-2004 07:59 AM

ah, thx very much

WardXmodem 08-13-2013 04:15 PM

(wd ...) @ end of jobs cmd output - more details
 
That was a great answer! Thanks!

I tried playing with it and can add:

If you are in the directory from which the command followed by & was issued, jobs shows no (wd...)
otherwise it shows was was answered - the directory in which the command & was run.


All times are GMT -5. The time now is 10:04 PM.