How to Discover, From Inside a Bash Script, the Path the Script Is In

Posted by LinuxCareer on Apr 28, 2021 3:20 PM EDT
linuxconfig.org; By Roel Van de Paar
Mail this story
Print this story

When you develop complex Bash scripts and start putting various scripts into a folder, where one script interacts with another by, for example, starting it, it quickly becomes necessary to ensure we know the path the script was started from, so we can start the other scripts with a fully qualified pathname.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.