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

Stage 11 · Linuxধাপ 11 · Linux · 6 topics · 22 commands6টি টপিক · 22টি কমান্ড

Troubleshooting

Check the health of a server, read the logs, and find the cause of a fault.

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

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

Server Review

uptime
load average and uptimeload average ও uptime
free -h
memory; read the available columnmemory; available column দেখুন
df -h
disk space per filesystemপ্রতিটি filesystem-এর ফাঁকা জায়গা
top
who uses CPU and memory; q quitsকে CPU ও memory নিচ্ছে; q বন্ধ করে
dmesg -T --level=err,warn
kernel errors, warnings (may need sudo)kernel-এর error ও warning (sudo লাগতে পারে)
journalctl -p err -b
errors since bootboot-এর পর থেকে error
systemctl --failed
failed servicesব্যর্থ service
ss -tulpn
what is listeningকী শুনছে

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

Uptime and Load

uptime
load averages for 1, 5, and 15 minutes১, ৫ ও ১৫ মিনিটের load average
/proc/loadavg
the raw load numbersload-এর কাঁচা সংখ্যা
nproc
CPU count; compare the load to itCPU সংখ্যা; load-এর সাথে তুলনা করুন
top
live view; 1 shows each CPU, q quitsলাইভ দৃশ্য; 1 প্রতিটি CPU দেখায়, q বন্ধ করে
vmstat 1 5
CPU, memory, and I/O: 5 samplesCPU, memory ও I/O: ৫টি নমুনা
iostat -x 1 3
disk busy time and waits (sysstat)disk-এর ব্যস্ততা ও অপেক্ষা (sysstat)
w
load average and who is logged inload average ও কে login করে আছে

Source 1সোর্স 1Source 9সোর্স 9Source 10সোর্স 10Source 4সোর্স 4Source 11সোর্স 11Source 12সোর্স 12Source 13সোর্স 13

Available Memory and Disk

free -h
read 'available', not 'free''available' দেখুন, 'free' নয়
/proc/meminfo
MemAvailable: memory for new programsMemAvailable: নতুন program-এর জন্য memory
df -h
free space per filesystemপ্রতিটি filesystem-এর ফাঁকা জায়গা
df -i
inode use instead of block useblock-এর বদলে inode-এর ব্যবহার
du -xh --max-depth=1 /var
what is big under /var/var-এর নিচে কী বড়
du -sh * | sort -h
sizes here, biggest lastএখানকার size, বড়টি শেষে

Source 2সোর্স 2Source 14সোর্স 14Source 3সোর্স 3Source 15সোর্স 15Source 16সোর্স 16

System Logs

journalctl -b
this boot's logএই boot-এর log
journalctl -p err -b
errors since bootboot-এর পর থেকে error
journalctl --since "1 hour ago"
the last hourশেষ ১ ঘণ্টা
journalctl -k
kernel messages onlyশুধু kernel message
journalctl --disk-usage
how much space the journal usesjournal কত জায়গা নিয়েছে
dmesg -T
kernel ring buffer, readable times; may need sudokernel ring buffer, পড়ার মতো সময়; sudo লাগতে পারে
/var/log/journal
the journal survives reboots if this existsএটি থাকলে journal reboot-এর পরেও থাকে
/var/log/messages
the main text log (Red Hat family)প্রধান টেক্সট log (Red Hat পরিবার)

Source 6সোর্স 6Source 5সোর্স 5Source 17সোর্স 17Source 18সোর্স 18

Authentication Logs

last
recent logins, from /var/log/wtmpসাম্প্রতিক login, /var/log/wtmp থেকে
last -n 10
only the last 10 loginsশুধু শেষ ১০টি login
sudo lastb
failed logins, from /var/log/btmpব্যর্থ login, /var/log/btmp থেকে
lastlog
each user's last login; absent on some distrosপ্রতিটি user-এর শেষ login; কিছু distro-তে নেই
sudo faillock --user USER
a user's failed-login recordsএকজন user-এর ব্যর্থ login-এর রেকর্ড
journalctl -u ssh
the SSH log (the unit is ssh on Ubuntu)SSH log (Ubuntu-তে unit-এর নাম ssh)
/var/log/secure
authentication messages (Red Hat family)authentication message (Red Hat পরিবার)

Source 19সোর্স 19Source 20সোর্স 20Source 21সোর্স 21Source 6সোর্স 6Source 18সোর্স 18Source 22সোর্স 22

Troubleshooting

systemctl status NAME
1. is the service up?১. service চালু আছে?
journalctl -u NAME -n 50
2. what did it log?২. কী log করেছে?
ss -ltnp
3. is it listening on its port?৩. নিজের port-এ শুনছে?
curl -v URL
4. talk to it and see the exchange৪. কথা বলে আদান-প্রদান দেখুন
ping -c 3 HOST
5. can you reach the host?৫. host-এ পৌঁছানো যায়?
dig +short DOMAIN
6. does the name resolve?৬. নামটি resolve হয়?
sudo strace -f -p PID
7. which system calls is it making?৭. কোন system call করছে?
sudo lsof -p PID
8. which files and sockets are open?৮. কোন file ও socket খোলা?

Source 7সোর্স 7Source 6সোর্স 6Source 8সোর্স 8Source 23সোর্স 23Source 24সোর্স 24Source 25সোর্স 25Source 26সোর্স 26Source 27সোর্স 27

2 min read2 মিনিটে পড়া যায় · 6 sections6টি সেকশন · 27 sources27টি সোর্স · 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সোর্স27 · accessed 2026-11-27দেখা হয়েছে: 2026-11-27

Suggest an editএডিটের পরামর্শ দিন
  1. [1]uptime(1) - Tell how long the system has been running.
  2. [2]free(1) - Display amount of free and used memory in the system
  3. [3]df(1) - report file system space usage
  4. [4]top(1) - display Linux processes
  5. [5]dmesg(1) - print or control the kernel ring buffer
  6. [6]journalctl(1) - Print log entries from the systemd journal
  7. [7]systemctl(1) - Control the systemd system and service manager
  8. [8]ss(8) - another utility to investigate sockets
  9. [9]proc_loadavg(5) - load average
  10. [10]nproc(1) - print the number of processing units available
  11. [11]vmstat(8) - Report virtual memory statistics
  12. [12]iostat(1) - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.
  13. [13]w(1) - Show who is logged on and what they are doing.
  14. [14]proc_meminfo(5) - memory usage
  15. [15]du(1) - estimate file space usage
  16. [16]sort(1) - sort lines of text files
  17. [17]journald.conf(5) - Journal service configuration files
  18. [18]Troubleshooting problems using log files
  19. [19]last(1), lastb(1)
  20. [20]lastlog(8) - reports the most recent login of all users or of a given user
  21. [21]faillock(8) - Tool for displaying and modifying the authentication failure record files
  22. [22]OpenSSH server
  23. [23]curl man page
  24. [24]ping(8) - send ICMP ECHO_REQUEST to network hosts
  25. [25]Manual pages: dig and delv (BIND 9)
  26. [26]strace(1) - trace system calls and signals
  27. [27]lsof(8) - list open files