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
Asked
Active
Viewed 1,169 times
-1
1 Answers
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

Andrei Dobre
- 108
- 4
~/.($SHELL)rc
asalias e=evince
if you really want to save typing 5 letters – j-money Feb 16 '19 at 11:54