In this post of tutorials we will see some of very useful command of Ubuntu. Linux system are better than windows. We get more productivity and as a developer it feel better working on linux system than windows system. Personally i always prefer Ubuntu. Here are some of very useful commands that we use most often.
This is one of most important command for Ubuntu users. rsync command is used to copy any file of directory from one Ubuntu system to other Ubuntu system.
Here is syntax of rsync command when you are sending some file from your system to other system.
rsync -avz <directory or file path> <space> <username of remote system>@<IP address of remote system>:<Intended directory of remote system>
rsync -avz /home/dev/preprod/WebContent/education.jsp firstname.lastname@example.org:/home/bm/public_html
When you transfer some file from remote machine to local machine
rsync -avz email@example.com:/home/bm/mydbdump.sql.gz /home/dev/
Optionally you can add –progress after -avz to see progress of file transfer like below
rsync -avz –progress firstname.lastname@example.org:/home/bm/mydbdump.sql.gz /home/dev/