When I use cent os or ubuntu, I just type 'gp' to run gnuplot.

Of course, typing 'gnuplot' also works.

But it doesn't work in osx terminal.

How to make 'gp' possible?


1 Answer 1


Type this line at your terminal and you should be able to call gnuplot by executing gp

alias gp='gnuplot'

If you want to make it permanent, add this line to the startup script of your shell. It's ~/.bashrc if you use bash, or ~/.zshrc if you use zsh.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .