Added commands to view running processes.

This commit is contained in:
Donne Martin 2015-03-01 15:51:25 -05:00
parent 14ea9025c1
commit f1f69fbd19

View File

@ -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": {}