Существует ли способ заставить “вершину” работать точно однажды и выход?

Здесь подробное Визуальное Руководство для начальной загрузки с установочного носителя Debian на Win8: http://install-climber.blogspot.it/2013/01/howtoinstall-linuxdebian7wheezy-pcwindows8preinstalleduefi.html

13
30.07.2014, 19:38
2 ответа

В Linux можно попробовать:

top -bn1 > output.txt

С man top:

-b : Batch-mode operation
            Starts top in 'Batch' mode, which could be useful for sending
            output from top to other programs or  to  a  file.   In  this
            mode, top will not accept input and runs until the iterations
            limit you've set with the '-n' command-line option  or  until
            killed.
....
-n : Number-of-iterations limit as:  -n number
            Specifies  the  maximum  number of iterations, or frames, top
            should produce before ending.

С OS X, попробовать:

top -l 1

С top OSX manpage:

 -l <samples>
              Use logging mode and display <samples> samples, even if 
              standard output is a terminal. 0 is treated  as  infinity.   
              Rather than redisplaying, output is periodically printed in 
              raw form. Note that the first sample displayed will have an 
              invalid %CPU displayed for each process,  as it is calculated 
              using the delta between samples.
21
27.01.2020, 19:52

Чтобы получить похожие номера типов из системы Windows, вам нужно взглянуть на powershell.

Просто чтобы получить список ваших процессов, посмотрите на get-process . Взгляните на эту ссылку .

В процессе дальнейшего поиска нашла неплохую маленькую команду здесь .

Которая, если вы выберете из представленного цикла, для ваших нужд будет:

ps | sort -desc cpu | select -first 30

ps в powershell является псевдонимом для get-process.

1
27.01.2020, 19:52

Теги

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