Use CD function to change directory