how to set alias for the folder in Linux

8,710

Solution 1

Do you mean a symbolic link? I think so .. but the "system-calls" tag you've put there is throwing me off a bit. https://en.wikipedia.org/wiki/Symbolic_link

ln -s /raj/abc-abc /raj/abc
cd /raj/abc

Solution 2

You want to make a "link" from abc to abc-abc.

ln -s /raj/abc-abc /raj/abc

Generally you want to create "symbolic links" or "symlinks", which is done using the -s flag.

Share:
8,710

Related videos on Youtube

user206423
Author by

user206423

Updated on September 18, 2022

Comments

  • user206423
    user206423 over 1 year

    I want to set the alias for the "abc-abc" folder as "abc" in Linux.Can you help me?

    EX: /raj/abc-abc/xyz/data