Does anyone know whether there is a command in linux that can set attributes to file so that the file can disappear after certain time. For example, if I set one attribute to file as "1/1/2015", so the file will delete itself at that time. Or is there any other ways to make this file become an accessible after some time? For example, I can set password to the file and after some time, the password will get expired and be a new password and the file will not be read any more.
I know in my own computer, I can set like
cron tasks. But I just want to know if I send this file to others, the file can delete itself or make itself unreadable automatically.