files and dirs..
how would I move file1 to folder1?
and file1 to ../folder2
thanks... I checked man pages... and http://gd.tuwien.ac.at/linuxcommand.org/lts0050.php
but it's so confusing...
(look and see)
mv file1 file2
If file2 does not exist, then file1 is renamed file2. If file2 exists, its contents are replaced with the contents of file1.
mv -i file1 file2
Like above however, since the "-i" (interactive) option is specified, if file2 exists, the user is prompted before it is overwritten with the contents of file1.
mv file1 file2 file3 dir1
The files file1, file2, file3 are moved to directory dir1. dir1 must exist or mv will exit with an error.
mv dir1 dir2
If dir2 does not exist, then dir1 is renamed dir2. If dir2 exists, the directory dir1 is created within directory dir2.
I don't know how to simply move one file to another directory!