I am trying to open various tab at the same time using xdg-open
my default browser is firefox.
The following line works (for one tab):
xdg-open https://stackoverflow.com
But this one does not:
xdg-open https://stackoverflow.com https://google.fr
the error thrown is:
xdg-open: unexpected argument 'https://google.fr'
Isn't it any way of passing various URL to xdg-open
? Thanks in advance !
This is not possible with
xdg-open
alone because it expects exactly one argument. But you can write a function to iterate over all given arguments and callxdg-open
separately.Open your
~/.bashrc
file in an editor, e.g.and then add the following text at the end of the file:
Save the file and leave the editor. After that either close and re-open the terminal window or enter
in the current window for the change to take effect. From now on you have a new command
xo
and can issueSee also my answer to the slightly related question Shorten or merge multiple lines of
&> /dev/null &
.A simple open function to open file/url (multiple) and the new application disown to the terminal