# get interface information
import sh
print sh.ifconfig("eth0")
# print the contents of this directory
print sh.ls("-l")
print sh.pwd()
print sh.which("python") # "/usr/bin/python"
print sh.which("ls") # "/bin/ls"
ls = sh.ls.bake("-la")
print(ls) # "/usr/bin/ls -la"
# resolves to "ls -la /"
print(sh.ls("/"))
# substitute the dash for an underscore for commands that have dashes in their names
sh.firefox("http://google.com")