using linux version
edit
using defaults-file
using defaults-file
using subprocess rather than os