dired-copy-filename-as-kill

dired-copy-filename-as-kill is an interactive compiled Lisp function in `dired.el'.


(dired-copy-filename-as-kill &optional ARG)

Copy names of marked (or next ARG) files into the kill ring.
The names are separated by a space.
With a zero prefix arg, use the absolute file name of each marked file.
With C-u, use the file name relative to the Dired buffer's
`default-directory'. (This still may contain slashes if in a subdirectory.)

If on a subdir headerline, use absolute subdirname instead;
prefix arg and marked files are ignored in this case.

You can then feed the file name(s) to other commands with C-y.