Bash script symbolic link

In this tutorial, How do I use the Bash script symbolic link? A symbolic link or a soft link. Much the same as the shortcut in Windows or a Macintosh alias. Bash script the essential for DevOps Roles.

Bash script Function get Symbolic link

#!/bin/bash
#Function get Symbolic link
getSymboliclink (){
  local FOLDER=$1
  echo "----------------- Symbolic link ------------------"
  find $FOLDER -type l -exec ls -l {} \; | awk '{print $1 " " $3 " " $4 " " $9 " -> " $11}'
}
getSymboliclink $1

The screen output terminal:

Bash script symbolic link

Conclusion

Thought the article, you can use the Bash script symbolic link as above. I hope will this your helpful. More details refer to Bash script .

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.