Cross Platform Way to get Parent Path May 28, 2021 | 6 Words | 1 min | #bash Windows $(Split-Path $pwd) Linux/MacOS dirname $(pwd) To contact me, send an email anytime or leave a comment below. See Also Cross Platform Way to get Absolute Path