.. link: http://dgplug.org/summertraining/2013/posts/iamsudip-mount-20130710-170521.html .. description: .. tags: .. date: 2013/07/10 17:05:22 .. title: iamsudip mount 20130710-170521 .. slug: iamsudip-mount-20130710-170521 mount ===== In this assignment we will display the contents of *mounts* file which is located in /proc directory .. listing: https://github.com/iamsudip/dgplug/blob/master/mount/mount.py python #!/usr/bin/env python file=open("/proc/mounts") #Opening the mounts file. for x in file: print x, #Iterating through its contents line by line. file.close() #Closing the file Solution to the above problem is `mount.py `_ **Hint**: Run the above program like:: $ sudo python mount.py