LAB 3 - Ho Dinh Anh

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

LAB 3 – OPERATING SYSTEM

Hồ Đình Anh – SE180670


Process Management
+View the running process on the system uses the ps (process status) command

Option
-a
-ax

-axl

+Stop a process
Some System command
+vmstat (view status of virtual memory)

+pstree –np
+pgrep : list process following name, properties …

+pkill
+Uptime

+free
Edit program: vi
Command
:w: write file

:q: exit vi
Submission
Present the content of manipulating of some command (including syntax, what
does it for?, capture two of examples for each command)
+pstree –np: make pstree sort processes based on PID
Make pstree include command line arguments in output as well

+pkill
Kill processes being run by a given user

+uptime: returns information about how long your system has been running together with the
current time, number of users with running sessions
Output version information

+free: get a detailed report on the system’s memory usage

show detailed low and high memory statistics


Capture the terminal screen using the “pgrep –u root” command. Explain the result of the capture
+Display processes being run by root

How to open same “Task Manager” as Windows in Linux that shows the processes tab? Capture
that windows (using both command and GUI on taskbar).
+Using GUI
+Using command line
How to open same “Add/Remove Program” as Windows in Linux that allows to update or
remove the package software to OS? Capture that window.

You might also like