Unix: Get path of current script when executed through a symlink

Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=vGzzLwOmPoA



Duration: 4:57
1 views
0


Get path of current script when executed through a symlink
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/5981/mike-deck)Mike Deck
(unix.stackexchange.com/users/1925/caleb)Caleb
(unix.stackexchange.com/users/34654/diyism)diyism
(unix.stackexchange.com/users/19763/kevin-campion)Kevin Campion
(unix.stackexchange.com/users/181916/mryellow)MrYellow
(unix.stackexchange.com/users/131366/user2108420)user2108420
A special thanks goes out to the (https://unix.stackexchange.com/questions/17499/get-path-of-current-script-when-executed-through-a-symlink)Stackexchange community

I wish you all a wonderful day! Stay safe :)

symlink shell-script bash




Other Videos By Peter Schneider


2023-12-03Is there a name for this "fill in the blank" algorithm?
2023-12-03Problem with TWinControl component not responding to form resizing
2023-12-03Long string matching in the same or other records
2023-12-03trying to use fl_chart of flutter but when i import it i got this kind of error : Error: 'TextSca...
2023-12-03Codereview: Dictionary additional function implementations
2023-12-03Why the select_type of query "select xxx in (select xxx)" isn't SUBQUERY?
2023-12-03Softwareengineering: Why does the HTTP protcol support multiple methods?
2023-12-03Unix: find searching in parent directories instead of subdirectories
2023-12-03Mathematica: How to find Maximize of(m2+n2)/(5−mn)wherem,nand(m2+n2)/(5+mn)are integer numbers?
2023-12-03How can I make sure I will use the function version of a C standard library function like "getc" ...
2023-12-03Unix: Get path of current script when executed through a symlink
2023-12-03Unix: Limit grep context to N characters on line
2023-12-03Ansible: How to recursively set directory and file permissions
2023-12-03Unix: Resources for portable shell programming
2023-12-03run powershell command from cmd
2023-12-03KeyError when applying with_columns iteratively over different columns when using pl.struct on Po...
2023-12-03Unix: pwd without symlinks
2023-12-03Codereview: Binary file reader and writer
2023-12-03Unix: What does it mean to be "sh compatible"?
2023-12-03How do I re-run the post-install set up script after making the wrong choice in apt install mailu...
2023-12-03Unix: Why and how are some shared libraries runnable, as though they are executables?



Tags:
symlink
shell-script
bash