Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly


cd and ls in python command line
by admin
 at 2016-10-10 03:08:00.

how to do things like cd and ls in python command line

import os

to view in what directory you are in

os.getcwd()

ls:

os.listdir("somedirectory")

cd:

os.chdir('somedirectory')