Renaming Files
Let's look at how the renaming files work under the hood.
We'll cover the following...
We'll cover the following...
Once we have a file, it is sometimes useful to be able to give a file a different name. When typing at the command line, this is accomplished with mv command; in this example, the file foo is renamed bar:
prompt> mv foo bar
Using strace, we can see that mv uses the system call rename(char *old, char *new) ...