Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload Google Chrome tab from terminal?

Is there a way to reload a Google Chrome tab in Ubuntu using just the terminal. I don't want to just open a new window, but to actually refresh a tab!

Extra question: Is this possible in other browsers as well such as Opera, Safari, Firefox.

like image 371
Yahya Uddin Avatar asked Jan 25 '15 00:01

Yahya Uddin


People also ask

How do I reload my Chrome tabs?

Keyboard shortcut to reload tabs is bound to Alt - Shift - R. Reload all tabs in all windows (enabled via options)

How do you reload a tab in Chrome Mac?

To do a hard refresh on Google Chrome on Mac, there are two ways that you can do it: Hold down Shift and click the Reload button. Or Hold down Command, Shift and click the 'R' key.

How do I use Chrome from terminal?

Go to Desktop > Applications. Type Terminal in the search bar and click on the first result. Or you can skip the lengthy process and open a new Terminal session by pressing Ctrl + Alt + T on your keyboard. This will load up Google Chrome with the default homepage.


1 Answers

sudo apt-get update

sudo apt-get install xdotool

DISPLAY=:0 xdotool key F5

That's all you need.

like image 190
rijotech Avatar answered Sep 18 '22 09:09

rijotech