Как я могу интерпретировать код «управляющего терминала» вывода ps?

Драйвер ath10k недоступен в debian jessie, вы должны получить его из резервных портов.

Добавьте следующую строку в свой /etc/apt/sources.list :

deb http://httpredir.debian.org/debian jessie-backports main contrib non-free

Найдите и установите новое ядро ​​из резервных портов:

apt-cache search linux-image
apt-get install linux-image-xxx
apt-get install linux-headers-xxx

Перезагрузитесь, затем установите firmware-atheros из бэкпортов:

apt-get update
apt-get -t jessie-backports install firmware-atheros
modprobe ath10k

1
09.02.2017, 16:44
2 ответа

От человек пс :

PROCESS STATE CODES
       Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process:

           D    uninterruptible sleep (usually IO)
           R    running or runnable (on run queue)
           S    interruptible sleep (waiting for an event to complete)
           T    stopped by job control signal
           t    stopped by debugger during the tracing
           W    paging (not valid since the 2.6.xx kernel)
           X    dead (should never be seen)
           Z    defunct ("zombie") process, terminated but not reaped by its parent

       For BSD formats and when the stat keyword is used, additional characters may be displayed:

           <    high-priority (not nice to other users)
           N    low-priority (nice to other users)
           L    has pages locked into memory (for real-time and custom IO)
           s    is a session leader
           l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
           +    is in the foreground process group
1
27.01.2020, 23:46

Найдите столбец ttв выводе psи используйте команду ttyследующим образом:

$ps ax |more
  PID   TT  STAT      TIME COMMAND
    1   ??  Ss     4:58.84 /sbin/launchd
   66   ??  Ss     1:05.03 /usr/sbin/syslogd
   67   ??  Ss     0:21.62 /usr/libexec/UserEventAgent (System)


$ps ax |grep bash
81939 s000  S+     0:00.09 -bash
82152 s001  S      0:00.04 -bash
82228 s001  S+     0:00.00 grep -I bash


$tty
/dev/ttys001


$ps ax |grep offlineimap-load
82261 s000  S+     0:00.02 /bin/bash /Users/pbarganski/Documents/bin/offlineimap-load
82417 s001  R+     0:00.01 grep -i offlineimap-load

Из приведенного выше, команда ttyсообщает мне, в каком терминале я сейчас нахожусь -терминал 's000' в данном случае.

Из последней команды вы заметите, что команда grep -iбыла запущена из терминала s001 , моего текущего окна терминала, однако скрипт offlineimap -load работает с управляющего терминала s000-мой первый сеанс терминала -, который в данном случае является просто терминалом первой вкладки в terminal.app.

0
27.01.2020, 23:46

Теги

Похожие вопросы