python script to change directory in terminal code example Example: setwd python os.chdir("/home/varun/temp")