This article will guide you on different methods to log out of the #CentOS 8 #Linux system. Therefore, If you want to close the current user session then, Logging out of the system is the best choice.
The main difference between these tools is that kill terminates processes based on Process ID number (PID), while the killall and pkill commands terminate running processes based on their names and other attributes.
To exit CentOS 7:
i. Simply use 'Ctrl-C' to kill terminal commands in linux.
ii. Ctrl-D should be used to terminate nl correctly.
iii. Ctrl-C is just a general way to kill #applications.