쉘스크립트에서 cd 명령어 쓰는 질문입니다.

k1d0bus3의 이미지

myshellscript.sh

#!/bin/bash
cd /

일때 cd 명령어를 먹히게 하는 방법 없을까요?

. ./myshellscript.sh 이런식의 실행 말고요....