add some codes on linux/unix