អាក្លូ អាក្លូ Author
Title: Process Management
Author: អាក្លូ
Rating 5 of 5 Des:
Listing Running Processes: ដើម្បីមើលនូវprocessesរបស់យើង យើងអាចប្រើនូវ ps command Example: ដើម្បីទទួលបាននូវ more information យើអាច...


Listing Running Processes:
ដើម្បីមើលនូវprocessesរបស់យើង យើងអាចប្រើនូវ ps command
Example:
ដើម្បីទទួលបាននូវ more information យើអាចប្រើនូវ-f(full) សំរាប់ps

Example:

Description of all fields ដែលបង្ហាញដោយps command
ColumnDescription
UIDUser ID that this process belongs to (the person running it).
PIDProcess ID
PPIDParent process ID (the ID of the process that start it).
CCPU utilization of process.
STIMEProcess start time.
TTYTerminal type associated with the process.
TIMECPU time take by the process.
CMDThe command that started this process.

Stopping Precesses
ប្រសិនបើយើងចង់kill process(background process) ដំបូងយើងត្រូវស្គាល់នូវJob ID ជាមុនសិន ដោយប្រើប្រាស់ps command បន្ទាប់មកប្រើនូវkill command
Example:


Parent and Child Processes
គ្រប់ Linux process និមួយៗមាននូវលេខID ចំនួនពីរគឺProcess ID(PID) និង Parent Process ID(PPID)។ចំពោះuser process និមួយៗគឺមាននូវ Parent Process ID មួយ។
Zombie and Orphan Processes
នៅពេលដែល Child Process ត្រូវបានKilled នោះ Parent Process ត្រូវបានដឹងតាមរយះSIGCHLD signal បន្ទាប់មកParentអាចធ្វើការងារផ្សេងទៀតរឺRestart new Child។ហើយពេលខ្លះ Parent Process ត្រូវបានKill មុនChild Process ក្នុងករណីនេះ “Parent of All Processes”  init process ក្លាយជាParent Process ថ្មី ហើយត្រូវបានគេហៅថា Orphan Process។នៅពេលដែលProcess មួយត្រូវបានKill ហើយps command និងធ្វើការlisting នូវProcessជាមួយនូវអក្សរ Z state ករណីនេះគេហៅថាZombie Process។
The top Command:
top Command គឺប្រើសំរាប់showនូវProcesses ដែល Sorted តាម various criteria
Linux Communication
The ping Utility:
The ping Command ប្រើសំរាប់ send an echo request ទៅកាន់ host ណាដែល available នៅលើបណ្តាញNetwork។យើងអាចប្រើCommand នេះដើម្បីត្រួតពិនិត្យមើលremote host respond ល្អរឺមិនល្អ។
Syntax:
ping hostname or ip-address
The ftp Utility:
Utilityអនុញ្ញាតិអោយយើងអាចUpload រឺ Download File ពីComputer មួយទៅ Computer មួយទៀត។
Syntax:
ftp hostname or ip-address
Command ដែលប្រើជាមួយftp Command:
CommandDescription
put filenameUpload filename from local machine to remote machine
get filenameDownload filename from remote machine to local machine.
mput file listUpload more the one files from local machine to remove machine.
mget file listDownload more than one files from remote machine to local machine.
prompt offTurn prompt off , by default you would be prompted to upload or download movies using mput or mget commands.
prompt onTurns prompt on.
dirList all the files available in the current directory of remote machine.
cd dirnameChange directory to dimame on remote machine.
lcd dirnameChange directory to dimame on local machine.
The telnet Utility: telnet គឺជា utility មួយដែលអនុញ្ញាតិអោយComputer User ដែលស្ថិតនៅតំបន់មួយអាចធ្វើការConnection ទៅកាន់Computer ផ្សេងទៀតដែលស្ថិតនៅតំបន់ផ្សេងគ្នា។
The finger Utility:
The finger Command ប្រើសំរាប់displayនូវរាល់Information អំពីUsersនៅhost។ Host អាចជាLocal រឺ Remote។

About Author

Advertisement

Post a Comment

 
Top