Is it possible to somehow use the xdg-open command to open my home page (google.com) without having to type the url.
What i mean to say is, can i customize
to something like:
to open it?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You could create an alias for your shell. Add this to your .bashrc (assuming you use bash):
alias myhome='xdg-open http://www.google.com'
Then call it with
Or define it as a variable (in .bashrc):
And call with
Though as mentioned in the comments, if google.com is the start page in your browser just call your browser from the command-line, f.ex.:
google-chrome & firefox &
You probably want the
& at the end to open it in the background.