I am not quite following what you are trying to fix?
The image you attached this time is a terminal with the instructions how to connect to your Jupyter notebook. Those instructions assume you are running your Jupyter notebook and the browser to access it on the same physical machine. If that is not the case, I already provided links for what to do to specially link your typical, local graphical browser on your local machine to the remote machine. However, you don’t tell us what you are trying to do. Please review how to write a good post asking for help.
That terminal window you show in this post, you have to leave open in order to keep the notebook server running. If you close that terminal window, without special steps, your notebook server process will be killed. In other words, the screenshot you attached in this post is a window you have to leave open. You don’t want to be executing any command to close that until you are ready to not be accessing your notebook anymore. (When you are ready to end access, hitting CTRL-C in that terminal window as it instructs to shut it down is the typical move. It is written right in your screenshot.) Maybe you attached the wrong screenshot?
Your question brings up closing a “Graphical user interface browser from the server command line.” (Please review what a graphical user interface (often abbreviated a GUI) is if you are unsure. Both screens you attached in your posts are text based, in case you didn’t know. Those are NOT graphical user interfaces in the two screenshots.) I’ll assume you are using Google Chrome for an example. You would open your typical GUI Chrome browser window on your computer, use the URL to connect to your notebook and when done, select
Chrome from the menu along the top and then select ‘Quit Google Chrome’ from the bottom of the menu list that comes up. Then over in the terminal window, hit CTRL-C as it instructs to shut it down but keep your terminal window open so you get any information back it wants to stream.