mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added commands to view running processes.
This commit is contained in:
parent
14ea9025c1
commit
f1f69fbd19
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"signature": "sha256:d6da9306516e7e363c08bf13bd61bd3a154b0d4cd9219b0c63bea4b86bc419b0"
|
"signature": "sha256:f63923c1db7648e284924abcd04bc2b08610cb91f0ab5379f4c3c06e79027c4b"
|
||||||
},
|
},
|
||||||
"nbformat": 3,
|
"nbformat": 3,
|
||||||
"nbformat_minor": 0,
|
"nbformat_minor": 0,
|
||||||
|
@ -18,6 +18,7 @@
|
||||||
"* Splitting Files\n",
|
"* Splitting Files\n",
|
||||||
"* Grep\n",
|
"* Grep\n",
|
||||||
"* Compression\n",
|
"* Compression\n",
|
||||||
|
"* View Running Processes\n",
|
||||||
"* Terminal Syntax Highlighting\n",
|
"* Terminal Syntax Highlighting\n",
|
||||||
"* Vim"
|
"* Vim"
|
||||||
]
|
]
|
||||||
|
@ -237,6 +238,33 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"## View Running Processes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"collapsed": false,
|
||||||
|
"input": [
|
||||||
|
"# Display sorted info about processes\n",
|
||||||
|
"top\n",
|
||||||
|
"\n",
|
||||||
|
"# Display all running processes\n",
|
||||||
|
"ps aux | less\n",
|
||||||
|
"\n",
|
||||||
|
"# See processes run by user dmartin\n",
|
||||||
|
"ps -u dmartin\n",
|
||||||
|
"\n",
|
||||||
|
"# Display running processes as a tree\n",
|
||||||
|
"pstree"
|
||||||
|
],
|
||||||
|
"language": "python",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
@ -334,14 +362,6 @@
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"collapsed": false,
|
|
||||||
"input": [],
|
|
||||||
"language": "python",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {}
|
"metadata": {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user