Issue
I need to create a simple shell script to create a folder one level above the present location of the script. I was successful in getting the present location with:
#!/bin/sh
pwd
However, I got stuck how to go one level up to create a folder, suggestions would be helpful.
Solution
Use ..
in your path to go up a directory:
#!/bin/sh
mkdir ./../foldername
Answered By - jvperrin Answer Checked By - Timothy Miller (WPSolving Admin)