|
-
Newb Question
I ran the ps command to check out the processes running on my server. Everything executed properly, but I can't figure out, or find an answer to, how to exit that command.
I've had this problem with other commands. Is there a default way to exit any Linux process or are there processes that have their own exit methods?
-
-
 Originally Posted by Brandon Buster
I ran the ps command to check out the processes running on my server. Everything executed properly, but I can't figure out, or find an answer to, how to exit that command.
I've had this problem with other commands. Is there a default way to exit any Linux process or are there processes that have their own exit methods?
Are you asking how to stop or 'kill' a process? If so, one way is to run top (or for system processes run sudo top).
once 'top' is running, find the id (pid) # of the process and type 'k'. It will ask you which process id to kill. type it and hit enter. It will ask you with what signal [15]:
Hitting enter will attempt to kill the process with signal 15. If that doesn't work, try process signal 9. !!!!!!!But always be careful when killing commands, especially system commands!!!!!!!!!
To find out more about commands, use google or try the command 'man X' where X is the command name: such as
man top (although the man pages can be intimidating)
Hope this helps.
-
-
Thanks for the reply. What prompted this post was I was stuck in the ps menu and couldn't figure out how to exit.
I figured out it was by clicking "Q." I've been stuck in similar situations before, as with vi and other processes. I guess exiting ps is similar to exiting vi. Also learned today control+C will exit some processes.
Thanks for the pointers on top.
-
-
To exit from vi:- :q! (exit, ignore any change to file)
- ZZ (exit, save any change to file)
Keep in mind that vi has two layers. One is the "edit" layer, where you edit the file. One is the "control" layer, where you enter commands to quickly manipulate the file. These commands must be entered from the control layer, otherwise you would just be typing ":q!" and "ZZ" on screen.
To break a process, use ctrl + c. But ps should not be doing what you described... It should give you a print out of currently running processes. What access do you have to the machine?
-
Similar Threads
-
By MustangV10 in forum Web Server
Replies: 1
Last Post: 07-13-2012, 10:16 PM
-
By ehansen in forum General Linux
Replies: 2
Last Post: 07-01-2012, 06:26 PM
-
By spiderman in forum Getting Started
Replies: 19
Last Post: 06-08-2012, 08:33 PM
-
By David Wilson in forum Desktop / X
Replies: 6
Last Post: 03-11-2012, 11:33 AM
-
By Fred in forum Linux News
Replies: 0
Last Post: 11-07-2011, 06:23 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Check out Linux Central for Linux software and other goodies!
» Recent Threads
» Stats
Members: 3,594
Threads: 3,921
Posts: 9,454
Top Poster: Fred (1,486)
» Links
|
Bookmarks