Open function in Linux