码迷,mamicode.com
首页 > 系统相关 > 详细

LinuxNotes

时间:2018-11-03 18:20:29      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:hose   off   -name   put   running   default   pytho   show   creat   

[ show all running processes ]

ps -aux | less

‘ps‘ means: Process Status

The -a option tells ps to list the processes of all users on the system rather than just those of the current user, with the exception of group leaders and processes not associated with a terminal. A group leader is the first member of a group of related processes.

The -u option tells ps to provide detailed information about each process. The -x option adds to the list processes that have no controlling terminal, such as daemons, which are programs that are launched during booting (i.e., computer startup) and run unobtrusively in the background until they are activated by a particular event or condition.

As the list of processes can be quite long and occupy more than a single screen, the output of ps -aux can be piped (i.e., transferred) to the less command, which lets it be viewed one screenful at a time. The output can be advanced one screen forward by pressing the SPACE bar and one screen backward by pressing the b key.

 

[ create a new env with conda ]

conda create --name {ENV_NAME} python={PYTHON_VERSION}

There are 2 variables in the command line, ENV_NAME and PYTHON_VERSION. Decide them to your needs.

 

[ show the usage of the Nvidia GPUs]

nvidia-smi 

Some useful option:

-l : Output the status frequently, default parameter is 5. You can make it show every 10 seconds by nvidia-smi -l 10.

-i : Choose to show a certain GPU by this option.

-f : redirect the output to other file.

To get more informations officially, visit this doc: http://developer.download.nvidia.com/compute/DCGM/docs/nvidia-smi-367.38.pdf

 

LinuxNotes

标签:hose   off   -name   put   running   default   pytho   show   creat   

原文地址:https://www.cnblogs.com/hizhaolei/p/9900883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!