Easy way to move files and folders on the computer on Windows, macOS, and Linux

Mohammed Ouahman
4 min readAug 7, 2021

Bismillah Arahmani Arahim

Photo by Frans Van Heerden from Pexels

There are several methods available to move computer files and folders (directories) from one source or level to another. Click one of the links below to view steps relating to the operating system you need help with, or scroll down to review them all.

How to move files in Windows

In Windows, you can move files using several methods. You can drag-and-drop, cut and paste, or use the “Move to Folder” command. Below are the steps on how you can move files in Windows. Choose the option that works best for you.

Using cut and paste:

To cut and paste a file, select the file you want to move, right-click the highlighted file, and then select Cut. Browse to the folder you want to move the file to, right-click in the folder, and select Past.

Alternatively, you can click Edit from the file menu, select Cut to cut the files, browse to where you want to move the files, then select Edit and Paste in the file menu.

Finally, you can also use shortcut keys to cut and paste files. Select the files you want to cut, then press the shortcut key Ctrl+Vto cut the files. “Cutting” the files is like cutting text in a document: it moves the files to a temporary “clipboard” until you “paste” them somewhere. Navigate to the destination folder and press the shortcut key Ctrl+V to paste the files. The files are now in your destination folder.

Using drag-and-drop

Highlight the files you want to move, press and hold your right mouse button, and drag-and-drop the files to where you want to move them. When you release the mouse button, a menu appears, similar to the example shown in the picture. Select the Move here option to move the files.

Use “Move to Folder”

To use the “Move to Folder” command, select the file by clicking the file name. Click the Edit menu near the top-left of the window and select the Move to Folder option. In the new window browse to the folder you would like to move the file, then click the Move button to move the file to that folder.

If you are using Windows 8, once the files are selected the Move to option is shown under the Home tab.

You can move files in the Windows using the command line (cmd)

In the Windows command line and MS-DOS, you can move files using the move command. For example, if you want to move a file named “file.doc” to the “c:\folder” folder, you would type the following command, then press the Ente key.

move file.doc c:\folder

If you’d like to move multiple files, you can separate the file names with a comma, as in the following command.

move file.doc, morefiles.doc c:\folder

In the next example, we are moving the file “test.doc” to the D:\ drive.

move test.doc d:\

You can also move multiple files with wildcards. In the example below, the move command moves all files that have the “.doc” file extension to the “c:\folder” directory.

move *.doc c:\folder

Using the move command, you can also move a directory (folder). In the example below, the move command moves the “example” directory in the current directory to the “new” directory also in the current directory.

Tip

If you want to move a directory or file into a different directory, you need to specify the full path.

How to move files in macOS

There are several ways to move files in macOS.

Using drag-and-drop

In the macOS Finder, you can drag and drop one or more file icons, moving them from one folder to another. To drag-and-drop, a file, highlight the files you want to move. Click any of them, and before you release the mouse button, move the mouse cursor until it is over the destination folder. Release the mouse button to move the files to this location.

Using keyboard shortcut

You can also move files using keyboard shortcuts by following the steps below.

  1. Highlight the files you want to move.
  2. Press the keyboard shortcut Command+C.
  3. Move to the location you want to move the files and press Option+Command+V to move the files.

Terminal

It’s the same as windows cmd, To move files in the Terminal command line, use the mv command instead of the move command, as we see here is an example:

mv file.doc c:\folder

How to move files in Linux

In Linux, using the command shell, you can move files or directories with the mv command. For example, if you wanted to move a file named “data.txt” to the folder named “download,” you would type the following command.

mv data.txt download

It’s easy bro!!

--

--

Mohammed Ouahman

Data Scientist, Machine Learning Enthusiast, Passionate about E-commerce industry.