-1

I want to open my pdf files using Terminal but I donot want to use this "xdg-open" command every time. What is the solution. Thank You

1 Answers1

2

If you want to write as less as possible when opening a pdf file, you should define an alias. In a file called ~/.bashrc you can define aliases like this:

alias pdf="evince "

Refresh the environment with

. ~/.bashrc

and then use the alias:

pdf file.pdf