SlideShare a Scribd company logo
www.glcnetworks.com
Managing
Process in
UNIX/Linux
GLC webinar, 24 Dec 2020
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
1
www.glcnetworks.com
Agenda
● Introduction
● UNIX process
● Process management
● Background vs foreground process
● Signal
● Live practice
● Q & A
2
www.glcnetworks.com
introduction
3
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● Based in Bandung, Indonesia
● Areas: Training, IT Consulting
● Certified partner for: Mikrotik, Ubiquity, Linux foundation
● Product: GLC radius manager
● Regular event
4
www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user since 1999, mikrotik user since 2007, UBNT
2011
● Mikrotik Certified Trainer
(MTCNA/RE/WE/UME/INE/TCE/IPv6)
● Mikrotik/Linux Certified Consultant
● Website contributor: achmadjournal.com, mikrotik.tips,
asysadmin.tips
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
www.glcnetworks.com
Past experiences
6
● 2020 (Congo DRC, Malaysia): IOT integration,
network automation
● 2019, Congo (DRC): build a wireless ISP from
ground-up
● 2018, Malaysia: network revamp, develop billing
solution and integration, setup dynamic routing
● 2017, Libya (north africa): remote wireless migration
for a new Wireless ISP
● 2016, United Kingdom: workshop for wireless ISP,
migrating a bridged to routed network
● 2015, West Kalimantan: supporting wireless
infrastructure project
www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new year
with solaris OS)
● As a sharing event with various topics:
linux, networking, wireless, database,
programming, etc
● Regular schedule
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/schedule
● You are invited to be a presenter
○ No need to be an expert
○ This is a forum for sharing: knowledge,
experiences, information
7
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
8
www.glcnetworks.com
UNIX process
9
www.glcnetworks.com
What is process
Process is an instance (execution) of a program.
Properties:
● OS will allocate resource to process (CPU, RAM)
● Have a process id
● Can have child process
Example:
● Executing command
● Running a GUI
● Open a browser, accessing URL
10
www.glcnetworks.com
Process type
● Foreground
○ Default mode when executing process
○ Will occupy console, cannot do anything else
● Background
○ Usually for daemon/services
○ Can be done using “&” during execution
Multitasking?
11
www.glcnetworks.com
Zombie and orphan process
● In normal situation:
○ when a child process is killed, the parent process is updated via a SIGCHLD signal. Then the
parent can do some other task or restart a new child as needed.
● In not normal situation:
○ parent process is killed before its child is killed.
○ the "parent of all processes," the init process, becomes the new PPID (parent process ID). In
some cases, these processes are called orphan processes.
● Zombie process (Z)
○ This is a zombie or defunct process
○ The process is dead and not being used
● Orphan processes.
○ They have completed execution but still find an entry in the process table.
●
●
12
www.glcnetworks.com
Process vs job
● Process
○
● Job:
○
13
www.glcnetworks.com
Process vs thread
● Process
○ Normal procss
● Thread
○ Aka LWP (lightweight process)
○ One process that is divided into several subprocess (aka. thread).
○ The subprocess is not called child process
14
www.glcnetworks.com
Process management
15
www.glcnetworks.com
Managing process
● Display process:
○ ps
○ Top
● job
● Send signal:
○ kill
16
www.glcnetworks.com
Sending signal to process
17
www.glcnetworks.com
What, why is signal?
● Signals are a limited form of inter-process communication (IPC)
● To send data/command between process
● Typically used in Unix, Unix-like, and other POSIX-compliant operating
systems.
18
www.glcnetworks.com
Example of signal
19
Signal Portable
number
Default action Description
SIGABRT 6 Terminate (core dump) Process abort signal
SIGALRM 14 Terminate Alarm clock
SIGBUS N/A Terminate (core dump) Access to an undefined portion of a memory object
SIGCHLD N/A Ignore Child process terminated, stopped, or continued
SIGCONT N/A Continue Continue executing, if stopped
SIGFPE 8 Terminate (core dump) Erroneous arithmetic operation
SIGHUP 1 Terminate Hangup
SIGILL 4 Terminate (core dump) Illegal instruction
SIGINT 2 Terminate Terminal interrupt signal
www.glcnetworks.com
LIVE practice
20
www.glcnetworks.com
preparation
● SSH client
● SSH parameters
○ SSH address
○ SSH port
○ SSH username
○ SSH password
21
www.glcnetworks.com
R1
AS11
R2
AS11
E2
E2
E3
E3
E6
R3
AS13
R4
AS13
E2
E2
E3
E3
E6
R5
AS15
R6
AS15
E2
E2
E3
E3
E6
R7
AS17
R8
AS17
E2
E2
E3
E3
E6
R9
AS19
R10
AS19
E2
E2
E3
E3
E6
SW86
192.168.86.X/24
R86
AS86
R85
AS85
R98
R88
AS88
R87
AS87
E6
E6
E3
E3
E5
E2
E5
E3
E3
E2
TOPOLOGY 1
LAB: Mikrotik
E6
E6
E2
E6 E6 E6
PC101
E2
PC102
E2
PC103
E2
PC104
E2
PC105
E2
PC106
E2
PC107
E2
PC108
E2
PC109
E2
PC110
www.glcnetworks.com
Q & A
23
www.glcnetworks.com
Interested? Just come to our training...
● Topics are arranged in systematic and logical way
● You will learn from experienced teacher
● Not only learn the materials, but also sharing experiences, best-practices, and
networking
24
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: https://www.facebook.com/glcnetworks
● Slide: http://www.slideshare.net/r41nbuw
● Recording (youtube): https://goo.gl/28ABHU
● Stay tune with our schedule
● Any questions?
25

