Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
Close

Search

Client Portal
B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
Close

Search

Client Portal
Home/Linux Hosting/How to Use the ps aux Command in Linux

How to Use the ps aux Command in Linux

Introduction

In the world of Linux, the command-line interface (CLI) is a powerful tool that allows users to interact directly with the operating system. One command that stands out for its utility is the ps aux command. This command provides valuable information about the currently running processes on a Linux system. Whether you’re a Linux newbie or a seasoned sysadmin, it’s crucial to understand how to use this command effectively.

This comprehensive guide aims to delve into the details of the ps aux command and demonstrate its practical applications. By the end of this guide, you will be equipped with the knowledge to use ps aux to manage and monitor system processes.

Understanding the ‘ps aux’ Command

The ps command, short for ‘process status,’ is a command-line utility that provides information about currently running processes. It’s a versatile command that can be used with different options for different outputs. The aux options modify the ps command to display all processes on a system.

The aux option is a combination of three flags: a, u, and x.

– The a flag stands for ‘all.’ When used with ps, it lists processes from all users on the system.

– The u flag stands for ‘user.’ It provides detailed information about each process, including the user that owns the process.

– The x flag stands for ‘extended.’ It lists processes not attached to a terminal, such as system services.

Putting it all together, ps aux presents a detailed snapshot of all running processes, making it a valuable tool for system monitoring and debugging.

Interpreting the ‘ps aux’ Output

When you run ps aux on a Linux terminal, you’ll see an output similar to this:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  19356  1584 ?        Ss   Jan01   0:01 /sbin/init

Each column in the output provides specific information about each process:

USER: The user that owns the process.

PID: Process ID.

%CPU: The percentage of CPU usage.

%MEM: The percentage of memory usage.

VSZ: Virtual Memory Size in KBs.

RSS: Resident Set Size, the non-swapped physical memory that a task has used in KBs.

TTY: The terminal type that the user logged on.

STAT: Process state codes.

START: The time when the command was initiated.

TIME: Cumulative CPU time.

COMMAND: The command that initiated the process.

Understanding these elements is crucial to interpreting the ps aux output effectively.

Practical Applications of ‘ps aux’

The ps aux command is a versatile tool with a wide range of applications, from system monitoring to debugging and process management.

Process Monitoring

By offering a snapshot of all running processes, ps aux is a powerful monitoring tool. For instance, you can use it to check if a certain service is running, or to monitor the resource usage of a process.

Debugging

When troubleshooting system issues, ps aux can help identify processes that are consuming too many resources. For instance, a process that is using a high percentage of CPU or memory could be a sign of a software problem.

Process Management

The ps aux command can also aid in process management. By identifying a process’s PID, you can send signals to the process using commands such as kill or nice.

Advanced Usage and Tips

While ps aux is powerful in its own right, it can be combined with other commands for more advanced usage.

Piping with ‘grep’

The grep command can be used to filter ps aux output. For example, ps aux | grep firefox will return all Firefox processes. This can be handy when looking for a specific process among many.

Sorting Output

The sort command can be used to sort ps aux output by a specific column. For example, ps aux –sort=-%mem,%cpu will sort processes by memory and CPU usage.

Formatting Output

The ps command allows for custom formatting using the -o option. For example, ps aux -o pid,user,%cpu,%mem,command will display only the PID, user, CPU usage, memory usage, and command columns.

Conclusion

The ps aux command is a powerful tool in the Linux command-line interface. Whether you’re monitoring system processes, debugging software issues, or managing tasks, ps aux offers a wealth of information about your system’s operation. By understanding and mastering this command, you can significantly enhance your Linux skills and your abilityto maintain a healthy and efficient system.

Remember, the true strength of the Linux command line lies in the combination of commands. Try piping ps aux output into other commands like grep and sort to refine your results and work more effectively. Practice using different options with the ps command to fine-tune its output to your needs.

In essence, the ps aux command is an essential tool for every Linux user’s toolkit. Whether you’re a system administrator managing a large server or a casual user interested in understanding your system better, mastering ps aux will undoubtedly serve you well.

Author

b2b hosting

Follow Me
Other Articles
Previous

4 Detailed Ways to Check The MySQL Version in Linux

