Süreçleri Anlama: `ps`, `top`, `htop`
Linux sisteminizdeki etkin süreçleri görüntülemek, izlemek ve anlamak için kullanılan komutları keşfedin.
Süreçleri Anlama: `ps`, `top`, `htop`, CoddyKit'te ücretsiz bir Linux Command Line Mastery dersidir. Bu, 4 dersinin 1. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Linux Command Line Mastery öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Linux Command Line Mastery kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
What Are Processes?
Welcome! In this lesson, we'll explore how to view and monitor programs running on your Linux system. These running programs are called processes.
Understanding processes is crucial for system administration, troubleshooting, and managing resource usage.
`ps`: Snapshot of Processes
The simplest way to see active processes is with the ps command. It gives you a snapshot of current processes.
By default, ps shows processes owned by your user in the current terminal session.
psMore `ps` Details: `aux` and `-ef`
To see all processes on the system, including those owned by other users and system processes, we use options like aux or -ef.
a: Show processes for all users.u: Display user/owner.x: Show processes without a controlling terminal.
The -ef option is a common alternative on some systems, providing similar comprehensive output.
ps auxDeciphering `ps` Output
When you run ps aux, you'll see several columns:
- USER: The owner of the process.
- PID: The unique Process ID.
- %CPU: CPU usage percentage.
- %MEM: Memory usage percentage.
- CMD: The command that started the process.
These details help you identify what's running and by whom.
PID and PPID Explained
Every process has a unique PID (Process ID). It's like a social security number for a process.
Many processes are started by other processes. The process that starts another is called its parent process. The child process will have a PPID (Parent Process ID) that matches the parent's PID.
This creates a process tree, showing how processes are related.
ps -o pid,ppid,cmd`top`: Real-time Monitoring
While ps gives a snapshot, top provides a dynamic, real-time view of your system's processes.
It continuously updates, showing CPU and memory usage, uptime, and a list of processes sorted by CPU usage (by default).
This is great for spotting processes consuming a lot of resources.
topNavigating `top`
top is interactive! Here are some basic keys:
- Press
qto quit. - Press
Mto sort processes by memory usage. - Press
Pto sort processes by CPU usage (default). - Press
kto "kill" a process (you'll need the PID).
Remember to be careful when using k!
`htop`: An Enhanced `top`
htop is an improved, interactive process viewer that's often preferred over top due to its user-friendliness.
It offers a more colorful and intuitive interface, making it easier to see CPU and memory usage visually.
You might need to install it first (e.g., sudo apt install htop on Debian/Ubuntu).
htopWhy Use `htop`?
htop provides several advantages:
- Visual Bars: Clear graphs for CPU, memory, and swap.
- Scrolling: Easily scroll horizontally and vertically.
- Mouse Support: Click to sort columns or select processes.
- Easy Filtering/Searching: Quickly find specific processes.
- Tree View: See process hierarchy clearly.
It's a powerful tool for monitoring system health.
Process Command Check
You've learned about ps, top, and htop. Let's see if you can distinguish their primary uses.
Processes: Snapshot vs. Real-time
Great job! You now understand how to monitor processes on Linux.
ps: Gives a static snapshot of processes. Useps auxorps -effor comprehensive lists.top: Provides a real-time, interactive view of processes, sorted by resource usage.htop: An enhanced, more user-friendly version oftopwith visual bars, mouse support, and easier navigation.
These tools are essential for any Linux user!
Sıkça Sorulan Sorular
“Süreçleri Anlama: `ps`, `top`, `htop`” dersi ücretsiz mi?
Evet — “Süreçleri Anlama: `ps`, `top`, `htop`” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Linux Command Line Mastery kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Linux Command Line Mastery kursu toplamda 4 dersten oluşur.
“Süreçleri Anlama: `ps`, `top`, `htop`” dersinde ne öğreneceğim?
Linux sisteminizdeki etkin süreçleri görüntülemek, izlemek ve anlamak için kullanılan komutları keşfedin. Linux Command Line Mastery ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Linux Command Line Mastery öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Linux Command Line Mastery, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 1. dersidir.
“Süreçleri Anlama: `ps`, `top`, `htop`” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Linux Command Line Mastery dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Linux Command Line Mastery dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Süreçleri Anlama: `ps`, `top`, `htop`
- Süreçleri Yönetme: `kill`, `bg`, `fg`
- Sistem Kaynaklarını İzleme: `df`, `du`, `free`
- nice, renice ve Sinyallerle İşlem Öncelikleri