<dl id='y0990'></dl>
<acronym id='y0990'><em id='y0990'></em><td id='y0990'><div id='y0990'></div></td></acronym><address id='y0990'><big id='y0990'><big id='y0990'></big><legend id='y0990'></legend></big></address>
<i id='y0990'><div id='y0990'><ins id='y0990'></ins></div></i>

  • <fieldset id='y0990'></fieldset>
    <i id='y0990'></i>
    <ins id='y0990'></ins>

      1. <span id='y0990'></span>

        <code id='y0990'><strong id='y0990'></strong></code>

          1. <tr id='y0990'><strong id='y0990'></strong><small id='y0990'></small><button id='y0990'></button><li id='y0990'><noscript id='y0990'><big id='y0990'></big><dt id='y0990'></dt></noscript></li></tr><ol id='y0990'><table id='y0990'><blockquote id='y0990'><tbody id='y0990'></tbody></blockquote></table></ol><u id='y0990'></u><kbd id='y0990'><kbd id='y0990'></kbd></kbd>

            Linux 快捷键使用

            • 时间:
            • 浏览:8
            • 来源:124软件资讯网

                下令运行时使用CTRL+Z,强制当前历程转为后台,并使之制止.

                1. 使历程恢复运行(后台)

                (1)使用下令bg

                Example:

                zuii@zuii-desktop:~/unp/tcpcliserv$ ./tcpserv01

                *这里使用CTRL+Z,此时serv01是制止状态*

                [1]+ Stopped ./tcpserv01

                zuii@zuii-desktop:~/unp/tcpcliserv$ bg

                [1]+ ./tcpserv01 & *此时serv01运行在后台*

                zuii@zuii-desktop:~/unp/tcpcliserv$

                (2)若是用CTRL+Z制止了几个法式呢?

                Example:

                zuii@zuii-desktop:~/unp/tcpcliserv$ jobs

                [1]- Running ./tcpserv01 &

                [2]+ Stopped ./tcpcli01 127.0.0.1

                zuii@zuii-desktop:~/unp/tcpcliserv$ bg %1

                bash: bg:使命 1 已转入后台 *后台运行*

                2. 使历程恢复至前台运行

                Example:

                zuii@zuii-desktop:~/unp/tcpcliserv$ ./tcpserv04

                [1]+ Stopped ./tcpserv04

                zuii@zuii-desktop:~/unp/tcpcliserv$ fg

                ./tcpserv04

                总结:

                (1) CTRL+Z制止历程并放入后台

                (2) jobs 显示当前暂停的历程

                (3) bg %N 使第N个使命在后台运行(%前有空格)

                (4) fg %N 使第N个使命在前台运行

                默认bg,fg不带%N时表现对最后一个历程操作!