Results 1 to 4 of 4

Thread: Newb Question

  1. #1
    Join Date
    Jun 2012
    Location
    Orlando, Florida, United States
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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?




  2. #2
    Join Date
    Jun 2012
    Location
    Inside a German cannibal.
    Posts
    27
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Rep Power
    0

    Cool

    Quote Originally Posted by Brandon Buster View Post
    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.

  3. #3
    Join Date
    Jun 2012
    Location
    Orlando, Florida, United States
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.

  4. #4
    Join Date
    Mar 2012
    Location
    Cardboard box
    Posts
    113
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Rep Power
    2
    To exit from vi:
    1. :q! (exit, ignore any change to file)
    2. 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?
    distrACT -- an open community

 

 

Similar Threads

  1. Webmin question
    By MustangV10 in forum Web Server
    Replies: 1
    Last Post: 07-13-2012, 10:16 PM
  2. TrueCrypt question
    By ehansen in forum General Linux
    Replies: 2
    Last Post: 07-01-2012, 06:26 PM
  3. Newbie question
    By spiderman in forum Getting Started
    Replies: 19
    Last Post: 06-08-2012, 08:33 PM
  4. A question?
    By David Wilson in forum Desktop / X
    Replies: 6
    Last Post: 03-11-2012, 11:33 AM
  5. NCDU - The Answer to a Question
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-07-2011, 06:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,594
Threads: 3,921
Posts: 9,454
Top Poster: Fred (1,486)
Welcome to our newest member, freespirit

» Links



Powered by vBadvanced CMPS