Skip to Content
Mastering Ubuntu Server - Second Edition
book

Mastering Ubuntu Server - Second Edition

by Jay LaCroix
May 2018
Intermediate to advanced
552 pages
14h 55m
English
Packt Publishing
Content preview from Mastering Ubuntu Server - Second Edition

Dealing with misbehaving processes

Regarding the ps command, by this point you know how to display processes running on your server, as well as how to narrow down the output by string or resource usage. But what can you actually do with that knowledge? As much as we hate to admit it, sometimes the processes our server runs fail or misbehave and you need to restart them. If a process refuses to close normally, you may need to kill that process. In this section, we introduce the kill and killall commands to serve that purpose.

The kill command accepts a PID as an option and attempts to close a process gracefully. In a typical workflow where you need to terminate a process that won't do so on its own, you will first use the ps command to find ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ubuntu Server - Third Edition

Mastering Ubuntu Server - Third Edition

Jay LaCroix
Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones

Publisher Resources

ISBN: 9781788997560Other