↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Linux commands useful when performing heavy processing

The page introduces three Linux commands for handling heavy processing with less disruption. It says sleep pauses execution for a set time, nice lowers a command’s priority, renice adjusts the priority of a running process, and nohup lets a command keep running after terminal logout.

Reading notes
#

  • sleep suspends processing for a chosen period, with examples in seconds, minutes, and hours.
  • nice can run a backup or batch job at lower priority so other processes are less affected.
  • Priority values range from -20 to 19, and negative values require superuser privileges.
  • renice changes the priority of an already running process by PID.
  • nohup keeps a command running after logout, and its standard output is saved in nohup.out.