Search code examples
linuxbashwebchromium

I want to close a google chrome tab via linux terminal?


I'm writing a script that opens chromium tabs. I need a command that closes that tab.


Solution

  • Try this:

    https://www.linux.org/threads/xdotool-window.10606/#:~:text=The%20xdotool%20is%20a%20utility%20used%20from%20the,of%20many%20xdotool%20commands%20to%20create%20large%20tasks.

    Remember that you must also have an "xprop" package that displays the information necessary for "xdotool"

    enter image description here