How to Copy Files in Linux

Method 1 of 2:

Using the Command Line

  1. How to Copy Files in Linux Picture 1
    Open Terminal. Click or double-click the Terminal app icon, which usually resembles a black box with a white ">_" on it.
    1. You can also just press Alt+Ctrl+T to open Terminal on most Linux versions.
  2. How to Copy Files in Linux Picture 2
    Go to the proper directory. Type in cd path where "path" is the address of the folder in which the file you want to copy is located, then press Enter.
    1. For example, to tell Terminal to look for your file in the Desktop folder, you would type cd Desktop into Terminal.
    2. Make sure you capitalize the folder's name if necessary.
    3. If attempting to switch to a folder results in an error, you'll need to enter the folder's entire path (e.g., /home/name/Desktop/folder instead of just folder) here.
  3. How to Copy Files in Linux Picture 3
    Type in the "copy" tag. This tag is cp with a space after it.
  4. How to Copy Files in Linux Picture 4
    Enter a file's name. Type in the name and extension of the file you want to copy after cp and the space, then add a space.
    1. For example, if you want to copy a file named "hello", you would type cp hello into Terminal.
    2. If the file name has an extension on the end of it (e.g., ".desktop"), make sure you include the extension in the file's name when typing it into Terminal.
  5. How to Copy Files in Linux Picture 5
    Enter the destination folder. Type in the path for the folder into which you want to copy the file.
    1. For example, if you want to copy "hello" into a folder named "Hi" that's stored in the Documents folder, you would have cp hello /home/name/Documents/Hi (where "name" is your username) typed into Terminal.
  6. How to Copy Files in Linux Picture 6
    Press Enter. Doing so will run your command. Your file will be pasted into the folder you specified.
Method 2 of 2:

Using the Interface

  1. How to Copy Files in Linux Picture 7
    Consider using keyboard shortcuts. As with virtually all operating systems that have user interfaces, you can use keyboard shortcuts to copy and paste files on Linux:
    1. Click the file you want to copy to select it, or drag your mouse across multiple files to select them all.
    2. Press Ctrl+C to copy the files.
    3. Go to the folder into which you want to copy the files.
    4. Press Ctrl+V to paste in the files.
  2. How to Copy Files in Linux Picture 8
    Find the file you want to copy. Go to the location in which the file is located.
  3. How to Copy Files in Linux Picture 9
    Select the file. Click once the file to do so.
  4. How to Copy Files in Linux Picture 10
    Right-click the file. Doing so will prompt a drop-down menu.
    1. Some Linux versions will also display a menu bar at the top of the screen. If so, you can click Edit instead of right-clicking the selected file.
  5. How to Copy Files in Linux Picture 11
    Click Copy. It's in the drop-down menu. This copies the selected file.
    1. You may click Copy... or Copy File on some versions of Linux.
  6. How to Copy Files in Linux Picture 12
    Go to the destination folder. Find the folder into which you want to paste the file.
  7. How to Copy Files in Linux Picture 13
    Right-click an empty space. This will create a drop-down menu in the folder.
  8. How to Copy Files in Linux Picture 14
    Click Paste. It's in the drop-down menu. Doing so pastes in your copied file.
4 ★ | 1 Vote

May be interested

  • How to Select Folders to Sync with Copy on WindowsHow to Select Folders to Sync with Copy on Windows
    having the copy application on your computer allows you to continuously sync the contents of your local copy folder with those of your main copy account. you don't need to go to copy's website to download your files. you're assured that...
  • How to access Linux files on Windows 10How to access Linux files on Windows 10
    windows 10, april 2019 update brings a long-awaited feature: support for easy access, viewing and even modification of windows subsystem for linux files (wsl) from file explorer or via stream command.
  • Tips for copying files between different user accounts in Windows 10Tips for copying files between different user accounts in Windows 10
    if you share a pc with other people, it's a great idea to create separate user accounts for each person. it's a great way to give people some privacy so that users can store files without worrying about others accessing them.
  • How to use PDF Anti-copy to protect PDF filesHow to use PDF Anti-copy to protect PDF files
    pdf anti-copy is software that protects pdf files, preventing the ability to copy all data, even when converting pdf files to word or excel.
  • Fix USB errors that cannot copy files larger than 4GBFix USB errors that cannot copy files larger than 4GB
    you are trying to copy a file larger than 4gb to a usb drive or to a hard drive partition and the file error is too large for the file system destination. if you encounter this situation and do not know how to handle it, please refer to the instructions below of tipsmake.com.
  • File Management in Unix / LinuxFile Management in Unix / Linux
    all data in unix is ​​organized in files. all files are organized in folders. these directories are organized in a tree structure that is called the file system.
  • Is it possible to run .exe files on Linux?Is it possible to run .exe files on Linux?
    you don't need to trade the appeal of windows software for the stability, security, ease of customization (and even great classic appearance) of linux. in this article, you will be shown how to run windows exe (possibly executable) files and software using the linux operating system. these methods can be applied to any linux distribution, including ubuntu, kali linux, centos and many others.
  • How to create a burnable DVD copy on Linux with DevedeNGHow to create a burnable DVD copy on Linux with DevedeNG
    on linux, devedeng is a great way to create your own complete dvd video with interactive menus. devedeng allows users to easily combine their video files into a writable dvd image.
  • How to properly copy and move files on WindowsHow to properly copy and move files on Windows
    if you are a proficient windows 10 user, you will need to know how to copy and move files on windows properly. most users only know the copy and move key combinations that are useful on windows but are actually few people can grasp the most standard way to copy and move files.
  • How to Move the Copy Folder in WindowsHow to Move the Copy Folder in Windows
    when the copy desktop application was first installed in your computer, it created its own local folder named copy under my documents. this is where the files from your copy account are placed and synced. if, for whatever reason, you...