

It can save you loads of key strokes and valuable time.Īnother common use of creating a softlink with “ln -s” is often you may have your primary data in a directory that can change, but have softlinked directory, that is fixed, pointing to the primary data directory. And use the simple path directory every time to reach to the long-path directory. If you have color coded the files and directories, the softlink paths will be in a different color than regular directories. And the simple path will be linked to the long path, you can see that by using “ls -l”, likeĮasyPath -> /my/long/path/to/the/directory Once you create a soft link, you will see the new simple path directory in the current directory. This will create a soft link (or symbolic link) for the directory. Ln -s /my/long/path/to/the/directory easyPath You can easily create a soft link with a simple short name for the long-path directory and use the simple name to get to your long-path directory.įor example, use “ ln -s” by typing the following command at your terminal. The argument “s” makes the the link symbolic or soft link instead of hard link. The ln command in Linux creates links between files/directory. Well, the command “ln -s” offers you a solution by letting you create a soft link.
What is a working directory for mac? how to#
How To Create Soft Link?If you are using a really long path to reach a directory (my/really/long/path/to/the/directory) frequently, it will get painful to type the long path every time to get there.
