1

As of right now, if I want to duplicate a folder or file, I right click on it, choose 'copy', click on nautilus itself to change focus from current folder/file, right click somewhere else and choose 'paste'.

Is it possible to duplicate a folder or file directly, like through a 'right click' -> 'duplicate' in nautilus?

  • You want something faster than Ctrl+C, Ctrl+V ? – Registered User Apr 8 '14 at 11:19
  • @AdityaPatil Hahah. Yah. Am a touchpad user and not a keyboard user. That's why. – Parto Apr 8 '14 at 11:21
  • You can make a plugin for nautilus that does just that – ladaghini Apr 8 '14 at 11:27
  • 2
    You can also CTRL + drag a file/folder to create a copy. But that would require keyboard input, I guess. – Glutanimate Apr 8 '14 at 11:38
  • 1
    @Glutanimate Wow, didn't even know zat. It's awesome. Pressing just one key doesn't make me 'a keyboard guru' :-) – Parto Apr 8 '14 at 11:50
2

Inbuilt shortcut

You can drag files while holding down CTRL to copy them.

Keyboard independent solution using a Nautilus script

Here's a short Nautilus script that should cover your use case:

#!/bin/bash
#Nautilus script to duplicate selected files/folders

while [ $# -gt 0 ]; do

    echo "$# file(s)/folder(s) left to duplicate."
    ORIGINALITEM="$1"    
    DUPLICATEITEM="${ORIGINALITEM} (copy)"
    cp -r "$ORIGINALITEM" "$DUPLICATEITEM"
    shift

done
echo "Done."

Installation instructions

Note: This is a very simple script and will fail if a duplicate file of the same naming scheme already exists in the same directory. It's also not as elegant as the naming Nautilus does by default ( (copy) is inserted after the extension).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.