Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Doesn't work if the filename contains spaces:

    # mv "Foo bar" _


No but the manual method with Ctrl-W still works. Multiple consecutive Ctrl-W operations add to the clipboard; you can gobble the whole thing with several Ctrl-W and regurgitate two copies with Ctrl-Y Ctrl-Y.

If you like spaces in filenames, you should use a GUI, anyway.

I recommend Windows Explorer; it's widely available.


Doesn't work for me if the filename has underscore(_) or dot (.) - it only copies part of the filename.


Ctrl-A, Alt-F, Ctrl-F, Ctrl-K, Ctrl-Y, Ctrl-Y

:D


Ctrl-W Ctrl-W Ctrl-Y Ctrl-Y will work.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: