![]() If you use CDPATH, you are strongly recommended to put. an argument that doesn't start with /, either explicitly or via an abbreviation such as ~ or a variable whose value starts with /), the shell tries to change to a subdirectory of each element of CDPATH in turn until it finds one that exists. When you run cd with a relative path (i.e. If you very often change to subdirectories of a particular directory, you can use the CDPATH variable. It's mostly equivalent because the shell remembers and displays ~/hurt as the current working directory if you want the shell to forget about the symbolic link, use cd -P ~/hurt. ![]() Then cd ~/hurt is mostly equivalent to /A/Really/Long/File/Path/Name/Makes/My/Fingers/Hurt. For example, create a symbolic link with the ln command: ln -s /A/Really/Long/File/Path/Name/Makes/My/Fingers/Hurt ~/hurt read, write, cd and ls for a directory, etc.) operates on the target of the link. create, rename, delete) manipulates the symbolic link, while operating on the content (e.g. A symbolic is a directory entry that doesn't actually contain any data, but points to another path where the actual data is to be found. ![]() You can give a directory (or any file) an abbreviated name by creating a symbolic link to it.
0 Comments
Leave a Reply. |