how to rename a file and copy a file in a shell
Can someone tell me how to rename a file in a shell (root). Also i need to know how to copy in a shell (root)
|
Rename
Code:
mv -v old_file new_file Code:
cp -v old_file old_file_copy |
May I suggest googling for "linux bash shell commands copy rename".
Once you have found the commands you can google for the man pages that explain their syntax. Edit... Nevermind someone else has blown my lesson.... |
One thing - be cautious. The shell commands assume you know what you want to do. If you move one file to a name which already exists, the existing file will be overwritten without warning or confirmation that you are sure.
The rm command deletes files. There is no undelete. Be careful! |
Quote:
|
yeah, about the cp command. Can I specify a directory to copy it to?
|
ok never mind
Thanks guys! |
All times are GMT -5. The time now is 12:20 PM. |