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

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

Boot and Services

See how Linux starts, and manage services with systemd.

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

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

Booting Linux

BIOS/UEFI → GRUB → kernel → systemd
the boot chain, in orderboot-এর ধাপ, ক্রমানুসারে
systemd-analyze
how long the last boot tookশেষ boot-এ কত সময় লেগেছিল
systemd-analyze blame
units, slowest firstunit, ধীরগুলো আগে
systemd-analyze critical-chain
the chain that held boot backযে ধারা boot দেরি করিয়েছে
journalctl -b
the log of this bootএই boot-এর log
journalctl --list-boots
all recorded bootsরেকর্ড করা সব boot
dmesg -T
kernel messages with readable timeskernel message, পড়ার মতো সময়সহ
/proc/cmdline
the options the kernel booted withkernel যে option নিয়ে চালু হয়েছে

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

Boot Loaders

ls /boot
kernels and initramfs imageskernel ও initramfs image
/etc/default/grub
edit GRUB settings here, not grub.cfg (Debian)GRUB-এর সেটিং এখানে বদলান, grub.cfg-এ নয় (Debian)
sudo update-grub
rebuild the GRUB menu (Debian, Ubuntu)GRUB menu আবার বানায় (Debian, Ubuntu)
sudo grub-mkconfig -o /boot/grub/grub.cfg
rebuild the menu (other distros)menu আবার বানায় (অন্য distro)
sudo grub-install DEV
Warningসতর্কতা: install GRUB; a wrong DEV can break bootGRUB বসায়; ভুল DEV হলে boot নাও হতে পারে
efibootmgr -v
the UEFI boot entriesUEFI boot entry-র তালিকা

Source 6সোর্স 6Source 7সোর্স 7Source 8সোর্স 8Source 9সোর্স 9Source 10সোর্স 10Source 11সোর্স 11Source 12সোর্স 12

Service Management

systemctl list-units --type=service
loaded servicesloaded service-এর তালিকা
systemctl list-unit-files --type=service
all installed services, enabled or notinstall করা সব service, চালু হোক বা না হোক
systemctl status NAME
state, PID, and the last log linesঅবস্থা, PID ও শেষ কয়েক লাইন log
systemctl --failed
units that failedযে unit ব্যর্থ হয়েছে
systemctl get-default
the default targetডিফল্ট target
systemctl cat NAME
show the unit fileunit file দেখায়
systemctl list-dependencies NAME
what the unit needsunit-টির যা দরকার

Source 13সোর্স 13

Creating Services

/etc/systemd/system/NAME.service
where your unit file goesআপনার unit file যেখানে থাকে
[Service] ExecStart=/usr/bin/CMD
the command to run: use a full pathযে command চলবে: পূর্ণ path দিন
Restart=on-failure
restart it if it crashescrash করলে আবার চালু করে
[Install] WantedBy=multi-user.target
start it in a normal bootস্বাভাবিক boot-এ চালু করে
systemd-analyze verify FILE.service
check a unit file for mistakesunit file-এ ভুল আছে কি না দেখে
sudo systemctl daemon-reload
re-read unit files after editingবদলের পরে unit file আবার পড়ে
sudo systemctl enable --now NAME
start it now and at every bootএখনই ও প্রতি boot-এ চালু করে

Source 14সোর্স 14Source 15সোর্স 15Source 13সোর্স 13Source 2সোর্স 2

Starting and Stopping Services

sudo systemctl start NAME
start nowএখন চালু করে
sudo systemctl stop NAME
stop nowএখন বন্ধ করে
sudo systemctl restart NAME
stop, then startবন্ধ করে আবার চালু করে
sudo systemctl reload NAME
re-read its config, if it supports thatconfig আবার পড়ে, যদি সে পারে
sudo systemctl enable NAME
start at every bootপ্রতি boot-এ চালু হবে
sudo systemctl disable NAME
do not start at bootboot-এ চালু হবে না
sudo systemctl enable --now NAME
enable and start in one stepচালু ও enable একসাথে
sudo systemctl mask NAME
make it impossible to startচালু করাই অসম্ভব করে দেয়

Source 13সোর্স 13

Checking Service Status

systemctl status NAME
state, PID, and the last log linesঅবস্থা, PID ও শেষ কয়েক লাইন log
systemctl is-active NAME
running? for scriptsচলছে কি? script-এর জন্য
systemctl is-enabled NAME
starts at boot?boot-এ চালু হয় কি?
systemctl is-failed NAME
did it fail?ব্যর্থ হয়েছে কি?
systemctl --failed
every failed unitব্যর্থ প্রতিটি unit
systemctl show NAME -p MainPID
one property of a unitunit-এর একটি property

Source 13সোর্স 13

Checking Service Logs

journalctl -u NAME
all logs of a unitএকটি unit-এর সব log
journalctl -u NAME -f
follow new lines liveনতুন লাইন লাইভ দেখায়
journalctl -u NAME -n 50
the last 50 linesশেষ ৫০ লাইন
journalctl -u NAME --since "1 hour ago"
only the last hourশুধু শেষ ১ ঘণ্টা
journalctl -u NAME -p err
errors and worseerror ও তার চেয়ে গুরুতর
journalctl -u NAME -b
this boot onlyশুধু এই boot
journalctl -xeu NAME
jump to the end, with explanationsশেষে যায়, ব্যাখ্যা-সহ

Source 3সোর্স 3

Running Services

systemctl --type=service --state=running
services running nowএখন চলমান service
systemctl status
an overview of the whole systemপুরো system-এর সারসংক্ষেপ
systemd-cgls
services and their processes, as a cgroup treeservice ও তাদের process, cgroup tree আকারে
systemd-cgtop
live CPU and memory for each cgroupপ্রতিটি cgroup-এর CPU ও memory, লাইভ
sudo ss -ltnp
which service listens on which portকোন service কোন port-এ শুনছে
journalctl -f
follow every new log lineপ্রতিটি নতুন log লাইন অনুসরণ করে

Source 13সোর্স 13Source 16সোর্স 16Source 17সোর্স 17Source 18সোর্স 18Source 3সোর্স 3

3 min read3 মিনিটে পড়া যায় · 8 sections8টি সেকশন · 18 sources18টি সোর্স · 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সোর্স18 · accessed 2026-11-04দেখা হয়েছে: 2026-11-04

Suggest an editএডিটের পরামর্শ দিন
  1. [1]bootup(7) - System bootup process
  2. [2]systemd-analyze(1) - Analyze and debug system manager
  3. [3]journalctl(1) - Print log entries from the systemd journal
  4. [4]dmesg(1) - print or control the kernel ring buffer
  5. [5]proc_cmdline(5) - kernel boot arguments
  6. [6]hier(7) - description of the filesystem hierarchy
  7. [7]Chapter 3. The system initialization
  8. [8]update-grub(8) - stub for grub-mkconfig
  9. [9]grub-mkconfig(8) - generate a GRUB configuration file
  10. [10]grub-install(8) - install GRUB to a device
  11. [11]efibootmgr(8) - manipulate the UEFI Boot Manager
  12. [12]ls(1) - list directory contents
  13. [13]systemctl(1) - Control the systemd system and service manager
  14. [14]systemd.service(5) - Service unit configuration
  15. [15]systemd.unit(5) - Unit configuration
  16. [16]systemd-cgls(1) - Recursively show control group contents
  17. [17]systemd-cgtop(1) - Show top control groups by their resource usage
  18. [18]ss(8) - another utility to investigate sockets