top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to move a file from one directory to another directory in linux?

–1 vote
303 views
How to move a file from one directory to another directory in linux?
posted May 11, 2017 by Sanjay Mahatma

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

$mv source_directory/file destination_directory/

Use relative or absolute path for source_directory and destination_directory.

answer May 12, 2017 by Vikram Singh
Similar Questions
+1 vote

I am using centos and trying to do an rsync of the entire /var directory, but exclude just the /var/www directory.

So far I've tried these approaches:

rsync -avzp --exclude-from=/var/www /var/ /mnt/var/    
rsync -avzp --exclude=/var/www /var/ /mnt/var/

But neither has worked. Can I get a suggestion on how to get this to happen?

...