2

Is this possible? For example, if I'm in ~/Folder1/Folder2, is there a way for me to copy to the clipboard the text string ~/Folder1/Folder2?

1

And if you are too lazy to perform all the steps Gilles outlined you could install the following Nautilus script to copy the path of the active directory with a hotkey:

#!/bin/bash

# Copy current directory to clipboard
# Dependencies: xclip

echo "$PWD" | xclip -selection c

For installation instructions and a tutorial on how to set up a key binding for your script please check out my answer over at Ask Ubuntu.

1

Press Ctrl+L to focus a widget to edit the current directory, then Ctrl+C to copy the path and Esc to cancel.

If you right-click on an item, use the “Copy” menu entry, and paste into a text box, that pastes the path to the file.

With Nautilus 3.4.2, you can right-click on an item the button bar at the top that shows the path to the current directory and use the “Copy” menu entry.

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.