🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Linux Tutorials: ps commands examples

rajeshkumar created the topic: Useful Command for Process and Jobs in Unix/Linux

List out all background Job running in machine i.e. list current jobs
> jobs

How to sent Job into Background ie background the suspended job
> bg

How to run background jobs on foreground

1. Find out the job number using “jobs” command
2. Type follwoing fg %jobnumber

Whats the differnce between control c and control z in Linux

^C – kill the job running in the foreground
^Z – suspend the job running in the foreground

To kill a suspended or background process
> kill %jobnumber

To kill a job running in the foreground
> sleep 100
^C

List out all background job running by each user
ps -u

To see every process on the system using standard syntax:
> ps -ef

To see every process on the system using BSD syntax:
> ps ax

To print a process tree:
> ps -ejH

To get info about threads:
> ps -eLf

To see every process running as root (real & effective ID) in user format:
> ps -U root -u root u
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x