Skip to main content

how to find the process id of any process in ubuntu linux?

The command used to find the process id of any process is

ps -ef | grep (followed by process name)



like if you want to kill apache server running on system

command would be

ps -ef | grep apache


or

ps -ef | grep apache2


this will list the processes with process name apache.

Once the process id is found use the kill command to terminate the process.

Comments

Popular posts from this blog

7 ways to install packages in ubuntu llinux!

I like ubuntu because of its high hardware support or wide range of drivers available for underlying hardware and laptops. Many great laptop producing companies has tie up with Ubuntu to provide their laptops and Dell recommends ubuntu for some of its laptops. So if you are new to ubuntu and looking for ways to learn how to operate successfully in ubuntu linux. GO ahead and subscribe to this blogs posts. I update the blog with geral tips and tricks to keep up with ubuntus cutting edge technology and updates. Ways to install packages in ubuntu Linux : 1)  Synaptic Package Manager 2) Ubuntu Software centre 3) installing via .tar file 4) installing via command line using apt-get / adding repositories / updating repositiries / deleting bad repositiries 5) Using GDebi package installer 6) Using dpkg Each method will be discussed in details in later posts. Do subscribe. 

how to take screenshot in gnome (centOS, Linux)

install gnome-utils using the following command [bsingh@localhost ~]$ man gnome-utils No manual entry for gnome-utils [bsingh@localhost ~]$ sudo yum install gnome-utils Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile  * base: ca.mirror.babylon.network  * centosplus: ca.mirror.babylon.network  * epel: ca.mirror.babylon.network  * extras: ca.mirror.babylon.network  * fasttrack: ca.mirror.babylon.network  * nux-dextop: mirror.li.nux.ro  * updates: ca.mirror.babylon.network  * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package gnome-utils.x86_64 1:2.28.1-10.el6 will be installed --> Processing Dependency: gnome-utils-libs = 1:2.28.1-10.el6 for package: 1:gnome-utils-2.28.1-10.el6.x86_64 --> Processing Dependency: libgdict-1.0.so.6()(64bit) for package: 1:gnome-utils-2.28.1-10.el6.x86_64 --> Running tran...