Introduction What is the Use of UFW in Ubuntu Linux? The UFW (Uncomplicated Firewall) is a frontend for iptables and is particularly well-suited for host-based firewalls. UFW provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall. UFW is a great firewall tool that is designed to be run on hosts or servers. It allows or blocks incoming and outgoing connections to and from the server. You can block ports, IPs or even entire subnets using UFW. It is not as flexible as iptables but is vastly easier for basic operations. UFW vs IPTables When it comes to configuring firewall on Ubuntu server, you have two primary options: ufw and iptables. Both tools provide firewall functionality but differ in terms of ease of use and complexity. UFW is a front-end for iptables that aims to simplify the process of configuring a firewall. It provides a user-friendly command-line interface and allows you to manage firewall rules using human-readable syntax. UfW provides a set of default rules that are easy to understand and configure. IPTables provides granular control over network traffic by allowing you to define rules based on various criteria such as IP addresses, ports, protocols, and more. IPTables gives you more flexibility, but it's also slightly more complicated to configure. So use whichever one you're most happy with. If you use iptables, remember that it only affects IPv4 - you need to also use ip6tables if your server has IPv6. In this article, we will show you how to install and config the UFW firewall on Ubuntu 22.04. How to Install UFW Firewall To install UFW on Ubuntu, follow these 3 steps. Step 1: SSH into the Linux system To install UFW, you need to SSH into the system. Step 2: Update system check settings $ sudo apt update $ sudo apt upgrade To check if ufw is installed, you can use the which command: $ which ufw And if the result doesn’t show output, it means ufw is not installed and you should install it like below. Step 3: Install UFW $ sudo apt-get install ufw After your ufw installation is complete, use the command below to check. The initial default after installation, UFW will be disabled because it has not been activated and you have to enable it manually. $ sudo ufw status verbose ----------------------------- Output Status: inactive Step 4: Enable UFW, Activate UFW After Installation To enable UFW and start enforcing the firewall rules, run: $ sudo ufw enable To temporarily disable UFW, run: $ sudo ufw disable How to Config UFW Firewall Use ufw to manage firewall rules, add/delete/restore/reset ufw rules. 1. UFW Check Status To check the current status of UFW, run the following command: $ sudo ufw status This will show you if UFW is active or inactive, the default input and output policies, and any rules that have been created. A fresh Ubuntu 22.04 installation will have UFW inactive by default. 2. UFW Allow Port To allow incoming connections on a specific port, you need to allow that port using UFW. For example, to allow HTTP traffic on port 80, run: $ sudo ufw allow 80/tcp This will allow all incoming TCP connections on port 80. You can also specify the IP address to allow only for a specific host: $ sudo ufw allow from 192.168.1.100 to any port 80 To allow both TCP and UDP protocols on port 123, run: $ sudo ufw allow 123/tcp $ sudo ufw allow 123/udp 3. UFW Allow Multiple Ports To allow multiple ports at once, specify the starting and ending ports: $ sudo ufw allow 2000:2100/tcp This will allow all ports from 2000 to 2100. You can also specify ports in a comma-separated list: $ sudo ufw allow 80,443,8080/tcp $ sudo ufw allow 22,25,110/tcp 4. UFW Allow HTTP/HTTPS Traffic It is a common requirement to allow incoming HTTP and HTTPS traffic. You can do that with: $ sudo ufw allow 'Apache Full' This will allow HTTP traffic on port 80 and HTTPS traffic on port 443. 5. UFW Allow SSH To allow incoming SSH connections on port 22, run: $ sudo ufw allow 22/tcp This is required to manage your Ubuntu server remotely using SSH. 6. UFW Allow DNS Traffic DNS uses UDP protocol on port 53. To allow incoming DNS queries, run: $ sudo ufw allow 53/udp 7. UFW Allow VNC To allow incoming VNC connections (usually port 5900 ), run: $ sudo ufw allow 5900/tcp 8. UFW Deny Port To block specific ports or protocols, use deny instead of allow. For example, to block incoming SMTP traffic: $ sudo ufw deny 25/tcp Closing tcp and udp ports, replace 80 with the desired port number: $ sudo ufw deny 80 For a port range you use the syntax: $ ufw deny 1234:2345 $ ufw deny 1234:2345/tcp $ ufw deny 1234:2345/udp 9. UFW Set Default Policies By default, the UFW incoming policy is set to deny, which means all incoming traffic is blocked. You can change this policy using: $ sudo ufw default deny incoming # To deny all incoming traffic $ sudo ufw default allow incoming # To allow all incoming traffic Similarly, you can set the default outgoing policy using: $ sudo ufw default deny outgoing $ sudo ufw default allow outgoing It is recommended to keep the default incoming policy as deny for security. 10. UFW Checking Logs You can enable logging with the command: $ sudo ufw logging on Log levels can be set by running sudo ufw logging low|medium|high, selecting either low, medium, or high from the list. The default setting is low. UFW keeps logs of denied connections in /var/log/ufw.log. You can view the log file using: $ sudo less /var/log/ufw.log To enable verbose logging, run: $ sudo ufw logging verbose Then UFW will log all allowed and denied connections. 11. UFW Delete Rules The syntax is as follows to list all of the current rules in a numbered list format: $ sudo ufw status numbered Status: active To Action From -- ------ ---- [ 1] 22/tcp ALLOW IN Anywhere [ 2] 80/tcp ALLOW IN Anywhere # accept Apache [ 3] 443/tcp ALLOW IN Anywhere # accept HTTPS connections [ 4] 1194/udp ALLOW IN Anywhere # OpenVPN server [ 5] 3000:4000/tcp ALLOW IN Anywhere [ 6] 3000:4000/udp ALLOW IN Anywhere To delete 6th rule type the command: $ sudo ufw delete 6 You can also delete rules for a specific port: $ sudo ufw delete allow 80 To flush all UFW rules and restore the default policy, run: $ sudo ufw reset 12. UFW Restore to default For some reason, you need to restore/delete all existing rules to return to the original defaults, use the reset option to do the following: $ sudo ufw disable $ sudo ufw reset $ sudo ufw enable This will: - Disable UFW - Flush existing rules - Re-enable UFW with the default configuration This ensures UFW works with the default settings again. 13. UFW Enable IPv6 Make sure the directive IPV6=yes do exists in /etc/default/ufw file. For instance: $ cat /etc/default/ufw Conclusion UFW is a powerful tool that can greatly improve the security of your servers when properly configured. This reference guide covers some common UFW rules that are often used to configure a firewall on Ubuntu. Your firewall is now configured to allow (at least) SSH connections. Be sure to allow any other incoming connections that your server needs, while limiting any unnecessary connections, so your server will be functional and secure. I hope this helps you configure and manage UFW firewall on Ubuntu 22.04. Let me know if you have any other questions!
Next

How To Install and Config UFW Firewall on Ubuntu 22.04

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© Copyright 2026 — B2B Hosting Club. All rights reserved. Design By MME.