.. link: http://dgplug.org/summertraining/2013/posts/anurag619-mount-20130711-105428.html .. description: .. tags: .. date: 2013/07/11 10:54:29 .. title: anurag619 mount 20130711-105428 .. slug: anurag619-mount-20130711-105428 mount ------ here I will be displaying the output of mount command. the file to be read is located in /proc/mounts source file:'mount.py '_ :: #python file for mount operation m= open("/proc/mounts") #opening of the file mounts. for lines in m: #reading every line in m. print lines, m.close() #file closed after operation. *to execute the file* $python mount.py