From 2b7f5b14a139f1c2abe1cd9eb00f1f885afc7aee Mon Sep 17 00:00:00 2001 From: Woose Date: Sun, 2 Feb 2025 16:29:45 +0300 Subject: [PATCH] update --- module6.ipynb | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/module6.ipynb b/module6.ipynb index 364def9..a16c31e 100644 --- a/module6.ipynb +++ b/module6.ipynb @@ -181,15 +181,32 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "##" + "## Redirections, Pipes, and Signals" ] }, { - "cell_type": "code", - "execution_count": null, + "cell_type": "markdown", "metadata": {}, - "outputs": [], - "source": [] + "source": [ + "**Managing streams**\n", + "These are the redirectors that we can use to take control of the streams of our programs\n", + "- command > file: redirects standard output, overwrites file\n", + "- command >> file: redirects standard output, appends to file\n", + "- command < file: redirects standard input from file\n", + "- command 2> file: redirects standard error to file\n", + "- command1 | command2: connects the output of command1 to the input of command2\n", + "\n", + "**Operating with processes**\n", + "These are some commands that are useful to know in Linux when interacting with processes. Not all of them are explained in videos, so feel free to investigate them on your own.\n", + "- ps: lists the processes executing in the current terminal for the current user\n", + "- ps ax: lists all processes currently executing for all users \n", + "- ps e: shows the environment for the processes listed \n", + "- kill PID: sends the SIGTERM signal to the process identified by PID\n", + "- fg: causes a job that was stopped or in the background to return to the foreground\n", + "- bg: causes a job that was stopped to go to the background\n", + "- jobs: lists the jobs currently running or stopped\n", + "- top: shows the processes currently using the most CPU time (press \"q\" to quit) " + ] } ], "metadata": {