V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
codeplay
V2EX  ›  Linux

ps命令和jobs命令有什么不一样?

  •  
  •   codeplay · 2013-03-30 22:37:02 +08:00 · 3542 次点击
    这是一个创建于 4015 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在看The Linux Command Line
    糊涂了
    5 条回复    1970-01-01 08:00:00 +08:00
    swulling
        1
    swulling  
       2013-03-30 23:08:16 +08:00
    $ which ps
    /bin/ps
    $ which jobs
    jobs: shell built-in command

    then
    man ps
    man jobs
    andy12530
        2
    andy12530  
       2013-03-31 01:46:05 +08:00 via iPhone
    楼上已经说很好了。看手册

    一个是查看进程的命令
    后一个是看后台正在跑的任务
    thelordsaves
        3
    thelordsaves  
       2013-04-08 20:50:16 +08:00
    man ps
    help jobs
    ivanlw
        4
    ivanlw  
       2013-04-13 11:12:04 +08:00
    @swulling
    我在linux下which jobs打印空,mac下which jobs打印/usr/bin/jobs

    借此帖顺便问下……top和ps为什么显示出来的进程会差那么多呢?(我知道top会实时显示)……
    swulling
        5
    swulling  
       2013-04-13 18:03:12 +08:00
    @ivanlw
    man jobs
    man ps
    man top

    阅读man手册,你想要的都在里面
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5439 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:38 · PVG 16:38 · LAX 01:38 · JFK 04:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.