Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Manage processes and set scheduled tasks

Shulou Source: shulou.com Published: 2022-06-01 04:58:42 10月04日 Update

Lab list: managing processes and setting up scheduled tasks

Requirements: managing processes in the system

Set up system administration tasks that are scheduled to run

Steps:

1 manage the ground process in the system

Start the portmap service in the system, confirm the running status of the service, and view the process information of portmap through the ps or pgrep command

Ps: view static process statistics, a: display all process information under the current terminal, u: use user-based format to output process information, x: display current user's process information under all terminals,-e: display all process information in the system,-l: display process information in long format,-f: display process information in complete format

Ps-elf: displays all the process information in the system in a long format

Ps aux: all process information will be displayed in a simple list

Execute the "cpuburn-in 10" command from another terminal, conduct a ten-minute high load test, find the cpu high occupancy pid number, and terminate its operation

Mount mounts / dev/cdrom under the / media/ directory

Cd changes the / media/ directory, and the ls list displays the contents of the directory

Extract cpuburn-in 's cpu testing tool and release it to the / opt/ directory

The Pgrep command can specify the name of a part of the process to query, combined with the-l option to query the process running on a specific terminal

-U: options query processes for specific users, and-t: options query processes running on specific terminals

Pstree: view the process tree (--displays the name of a process by default)-an option to list the complete command information-u: you can list the corresponding user name,-p: you can list the corresponding ID number at the same time

Pstree-aup: command to view the process tree of the current system

To use the kill command to terminate a process, you need to use the PID process number as an argument

2 set up system management tasks that are scheduled to run

Confirm to start the crond system service

Execute "crontab-e" to set up and plan tasks according to requirements

Execute "crontab-l" to view a list of scheduled tasks for all settings

Tags: Processes information systems commands runs tasks management terminals formats users directories queries services names display systems management systems requirements tests content parameters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi MySQL Shulou Tech Info Apple