Linux Learning Note 4

Source: Internet
Author: User

Process

  1. What is a process
    Process is what the system is doing

    2. Process status
    Run
    Dormancy
    Stop it
    Go on
    End
    Zombie Process

    3. How to view processes in a drawing
    Gnome-system-monitor

    4. How to view processes with commands
    PS Process Viewing tool
    -a process running in shell
    -X processes that are not running in the shell
    -U View Process user
    -L Display Process details
    -F Full info abbreviation
    -e Displays all processes in the system

    Ps-aux |grep Process keyword

    PS Ax-o%cpu,%mem,user,comm,nice View process information (CPU Memory user command Priority)
    PS aux--sort +|-%cpu|%mem ... The process is sorted by the specified mode

    5. How to control the front and back calls of the shell heavy process

    Commands & processes run in shell background
    CTRL +z the shell-hogging process into the background stop
    Jobs view process information in the background
    FG Job (number) to bring the specified process back to the foreground
    BG Job (number) running background stop process
    CTRL +c close the shell process
    6. How to control processes with commands

    1) Signal
    Signal 1 Reload Process
    Signal 2 CTRL +C Delete the information in memory of the process
    Signal 3 in-memory mouse message cleanup
    Signal 9 forcibly shuts down the process (only the current program is closed and the subroutine is not closed)
    Signal 15 normal shutdown process
    Signal 18 turn on the stopped process
    Signal 19 Stop a running process
    Signal Ctrl +Z (background and run)

    2) Signal Initiation
    Kill Signal PID
    Killall Signal Process Name
    Pkill-u username End All processes for a user




W View users currently using the system

W-f View the user who is currently using the system and show where to use it

Last view users logged in the system

LASTB viewing users attempting to log on but not successful

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/88/99/wKioL1f8x-7yUDe0AAF1AeBOeZA980.png-wh_500x0-wm_3 -wmp_4-s_3957978244.png "title=" 13.png "alt=" Wkiol1f8x-7yude0aaf1aeboeza980.png-wh_50 "/>


Service

  1. What is a service?
    Service
    Service is the software running in the system, this software is mainly to provide a function, then we call this kind of software service


    2. Service Management, Systemctl command
    Systemctl Start Service Name Open service
    Stop .... Close Service
    Restart .... Restart Service
    Reload .... Re-add the service configuration
    Status .... View service Status
    Enable .... Set up service boot
    Disable .... Disable service boot start
    List-dependencies View service Dependencies
    List-units to view all currently running services
    List-unit-files viewing the start-up of a service
    Set-default multi-user.target boot Not start graphics
    Set-default Graphical.target boot up graphics



Linux Learning Note 4

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.