Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 514
Mason Avatar asked Oct 27 '11 19:10

Mason


People also ask

How do you go to a directory in Terminal Mac?

If you type cd .. (that's two periods), you'll go to the directory above the one you're currently in. So if you're in your home folder, and type cd .. , you'll go to your Mac's /Users folder. And if you type cd - (hyphen) you'll go back to the directory you were in before the last time you issued the cd command.

How do I run an alias on a Mac?

Select the item, then choose File > Make Alias. You can create as many aliases for an item as you want, then drag them to other folders or to the desktop. Press Option-Command while you drag the original item to another folder or to the desktop to create an alias and move it in one step.

What is an alias Mac OS X?

In Mac OS X, an alias is a pointer file that allows you to quickly open the files, folders, servers, or applications used most often. When you double-click an alias, the operating system finds the file it references and opens it. An alias can be distinguished by its icon, which has an arrow in the bottom left corner.


1 Answers

Try this

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

Delete: unlink [alias name of this directory]

like image 198
RobotCharlie Avatar answered Sep 21 '22 13:09

RobotCharlie