Problem- Generate a program in python which will produce the same output as the mount command.
The problem is solved in 3 steps
f=open("/proc/mounts")
Read the file using f.read() and print it on the console.
f.close()
Click the link below to see the program
$ chmod +x mount.py
$ ./mount.py