Ask Me About Websites
Menu
  • What is a website?
  • Useful Linux Commands
    • Cheat Sheet of Useful Linux Commands
    • Add / Create New Sudo User
    • 10 Commands to find the processes in Linux
    • Working with Java Keystores
  • Magento Commands
  • Laravel
  • WordPress Tips and Hints
  • What is a website?
  • Useful Linux Commands
    • Cheat Sheet of Useful Linux Commands
    • Add / Create New Sudo User
    • 10 Commands to find the processes in Linux
    • Working with Java Keystores
  • Magento Commands
  • Laravel
  • WordPress Tips and Hints

10 Commands to find the processes in Linux


top : A great commands to find the processes that are using the most CPU. This commands creates self-updating list – and you need to use Ctrl-C to get out of it.

htop : The same thing as top but a little easier to read. It displays the same information with an easier-to-understand layout. htop also lets the user select processes with the arrow keys and perform actions, such as killing them or changing their priority, with the functions keys F1, F2, etc. But for most systems you will have to install this using a command like:

sudo apt-get install htop

ps : simple command to list all running processes but since it can be a long list it is usually best to  add a | less so you can page through them or add a grep to look for a particular process name

ps -A | less

ps -A | grep java

pstree : Provides another great way to view your processes. This view allows the user to quickly see which processes spawned other. Great when you have many processes with the same name and you are trying to determine where they came from

pgrep : Is a great short cut to just get back the process id for a given process name.

pgrep java

renice PID : The renice command changes the nice value of an already running process (nice value determines what priority the process runs with 0 being the default and negative number being higher priority than positive numbers). It can be used with pgrep to get the process id of a process by name.

renice 5 $(pgrep java)

kill PID : The kill command is used to end a process given its process ID, which you would have gotten through ps -A, top, pgrep

pkill NAME : Another kill command is used to end a process given its name.

killall NAME : Will kill all prcocess with the given name if more than one is active.

xkill NAME : xkill command is a way of easily killing graphical programs. Run it and your cursor will turn into an x sign. Click a program’s window to kill that program. If you don’t want to kill a program, you can back out of xkill by right-clicking instead.

Recent Posts


  • Add Java Home to a User
  • How to create a new sudo user and secure with SSH key
  • How to config Apache to 301 for HTTP to HTTPS
  • Where do I find the YUI yahooapi serverd secure (https)
  • Fix to Saving Permalinks to fix 404’s

Recent Comments


  • Theron Cashing on Useful Linux Commands
  • check my site on Useful Linux Commands
  • site:forobeta.com/mobidea Mobidea on Useful Linux Commands
  • content on Useful Linux Commands
  • Gerry on Useful Linux Commands

Recent Posts

  • Add Java Home to a User
  • How to create a new sudo user and secure with SSH key
  • How to config Apache to 301 for HTTP to HTTPS
  • Where do I find the YUI yahooapi serverd secure (https)
  • Fix to Saving Permalinks to fix 404’s
  • No space left on device – Could I be running out of Inodes?
  • Simple MYSQL Script to change domain for WP
  • Simple debug setting for WordPress config

Tag Cloud

Pages

  • #552 (no title)
  • 10 Commands to find the processes in Linux
  • Add / Create a new user with SUDO privilegdes to Ubuntu (Linux)
  • Laravel Set Up and Commands Win10
  • Magento Commands
  • test of book
  • TEst of ninja JS
  • Test of WP Google Maps
  • Useful Linux Commands
  • What is a website?
  • WordPress Tips and Hints
  • Working with Java Keystores

Categories

  • Javascript
  • Linux Commands
  • Linux Solutions
  • Wordpress

Copyright © 2020 websidestores.com - askmeaboutwebsites

Theme created by PWT. Powered by WordPress.org