Is there a way to know which files are affected by any command that's entered in terminal? For instance, we all know what passwd command does, and which file it affects. But is there a definite way to know the exact file name any command affects?I have a command that adds user to a file, which implements some policies on those users. But I'm not sure which file it adds to. 
Files Affected By Command
command line;file comparison