This works for unix-like systems.
create a file
sudo touch [options] <file_name>
You will probably be asked for the password.
rename a file
obviously you must have superuser permissions, that is, use sudo.
sudo mv old_file new_file_name
You will probably be asked for the password.