{"id":3272,"date":"2019-06-19T23:55:24","date_gmt":"2019-06-19T15:55:24","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3272"},"modified":"2019-06-19T23:55:26","modified_gmt":"2019-06-19T15:55:26","slug":"jobs","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/jobs","title":{"rendered":"jobs\u547d\u4ee4 – \u663e\u793ashell\u7684\u4f5c\u4e1a\u4fe1\u606f"},"content":{"rendered":"\n

jobs\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u7cfb\u7edf\u4e2d\u7684\u4efb\u52a1\u5217\u8868\u53ca\u5176\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n\n\n\n

\u8be5\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u4efb\u52a1\u53f7\u53ca\u5176\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7\uff0c\u5176\u4e2d\uff0c\u4efb\u52a1\u53f7\u662f\u4ee5\u666e\u901a\u7528\u6237\u7684\u89d2\u5ea6\u8fdb\u884c\u7684\uff0c\u800c\u8fdb\u7a0b\u53f7\u5219\u662f\u4ece\u7cfb\u7edf\u7ba1\u7406\u5458\u7684\u89d2\u5ea6\u6765\u770b\u7684\u3002\u4e00\u4e2a\u4efb\u52a1\u53ef\u4ee5\u5bf9\u5e94\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u8fdb\u7a0b\u53f7\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> jobs [\u53c2\u6570] [\u76ee\u5f55] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-l<\/td>\u663e\u793a\u4f5c\u4e1a\u5217\u8868\u65f6\u5305\u62ec\u8fdb\u7a0b\u53f7<\/td><\/tr>
-n<\/td>\u663e\u793a\u4e0a\u6b21\u4f7f\u7528jobs\u540e\u72b6\u6001\u53d1\u751f\u53d8\u5316\u7684\u4f5c\u4e1a<\/td><\/tr>
-p<\/td>\u663e\u793a\u4f5c\u4e1a\u5217\u8868\u65f6\u4ec5\u663e\u793a\u5176\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7<\/td><\/tr>
-r<\/td>\u4ec5\u663e\u793a\u8fd0\u884c\u7684\uff08running\uff09\u4f5c\u4e1a<\/td><\/tr>
-s<\/td>\u4ec5\u663e\u793a\u6682\u505c\u7684\uff08stopped\uff09\u4f5c\u4e1a<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u5f53\u524d\u7684\u4f5c\u4e1a\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# jobs <\/pre>\n\n\n\n

\u663e\u793a\u5f53\u524d\u7684\u4f5c\u4e1a\u53f7\u4ee5\u53ca\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# jobs -l<\/pre>\n\n\n\n

\u4ec5\u663e\u793a\u8fd0\u884c\u7684\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# jobs -r<\/pre>\n\n\n\n

\u4ec5\u663e\u793a\u6682\u505c\u7684\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# jobs -s<\/pre>\n\n\n\n

\u663e\u793a\u4e0a\u6b21\u4f7f\u7528jobs\u540e\u72b6\u6001\u53d1\u751f\u53d8\u5316\u7684\u4f5c\u4e1a\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# jobs -n <\/pre>\n","protected":false},"excerpt":{"rendered":"

jobs\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u7cfb\u7edf\u4e2d\u7684\u4efb\u52a1\u5217\u8868\u53ca\u5176\u8fd0\u884c\u72b6\u6001\u3002 \u8be5\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u4efb\u52a1\u53f7\u53ca\u5176\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7\uff0c\u5176\u4e2d\uff0c\u4efb\u52a1\u53f7\u662f\u4ee5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3272"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3272"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3272\/revisions"}],"predecessor-version":[{"id":3330,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3272\/revisions\/3330"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}