Rakesh Jain Profile picture
Jun 6 23 tweets 3 min read Twitter logo Read on Twitter
20 examples of important Linux process management commands!

A Thread 👇 PS: https://cdn.hashnode.co...
1/20: ps - View running processes and their details.

Example:
ps -e

displays information about all processes running on the system.
2/20: top - Monitor real-time system activity.

Example: Running top shows a dynamic view of processes, memory usage, and CPU utilization.
3/20: kill - Terminate a process by its PID.

Example: To stop a process with PID 12345,
use kill 12345.
4/20: killall - Stop all processes with a given name.

Example: killall firefox

terminates all running instances of the Firefox browser.
5/20: pgrep - Find process IDs based on criteria.

Example: pgrep -u username

lists PIDs of processes owned by "username".
6/20: pkill - Send a signal to processes based on attributes.

Example: pkill -f pattern

sends a signal to processes whose command line matches "pattern".
7/20: nice - Adjust process priority.

Example: nice -n 10 command

starts "command" with a lower priority value of 10.
8/20: renice - Alter priority of running processes.

Example: renice +5 12345

increases the priority of process 12345 by 5.
9/20: htop - Interactive process viewer.

Example: Running htop provides a user-friendly, interactive display of system processes.
10/20: systemctl - Manage system services.

Example: systemctl status sshd

checks the status of the SSH service.
11/20: lsof - List open files and the processes that have them open.

Example: lsof /path/to/file

displays processes accessing the specified file.
12/20: ps aux - Display a detailed list of all processes running on the system, including those owned by other users.
13/20: nohup - Run a command that continues executing even after you log out.

Example: nohup ./my_script.sh &.
14/20: watch - Repeat a command periodically and display the output.

Example: watch -n 5 ps -ef

refreshes process information every 5 seconds.
15/20: vmstat - Report virtual memory statistics.

Example: vmstat 1

provides real-time information about memory usage and system performance.
16/20: pstree - Visualize running processes in a tree format.

It shows parent-child relationships between processes.
17/20: fuser - Identify processes using specific files or sockets.

Example: fuser -u /path/to/file

lists processes accessing the file.
18/20: strace - Trace system calls and signals made by a process.

Example: strace -p <PID>

monitors a specific process for system calls.
19/20: jobs - List currently running jobs in the shell.

Example: jobs -l

displays job IDs and their status.
20/20: kill -SIGSTOP <PID> -

Suspend a process by sending the SIGSTOP signal.

Use kill -SIGCONT <PID> to resume it.
I hope these examples help you understand these Linux process management commands better! #LinuxCommands #ProcessManagement #SysAdmin
Retweet the thread if you find it useful. Thanks!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Jun 7
AWS IAM Explained with Examples!

A Thread 👇 PS: https://www.howtogeek.c...
1/6 🔒 What is AWS IAM? 🔒

AWS Identity and Access Management (IAM) is a service that enables you to securely control access to your AWS resources. IAM allows you to manage users, roles, and policies to define and enforce permissions for accessing your AWS services.
2/6 👥 Users
In IAM, users represent individual people or entities dat need to interact with ur AWS resources. Users r assigned unique creds, such as access keys, to authenticate themselves when accessing AWS services.

For Eg: @johndoe is a user with access to EC2 instances. Image
Read 17 tweets
Jun 5
Linux Advanced Permission Management 🐧🔒

Explaining SetUID, SetGID, Sticky Bit, FACL's -

A Thread 👇 PS: https://cdn.hashnode.co...
1/10: Hey everyone! Let's talk about advanced permission management in Linux. 🚀 As you know, Linux is known for its robust security features, and permissions play a vital role in controlling access to files & directories. Let's dive in & explore some examples! #LinuxPermissions
2/10: First, we have the basic permission system: read, write, and execute, represented by the letters 'r', 'w', and 'x'. These permissions are assigned to three entities: owner, group, and others.

Let's see an example using the ls -l command. #LinuxPermissions
Read 23 tweets
Jun 3
Top 20 Linux networking commands explained with examples!

A Thread 👇 PS: https://cdn.lynda.com/c...
1⃣ ifconfig: Displays network interface configuration.

For example,
ifconfig eth0

shows the configuration details of the Ethernet interface. #LinuxNetworkingExample
2⃣ ip: Versatile command to manage network interfaces, addresses, and routes.

For instance,
ip addr show

displays IP addresses assigned to all interfaces. #LinuxNetworkingExample
Read 23 tweets
Jun 1
20 most useful kubectl command examples!

A Thread 👇 PS: https://geekflare.com/w...
1️⃣ kubectl get pods -n <namespace>

Retrieves all pods in a specific namespace.
2️⃣ kubectl describe pod <pod-name> -n <namespace>

Provides detailed information about a specific pod.
Read 23 tweets
May 25
Ansible Ad Hoc Commands!

20 important Examples below 👇 Image
1/20 🔥 Use 'ansible' followed by the target host(s) to execute ad hoc commands.

For example:
ansible all -m ping

pings all hosts in your inventory.
2/20 📜 To run a shell command remotely, employ the 'shell' module:

ansible all -m shell -a 'ls /tmp'

lists the contents of '/tmp' on all hosts.
Read 22 tweets
May 23
Want your application to migrate to AWS!

Step-by-step process to migrate an application running on-premises to AWS Cloud -

A Thread 👇
Step 1: Assess Your Application:

Understand your application's architecture, dependencies, and resource requirements. Identify potential challenges and areas for improvement. Image
Step 2: Design the AWS Architecture:

Create a cloud architecture that suits your application's needs. Consider services like EC2, RDS, S3, and load balancers. Leverage AWS Well-Architected Framework for best practices.
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(