Uploaded by Tran Minh Khoa (K18 HCM)

LAB03 OSG BuiChuongQuocTuong SE180199

advertisement
Present the content of manipulating of some command (including syntax, what
does it for?, capture two of examples for each command)
pstree -np
pstree command in Linux that shows the running processes as a tree which is a more
convenient way to display the processes hierarchy and makes the output more visually
appealing.
Syntax:
pstree [options] [pid or username]
Example 1:
Example 2:
Pstree -np:
Display process identifier or PID and sort processes by PID instead of name with flag.
Pkill
pkill is a command-line utility that sends signals to the processes of a running program
based on given criteria.
Syntax:
pkill [options] <pattern>
Example 1:
Example 2:
Uptime
Uptime is used to find out how long the system is active (running).
Syntax:
uptime [-options]
Example 1:
Example 2:
Free
free command displays the total amount of free space available along with the amount of
memory used and swap memory in the system, and also the buffers used by the kernel.
Syntax:
free [OPTION]
Example 1:
Example 2:
Capture the terminal screen using the “pgrep –u root” command. Explain the
result of the capture
Function: Show all processes related to root user (most powerful user).
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).
By command:
By GUI:
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.
Click Activities -> click Software
Access the Software icon on the taskbar and type the name of any apps on search bar that you want to
get it.
To get the app you want, click on the Install of the chosen app.
To Remove we click on the Unistall one of the Software we want to delete
Update
By terminal:
Download