More Related Content

PPTX
Ext GWT - Overview and Implementation Case Study
PDF
Using Mountebank to inject behavior into test stubs
PDF
Socket Programming with Python
PDF
Running Moodle for High Concurrent Users
PDF
Introduction to Python
PDF
Zabbix for Monitoring
PDF
Mikrotik Hotspot
PDF
Zettabyte File System (ZFS)
Ext GWT - Overview and Implementation Case Study
Using Mountebank to inject behavior into test stubs
Socket Programming with Python
Running Moodle for High Concurrent Users
Introduction to Python
Zabbix for Monitoring
Mikrotik Hotspot
Zettabyte File System (ZFS)

Similar to Managing Process in UNIX/Linux (20)

PDF
Up and Running SSH Service - Part 1
PDF
Network Monitoring with The Dude and Whatsapp
PDF
Mikrotik firewall mangle
PDF
Mikrotik firewall raw table
PDF
Using GIT for Everyone
PDF
Layer 7 Firewall on Mikrotik
PDF
EOIP Deep Dive
PDF
CCNA : Intro to Cisco IOS - Part 1
PDF
Mikrotik fasttrack
PDF
Building a Web Server with NGINX
PDF
Machine Learning with Python
PDF
Mikrotik Fastpath vs Fasttrack
PDF
Mikrotik the dude
PDF
Building Web Server with Linux
PDF
Mikrotik firewall filter
PDF
Dynamic Website with Python
PDF
RouterOS Migration From v6 to v7
PDF
Using protocol analyzer on mikrotik
PDF
Using Control-Webpanel for Hosting Service - Part 1
PDF
MTCNA Intro to routerOS
Up and Running SSH Service - Part 1
Network Monitoring with The Dude and Whatsapp
Mikrotik firewall mangle
Mikrotik firewall raw table
Using GIT for Everyone
Layer 7 Firewall on Mikrotik
EOIP Deep Dive
CCNA : Intro to Cisco IOS - Part 1
Mikrotik fasttrack
Building a Web Server with NGINX
Machine Learning with Python
Mikrotik Fastpath vs Fasttrack
Mikrotik the dude
Building Web Server with Linux
Mikrotik firewall filter
Dynamic Website with Python
RouterOS Migration From v6 to v7
Using protocol analyzer on mikrotik
Using Control-Webpanel for Hosting Service - Part 1
MTCNA Intro to routerOS
Ad

More from GLC Networks (20)

PDF
Firewall mangle PBR: steering outbound path similar to inbound
PDF
Internal BGP tuning: Mesh peering to avoid loop
PDF
BGP tuning: Peer with loopback
PDF
BGP security tuning: pull-up route
PDF
BGP troubleshooting: route origin
PDF
Steering traffic in OSPF: Interface cost
PDF
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
PDF
Tuning OSPF: Prefix Aggregate
PDF
Tuning OSPF: area hierarchy, LSA, and area type
PDF
Stable OSPF: choosing network type.pdf
PDF
Controlling Access Between Devices in the same Layer 2 Segment
PDF
GIT as Mikrotik Configuration Management
PDF
Best Current Practice (BCP) 38 Ingress Filtering for Security
PDF
Policy Based Routing with Indirect BGP - Part 2
PDF
Policy Based Routing with Indirect BGP - Part 1
PDF
Internet Protocol Deep-Dive
PDF
Mikrotik IP Settings For Performance and Security
PPTX
Automatic Backup via FTP - Part 2
PDF
Automatic Backup via FTP - Part 1
PDF
Voice Services, From Circuit Switch to VoIP
Firewall mangle PBR: steering outbound path similar to inbound
Internal BGP tuning: Mesh peering to avoid loop
BGP tuning: Peer with loopback
BGP security tuning: pull-up route
BGP troubleshooting: route origin
Steering traffic in OSPF: Interface cost
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
Tuning OSPF: Prefix Aggregate
Tuning OSPF: area hierarchy, LSA, and area type
Stable OSPF: choosing network type.pdf
Controlling Access Between Devices in the same Layer 2 Segment
GIT as Mikrotik Configuration Management
Best Current Practice (BCP) 38 Ingress Filtering for Security
Policy Based Routing with Indirect BGP - Part 2
Policy Based Routing with Indirect BGP - Part 1
Internet Protocol Deep-Dive
Mikrotik IP Settings For Performance and Security
Automatic Backup via FTP - Part 2
Automatic Backup via FTP - Part 1
Voice Services, From Circuit Switch to VoIP
Ad

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPT
Teaching material agriculture food technology
PDF
Advanced IT Governance
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
Electronic commerce courselecture one. Pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Review of recent advances in non-invasive hemoglobin estimation
NewMind AI Weekly Chronicles - August'25 Week I
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced Soft Computing BINUS July 2025.pdf
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Teaching material agriculture food technology
Advanced IT Governance
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Chapter 2 Digital Image Fundamentals.pdf
Electronic commerce courselecture one. Pdf

Managing Process in UNIX/Linux