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 and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. 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 *

Comment moderation is enabled. Your comment may take some time to appear.

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