change laptop name mac code example Example: rename shortcut mac By far, the fastest way to rename a file is to: select it and press Return.