How to reload Google Chrome tab from terminal?

后端 未结 8 1988
心在旅途
心在旅途 2021-02-02 17:57

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 que

8条回答
  •  离开以前
    2021-02-02 18:45

    Probably this could be a (the easiest) solution for your problem

    xdotool key --windowid "$(xdotool --search --class Chrome | head -n 1)" F5
    

    https://unix.stackexchange.com/questions/87831/how-to-send-keystrokes-f5-from-terminal-to-a-process

    Edit: This should work for other browsers too without problems

提交回复
热议问题