Language: EN

comandos-linux-procesos

Linux Commands - Process and Job Control

Here is a compilation of the most useful Linux commands for Process and Job Control

Run commands and applications


# run application in current folder
./application


# run command
command


# start process in background
command &


# cancel command
control + c


# put command in background
control + z


# recover process put in background
bg


# bring job to foreground
fg jobID


# start command as root
sudo command


# start executable with graphical interface as root
sudo executable


# multiple session manager in terminal
screen -S session_name

List processes and tasks


# show background processes with jobID and PID
jobs -l


# show processes
ps


# show active processes
ps -eafw


# show system process tree
pstree


# show processes sorted by memory usage
ps aux | sort -k 5

Terminate processes



# terminate process to reload configuration
kill -1 Process_ID


# force kill process by PID
kill -9 PID


# terminate process by name
killall -9 name

Command Aliases


# set a temporary alias for command
alias cmd='command'


# remove alias
unalias cmd

To see the complete compilation of Linux commands, visit this link: List of Linux commands