Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

📄 Contents

  1. Got Storage?
  2. Getting Ready to Receive the Files
  3. Learning && Trying Rsync
  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Getting Ready to Receive the Files

You need to type out the server name and the filename to download and where the received files need to go and the filename used for storing the files. And don’t forget to type the entire path for everything! We need security access, too. So where will we store them? Most of us have full rights in the My Documents folder. That folder is nested three directories or more into your file system! Typing all that will be a tough job. So let’s begin by building and then navigating to your storage depot. If you execute rsync while in the storage depot, you can instruct rsync to put the files in the current directory and use the same filenames, saving you many keystrokes.

So let’s create a directory in the My Documents directory. You can navigate to it simply in Cygwin. In Cygwin, your drives branch from a common directory called /cygdrive. Also, Cygwin has Linux’s directory name completion. If you type the first few letters of a directory and press the Tab key, you can cycle through the directories that match those letters. This saves a lot of typing and also helps you type directory names that have spaces in them—correctly.

So, to get to your account’s My Documents folder, type a command similar to this:

cd /cygdrive/c/Docu[TAB]uments\ and\ Settings/{your ID name}/My[TAB]\ Documents/

and press Enter.

The Tab key is your command-line friend. You are in the correct directory and can use Cygwin to create the new directory. This keeps permissions and ownerships consistent. Use a simple name and then navigate into your directory.

mkdir whitebox && cd ./whitebox 

This is a fancy way to link two commands such that the second is executed only if the first command completes. Type the pwd command. Are you where you want to be? If so, you’re ready to learn rsync itself.

  • + Share This
  • 🔖 Save To Your Account