How to change to /var/opt directory in terminal using python.
tried this
sudo bash and entered pass
root@user :
ran python code -
code :
import os
os.chdir(r"/var/opt/backups")
os.chdir("/var/opt/backups")
but the directory wont change
have tried os.chdir(path)
mentioned os.chdir(r"/var/opt/backups")
pl check.