Skip to contentমূল লেখায় যান

Stage 05 · Linuxধাপ 05 · Linux · 8 topics · 27 commands8টি টপিক · 27টি কমান্ড

Processes

List, run in the background, signal, and limit processes.

UPPERCASE = your own value · red ! = can destroy data · tick a card when you know itUPPERCASE = আপনার নিজের মান · লাল ! = data নষ্ট করতে পারে · জানা হলে কার্ডে টিক দিন

0 / 8 done0 / 8 সম্পন্ন

Process Management

ps
the processes of this terminalএই terminal-এর process
ps aux
every process, with user, CPU, memoryসব process, user, CPU ও memory-সহ
top
live list; q quitsলাইভ তালিকা; q বন্ধ করে
htop
friendlier live list (install it first)আরও সহজ লাইভ তালিকা (আগে install করুন)
pstree
processes as a treeprocess-গুলো tree আকারে
uptime
how long up, and the loadকতক্ষণ চালু আর load কত
watch -n 2 CMD
repeat a command every 2 secondsপ্রতি ২ সেকেন্ডে command চালায়

Source 1সোর্স 1Source 2সোর্স 2Source 3সোর্স 3Source 4সোর্স 4Source 5সোর্স 5Source 6সোর্স 6

Listing and Finding Processes

ps aux
all processesসব process
ps -ef
all processes, with the parent PIDসব process, parent PID-সহ
ps -p PID -o pid,ppid,cmd
details of one processএকটি process-এর বিস্তারিত
ps aux --sort=-%mem
the biggest memory users firstযারা বেশি memory নেয় তারা আগে
pgrep -a NAME
find processes by nameনাম দিয়ে process খোঁজে
pidof NAME
the PID of a programprogram-এর PID
ps aux | grep NAME
search the list (it also finds grep)তালিকায় খোঁজে (grep নিজেও আসে)
lsof -i :PORT
which process uses a portকোন process কোন port ব্যবহার করছে

Source 1সোর্স 1Source 7সোর্স 7Source 8সোর্স 8Source 9সোর্স 9

Background and Foreground Processes

CMD &
run in the backgroundbackground-এ চালায়
jobs
list the background jobsbackground job-এর তালিকা
fg %1
bring job 1 to the foreground১ নম্বর job foreground-এ আনে
bg %1
let job 1 run in the background১ নম্বর job background-এ চালায়
Ctrl+Z
pause the running commandচলমান command থামিয়ে রাখে
nohup CMD &
keep running after you log outlogout-এর পরেও চলতে থাকে
disown %1
detach job 1 from the shell১ নম্বর job shell থেকে আলাদা করে
wait
wait for the background jobs to finishbackground job শেষ হওয়া পর্যন্ত অপেক্ষা করে

Source 10সোর্স 10Source 11সোর্স 11

Killing Processes

kill PID
ask a process to stop (SIGTERM)process-কে থামতে বলে (SIGTERM)
kill -9 PID
force it to stop; no clean-up (SIGKILL)জোর করে থামায়; cleanup হয় না (SIGKILL)
pkill NAME
kill by nameনাম দিয়ে kill করে
pkill -f PATTERN
match the whole command lineপুরো command line মেলায়
killall NAME
kill every process with that nameওই নামের সব process kill করে

Source 12সোর্স 12Source 7সোর্স 7Source 13সোর্স 13Source 10সোর্স 10

Process Signals

kill -l
list the signal namessignal-এর নামের তালিকা
kill -TERM PID
15: polite stop, can clean up (default)১৫: ভদ্রভাবে থামায়, cleanup করতে পারে (ডিফল্ট)
kill -KILL PID
9: forced, cannot be caught৯: জোর করে, process ধরতে পারে না
kill -HUP PID
1: hang up; many daemons reload১: hang up; অনেক daemon config আবার পড়ে
kill -STOP PID
pause a processprocess থামিয়ে রাখে
kill -CONT PID
resume a paused processথামানো process আবার চালায়
Ctrl+C
SIGINT: interrupt the running commandSIGINT: চলমান command বন্ধ করে
trap 'CMD' INT
run a handler when the signal arrivessignal এলে একটি handler চালায়

