python console change working directory code example Example: setwd python os.chdir("/home/varun/temp")