I want to make alias for gnome-open so I be able to open files with command opn somefile.doc How can I pass filename with this alias?

  • 1
    ? simply by adding alias opn=gnome-open to your bashrc. It then takes the file as argument. – Jacob Vlijm Mar 2 '15 at 9:27

Add this line to your ~/.bash_aliases:

alias opn='gnome-open'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.