Linux / UNIX kill unresponsive hung SSH session

last updated in Categories , ,

Sometimes my ssh session stops working because of the internet connection problem. I tried pressing CTRL+Z and CTRL+C to terminate my ssh session but failed to work. How do I properly kill a hung SSH session without killing my local terminal or using the kill command? How can I kill unresponsive hung SSH session on macOS?

How To: Linux / Unix Move Directory Up One Level

last updated in Categories ,

I would like to move a directory one level up into the root directory. I have all my html files located in /home/apache2/www/html directory, and I would like to move /home/apache2/www/html to one level up at /home/apache2/www/. How can I accomplish this over the ssh session?