Implement `tell` in MDS

s/cmdline/cmdlen/