Suppose I click on a file in Nautilus. How can I copy the full address to the clipboard, and then easily paste it into a shell command that I'm typing in a terminal?
Copy a file in Nautilus and use it in a shell command line
command line;x11;nautilus;clipboard
Press Ctrl+C to copy. When you paste into a terminal, what you'll get is the file name (with its full path).You get the raw file name, which won't be directly usable in a shell command if it contains spaces or other special characters. To use the file name in a command, don't use a paste command from the terminal, let the shell do the pasting. Install the program xsel (packaged in most distributions) and call it on your command line, inside a command substitution. You need double quotes around the command substitution to protect special characters such as spaces.$ ls -l `xsel -b`