Skip to content

Commit

Permalink
new post
Browse files Browse the repository at this point in the history
  • Loading branch information
spsanderson committed Nov 8, 2024
1 parent 1ab8d94 commit 4453c9c
Show file tree
Hide file tree
Showing 7 changed files with 3,178 additions and 468 deletions.
932 changes: 466 additions & 466 deletions docs/index.html

Large diffs are not rendered by default.

1,079 changes: 1,079 additions & 0 deletions docs/posts/2024-11-08/index.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -12661,5 +12661,47 @@
"title": "Testing Data with If and Else If in C",
"section": "Solution",
"text": "Solution\n#include <stdio.h>\n\nint main() {\n int number;\n\n printf(\"Enter an integer: \");\n scanf(\"%d\", &number);\n\n if (number > 0) {\n printf(\"The number is positive.\\n\");\n } else if (number < 0) {\n printf(\"The number is negative.\\n\");\n } else {\n printf(\"The number is zero.\\n\");\n }\n\n return 0;\n}\n\n\n\nThe solution in my terminal"
},
{
"objectID": "posts/2024-11-08/index.html",
"href": "posts/2024-11-08/index.html",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "",
"text": "Linux, an open-source operating system known for its stability and flexibility, relies heavily on efficient process management. For beginners venturing into the world of Linux, understanding processes and mastering related commands is crucial for effective system administration and troubleshooting. This comprehensive guide will explore Linux processes, their management, and essential commands like ps, top, jobs, and bg, tailored specifically for newcomers to the Linux ecosystem.\n\n\nIn the Linux operating system, a process is defined as a program in execution. It represents an instance of a running program, encompassing both the program code and its current activity. Each process in Linux is assigned a unique Process ID (PID), which allows the operating system to manage and track it effectively.\n\n\n\nLinux Bootup Process\n\n\nImage: Linux bootup process, showcasing the initialization of various processes"
},
{
"objectID": "posts/2024-11-08/index.html#what-are-linux-processes",
"href": "posts/2024-11-08/index.html#what-are-linux-processes",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "",
"text": "In the Linux operating system, a process is defined as a program in execution. It represents an instance of a running program, encompassing both the program code and its current activity. Each process in Linux is assigned a unique Process ID (PID), which allows the operating system to manage and track it effectively.\n\n\n\nLinux Bootup Process\n\n\nImage: Linux bootup process, showcasing the initialization of various processes"
},
{
"objectID": "posts/2024-11-08/index.html#the-ps-command-process-status",
"href": "posts/2024-11-08/index.html#the-ps-command-process-status",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "The ps Command: Process Status",
"text": "The ps Command: Process Status\nThe ps command, short for “process status,” is used to display information about currently running processes on a Linux system. It provides a snapshot of the processes at the time the command is executed.\n\nBasic Usage of ps:\nps\nThis basic command will show processes associated with the current terminal session. For a more comprehensive view, you can use options like:\n\nps -A or ps -e: Lists all processes on the system.\nps -u username: Displays processes for a specific user.\nps -f: Shows a full-format listing, including parent-child relationships.\nps aux: Provides a detailed list of all processes with information such as CPU and memory usage.\n\nFor example, to see all processes with detailed information:\nps aux\nThis command is particularly useful for identifying resource-intensive processes or troubleshooting system issues."
},
{
"objectID": "posts/2024-11-08/index.html#the-top-command-real-time-process-monitoring",
"href": "posts/2024-11-08/index.html#the-top-command-real-time-process-monitoring",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "The top Command: Real-time Process Monitoring",
"text": "The top Command: Real-time Process Monitoring\nThe top command is an interactive tool that provides a real-time view of the system’s processes. It displays system resource usage, including CPU and memory, and allows users to manage processes directly from the interface.\n\nBasic Usage of top:\ntop\nWhen you run top, you’ll see a dynamic list of processes that updates regularly. The output includes:\n\nProcess ID (PID)\nUser\nPriority\nCPU and memory usage\nCommand name\n\nYou can interact with the top interface using various keyboard commands:\n\nPress k to kill a process (you’ll need to enter the PID)\nPress r to renice a process (change its priority)\nPress q to quit the top command\n\nThe top command is invaluable for monitoring system performance and identifying processes that may be consuming excessive resources."
},
{
"objectID": "posts/2024-11-08/index.html#the-jobs-command-managing-background-jobs",
"href": "posts/2024-11-08/index.html#the-jobs-command-managing-background-jobs",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "The jobs Command: Managing Background Jobs",
"text": "The jobs Command: Managing Background Jobs\nThe jobs command is used to list the jobs that are running in the background or have been stopped in the current shell session. It’s particularly useful for managing processes that have been started from the terminal.\n\nBasic Usage of jobs:\njobs\nThis command will display a list of all jobs with their statuses (running, stopped, etc.). You can use additional options for more specific information:\n\njobs -l: Lists process IDs in addition to the normal information.\njobs -r: Restricts output to running jobs.\njobs -s: Restricts output to stopped jobs.\n\nThe jobs command is essential for keeping track of background processes and managing multiple tasks simultaneously."
},
{
"objectID": "posts/2024-11-08/index.html#the-bg-command-resuming-background-jobs",
"href": "posts/2024-11-08/index.html#the-bg-command-resuming-background-jobs",
"title": "Understanding Linux Processes and Essential Commands: A Beginner’s Guide",
"section": "The bg Command: Resuming Background Jobs",
"text": "The bg Command: Resuming Background Jobs\nThe bg command is used to resume a suspended job in the background. This is particularly useful when a process has been stopped (e.g., using Ctrl+Z) and you want it to continue running without occupying the terminal.\n\nBasic Usage of bg:\nbg %job_id\nAfter suspending a job with Ctrl+Z, you can use bg followed by the job ID (which you can find using the jobs command) to resume it in the background. This allows for multitasking by letting users continue working on other tasks while the background job runs."
}
]
8 changes: 6 additions & 2 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@
</url>
<url>
<loc>https://www.spsanderson.com/steveondata/index.html</loc>
<lastmod>2023-03-28T12:23:03.885Z</lastmod>
<lastmod>2022-11-16T15:17:41.340Z</lastmod>
</url>
<url>
<loc>https://www.spsanderson.com/steveondata/about.html</loc>
Expand Down Expand Up @@ -1870,6 +1870,10 @@
</url>
<url>
<loc>https://www.spsanderson.com/steveondata/posts/2024-11-07/index.html</loc>
<lastmod>2024-11-07T12:36:53.959Z</lastmod>
<lastmod>2024-11-08T01:58:26.501Z</lastmod>
</url>
<url>
<loc>https://www.spsanderson.com/steveondata/posts/2024-11-08/index.html</loc>
<lastmod>2024-11-08T02:09:49.036Z</lastmod>
</url>
</urlset>
Loading

0 comments on commit 4453c9c

Please sign in to comment.