Mason
Mason

Reputation: 7103

Enter into a directory through an alias in Mac OS X terminal

Is there a way to do this easily? I have a directory pretty deep in the file system that I access a lot, so I made an alias in my home directory, but it won't let me cd into it. What solutions are there? Thanks!

Upvotes: 14

Views: 10186

Answers (2)

RobotCharlie
RobotCharlie

Reputation: 1278

Try this

Create: ln -s [Directory] [alias name of the directory] // this is saved into current directory;

Delete: unlink [alias name of this directory]

Upvotes: 5

Michael Dautermann
Michael Dautermann

Reputation: 89559

you can make symbolic links to it just like in unix

e.g.

ln -s ~/Library/Documentation .

creates a symbolic link to the Documentation folder hidden in your ~/Library folder.

Upvotes: 18

Related Questions