Source 14সোর্স 14Source 12সোর্স 12Source 10সোর্স 10

Process Priorities

nice -n 10 CMD
start with a lower priority (-20 high … 19 low)কম priority-তে চালু করে (-20 বেশি … 19 কম)
sudo nice -n -5 CMD
a higher priority needs rootবেশি priority-র জন্য root লাগে
renice -n 5 -p PID
change a running processচলমান process-এর priority বদলায়
ps -o pid,ni,cmd -p PID
show the nice valuenice value দেখায়
ionice -c 3 CMD
lowest disk priority (idle)disk-এর সবচেয়ে কম priority (idle)

Source 15সোর্স 15Source 16সোর্স 16Source 17সোর্স 17Source 1সোর্স 1

Process Forking

pstree -p
the process tree, with PIDsprocess tree, PID-সহ
ps -ef --forest
the tree in a ps listps-এর তালিকায় tree আকারে
ps -o pid,ppid,cmd
PID and parent PID columnsPID ও parent PID column
echo $$ $PPID
this shell's PID and its parent'sএই shell-এর PID ও তার parent-এর PID
bash -c 'echo $$'
a child shell has a new PIDchild shell-এর নতুন PID থাকে
strace -f -e trace=process CMD
watch forks and execsfork ও exec ঘটনা দেখায়

Source 4সোর্স 4Source 1সোর্স 1Source 18সোর্স 18Source 10সোর্স 10

Ulimits

ulimit -a
show all limitsসব limit দেখায়
ulimit -n
max open filesসর্বোচ্চ open file
ulimit -n 4096
raise it for this shellএই shell-এর জন্য বাড়ায়
ulimit -u
max user processesসর্বোচ্চ user process
ulimit -Hn
the hard limit for open filesopen file-এর hard limit
prlimit --pid PID
limits of a running processচলমান process-এর limit
/etc/security/limits.conf
user limits, applied at each loginuser-দের limit, প্রতিটি login-এ প্রযোজ্য

Source 10সোর্স 10Source 19সোর্স 19Source 20সোর্স 20

3 min read3 মিনিটে পড়া যায় · 8 sections8টি সেকশন · 20 sources20টি সোর্স · updated Nov 2026আপডেট: Nov 2026

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

Sourcesসোর্স20 · accessed 2026-11-27দেখা হয়েছে: 2026-11-27

Suggest an editএডিটের পরামর্শ দিন
  1. [1]ps(1) - report a snapshot of the current processes
  2. [2]top(1) - display Linux processes
  3. [3]htop(1) - interactive process viewer
  4. [4]pstree(1) - display a tree of processes
  5. [5]watch(1) - execute a program periodically, showing output fullscreen
  6. [6]uptime(1) - tell how long the system has been running
  7. [7]pgrep(1) - look up, signal, or wait for processes based on name and other attributes
  8. [8]pidof(8) - find the process ID of a running program
  9. [9]lsof(8) - list open files
  10. [10]bash(1) - GNU Bourne-Again SHell
  11. [11]nohup(1) - run a command immune to hangups, with output to a non-tty
  12. [12]kill(1) - terminate a process
  13. [13]killall(1) - kill processes by name
  14. [14]signal(7) - overview of signals
  15. [15]nice(1) - run a program with modified scheduling priority
  16. [16]renice(1) - alter priority of running processes
  17. [17]ionice(1) - set or get process I/O scheduling class and priority
  18. [18]strace(1) - trace system calls and signals
  19. [19]prlimit(1) - get and set process resource limits
  20. [20]limits.conf(5) - configuration file for the pam_limits module