My final attempt with Dropbox involved trying to use their web interface via Firefox. Following the directions at and using the Dropbox CLI also failed. Attempts to install the application from the Ubuntu Software library seemed to succeed, but the application would not launch. A cursory review indicated that Dropbox was supported on Ubuntu, but I learned that the support is poor. I use it all the time on Windows, having upgraded recently from the Basic plan with 2GB to Dropbox Plus with 2TB of storage.
So here goes.īeing a bit of a lazy person, I thought that using Dropbox was an easy choice. Now, there are probably a hundred ways of getting files from one machine to another, so this wouldn’t be particularly interesting except for the fact that I chose some wrong paths, and had to puzzle it out. Sometimes when you’re alone at night in a hotel, there’s not much else to do (besides watching TV), so I thought it could be a fun thing to occupy time. So, it occurred to me to copy the openbmc folder from my Linux desktop over to my Windows laptop, so I could study the build contents while I am on the road traveling. Even though it’s a first-generation AMD Ryzen chip, having so many threads at my disposal makes it run circles around doing the same build on my Surface Pro laptop even though the Surface does have an Intel 4-core 8-thread CPU Kaby Lake Refresh CPU, Windows is my daily driver on it, which means I do my builds using Ubuntu on VirtualBox, and need to dedicate some CPU resources to keeping Windows alive in the background. Luckily, I have an 8-core, 16-thread Ryzen 1700X CPU in my desktop at home, so the build goes fairly quickly. And it can take hours for the build to complete. Given the huge code base involved, using Yocto to build a BMC image with the OpenBMC framework involves a huge number of files – 3,922,917 files taking up 120.4GB, to be precise. Little did I know how complicated this could be. The syntax is very similar to cp.In my spare time, I was doing some OpenBMC Yocto builds on my Linux machines, and decided I wanted to copy these files over to my Windows PC. If you came here looking to move a file from one place to another without making a duplicate, you can do that easily too, but moving a file requires the mv command. Learn how to make use of rsync to copy files in Linux.Īlso read: How to Save the Terminal Output to a File in Linux Move a File or Folder This is especially useful if the destination folder is in an SSD, as it saves write cycles and doesn’t needlessly degrade the drive’s health by overwriting entire files. Rsync is a little more advanced in that it goes into the minutiae of each file, does a full comparison of the data in both, and within the file itself, only overwrites the data that has changed. If you need to do several copy operations that overwrite files (such as creating a backup that you will update once in awhile) for some reason, rsync might just put a smile on your face. Generally the -v and -i flags are available in a large range of commands that are common to Linux. Use cp followed by the file you want to copy and the destination where you want it moved.Ĭp -rvi ~ /Downloads /*.jpg ~ /Pictures / Most other terminals will lock you into the default universal combination for copying/pasting in the console without the ability to configure them.Īlso read: How to Use cURL for Command Line Data Transfer and More Copy and Paste a Single FileĪny time you want to copy a file or folder in the Linux command line, the above keyboard shortcut won’t work.
If for some reason these keyboard shortcuts don’t work, the terminal might not be properly configured for it. For example, you can copy a command from a web page in your browser and use the Ctrl + Shift + V shortcut to paste it in the terminal. The Paste shortcut also applies when you copy a section of text from a Word document (or any other application) and want to paste it in the terminal. To paste it where the cursor is, use the keyboard shortcut Ctrl + Shift + V. If you just want to copy a piece of text in the terminal, all you need to do is highlight it with your mouse, then press Ctrl + Shift + C to copy. Copy and Paste All Files of the Same TypeĪlso read: How to Delete a Directory in Linux Copy and Paste Text.Copy and Paste a Folder and Its Contents.