diff --git a/commands/linux.ipynb b/commands/linux.ipynb index f51f8f8..8db385a 100644 --- a/commands/linux.ipynb +++ b/commands/linux.ipynb @@ -1,7 +1,7 @@ { "metadata": { "name": "", - "signature": "sha256:d6da9306516e7e363c08bf13bd61bd3a154b0d4cd9219b0c63bea4b86bc419b0" + "signature": "sha256:f63923c1db7648e284924abcd04bc2b08610cb91f0ab5379f4c3c06e79027c4b" }, "nbformat": 3, "nbformat_minor": 0, @@ -18,6 +18,7 @@ "* Splitting Files\n", "* Grep\n", "* Compression\n", + "* View Running Processes\n", "* Terminal Syntax Highlighting\n", "* Vim" ] @@ -237,6 +238,33 @@ "metadata": {}, "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", "metadata": {}, @@ -334,14 +362,6 @@ "language": "python", "metadata": {}, "outputs": [] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] } ], "metadata": {}