• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How To Manage, Monitor Processes On SSH

By Abhishek Ghosh June 15, 2017 1:43 pm Updated on June 15, 2017

How To Manage, Monitor Processes On SSH

Advertisement

This is an essential part to master after getting used with the basics of server management. Here is how to manage, monitor processes on SSH. Apart from the Kernel, these processes are main part of GNU/Linux and unix systems provide various ways to view and control the running processes. Note that you may be really be able to manipulate all the processes on a server with OpenVZ virtualization. In GNU/Linux, process is an abstraction of Linux (kernel) to represent a running program. Each of these process in consists of an address, a set of data structures within the kernel.

PID is the unique ID number assigned kernel to each process. UID is user identification number denoting the user who created it. EUID is effective user ID. UID and EUID are same, except for the programs that are setuid. setuid and setgid are Unix access rights flags that allow users to run an executable with the permissions of the executable’s owner or group respectively and to change behaviour in directories. GID is the group identification number of a process. EGID is related to the GID. A process can be a member of many groups at one time.

How To Manage Monitor Processes On SSH

 

How To Manage, Monitor Processes On SSH

 

ps is a command which is used for monitoring the processes. Versions of ps differ in their arguments and display, but all deliver the same information. The output of the ps command can show the above discussed PID, UID, priority, how much CPU time processes has consumed, how much memory process is using, current status and can control the processes. Process has codes and ps has standard notations :

Advertisement

---

R means process is running or can be executed.
D means uninterruptible sleep
S means interruptible sleep (process is waiting for some thing)
T means Traced or stopped
Z means Zombie – a terminated process but still present

USER is Username of the process’s owner
PID is Process ID
%CPU is the percentage of the CPU a process is consuming
%MEM is the percentage of memory a process is consuming
VSZ is virtual size of the process
RSS is number of pages in memory
TTY is control terminal ID
STAT is process status
START means the time the command started
TIME means CPU time the process has consumed
COMMAND is the name of the command

pstree command displays the processes in a tree format. You can run and check. We can stop process by (pid will be written as value) :

Vim
1
kill [argument] pid

To see a bit more information in realtime you can use :

Vim
1
topIn

We can stop by running :

Vim
1
kill -9 pid

That 9 is signal 9. The above is graceful command, the command to kill can be ignored. It will kill apache2 for sure :

Vim
1
sudo killall apache2

An option to filter the result by process name is pgrep :

Vim
1
pgrep -u root sshd

Read manuals for chained commands :

Vim
1
2
man strace
man pgrep

When you run strace on the sshd binary it outputs debugging information on how the program starts and what files it tries to access. From which we can use grep to list the /etc/ files which it tries to access :

Vim
1
sudo strace -e trace=file /usr/sbin/sshd |& grep '^open('|grep '/etc/'

A malware can hide as fake Apache web server process and consume huge resource. By experience, automatically eyes filter which can be odd.

This Article Has Been Shared 196 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Manage, Monitor Processes On SSH

  • Cloud Computing is not a file hosting service and PaaS is not a CDN!

    Cloud Computing is Not synonymous with File hosting service and there is difference between a PaaS and a dedicated Content Delivery Network (CDN).

  • Cloud Computing Expo – Enterprise IT Event in Nov 2011

    Cloud Computing Expo first started in 2007. As usually, this year the Cloud Computing Expo will focus on the current development and opportunities in the field.

  • Provisioning in Cloud Computing

    Provisioning in Cloud Computing is the process of on demand self service on pay as you go model to get new services or scale existing services as per need.

  • Private Cloud and Virtual Private Cloud : Cost Saving Options

    Private Cloud and Virtual Private Cloud do have some very cheaper options if you have basic knowledge of UNIX commands. OpenStack is Free Software has options.

  • WP-CLI and Cloud Server

    With Cloud Automation, we can integrate WP-CLI, a command line tool for WordPress for better, easy and faster management on Cloud Server.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021
  • How to Find the Right Software for Your Company February 20, 2021
  • What is Code Refactoring? February 19, 2021
  • Smartphones With Best Audio Quality (2020-2021) February 17, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How To Manage, Monitor Processes On SSH," in The Customize Windows, June 15, 2017, February 24, 2021, https://thecustomizewindows.com/2017/06/manage-monitor-processes-ssh/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy