The alias's objective is to launch a pdf in my chrome browser. The pdf is entitled "Intro to Java.pdf"; the browser is "Google Chrome"
alias x='open -a "Google Chrome" /Users/ahanagrawal/Documents/"Intro to Java.pdf"'
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Are you sourcing the file in which the alias is defined?
If your alias was defined in .bash_profile in your home directory.
To list the defined aliases, simply type 'alias' in the shell. Type 'alias youraliasname' to see whether the alias 'youraliasname' is defined, and if so, its definition.
Intro to Java.pdfto
Intro\ to\ Java.pdf