Actually I don't know such a common way for all platforms. So what you have to do is, check the platform first and do the correct process there. Seems to me you are a Linux user, you may know the shell command.