I am creating Log-Reports which are viewable through the Web-browser. Is there an easy way to make links clickable in Linux Terminal? (Gnome-Terminal)
I am copying those links and manually open my web-browser to achieve that right now.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityNewer version of GNOME terminal now support hyperlinks with custom target via certain escape sequences. Try
echo -e '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\'
Opening these works the same way as described in the answer by Stephen Kitt.
See also: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
If the links are output as full URLs, they should be clickable when you hover over them (with the mouse pointer) while holding Ctrl down.
ls
utility. See gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda.
file://
to the fully qualified path of the file. Unfortunately, a relative path cannot be supplied, only a fully qualified path though.