Take the last part of the folder path in shell November 27, 2023 by Tarik You’re right–it’s a quick command: basename "$PWD"