ubuntu terminal restart code example
Example 1: restart terminal command line ubuntu
#To reset Terminal:
$ reset
#To rerun/restart your bash.rc
$ source ~/.bashrc
#To Restart your computer
$ reboot
Example 2: centos reboot
shutdown -r now
Example 3: restart ubuntu 18.04 server
sudo shutdown -r now