Created
August 1, 2023 17:00
-
-
Save miguelmota/7f2eac8002ffa20b7297447c187995f6 to your computer and use it in GitHub Desktop.
Linux bash check if file or directory is symlink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test -L /tmp/somefile && echo true || echo false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment