This commit is contained in:
Yavuz Sava 2025-02-02 16:29:45 +03:00
parent 6e4c9561a4
commit 2b7f5b14a1

View File

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