Re: Help with command - cp
On Sun, 2014-01-26 at 23:24 +0100, Mathias Bauer wrote:
> If the target directory *exists* the trailing slash will *not* be
> necessary
On Mon, 2014-01-27 at 12:44 +1100, Zenaan Harkness wrote:
> and yet there is the advantage of training the fingers
Using the tab-key a / is automatically attached.
$ cp Do + tab-key = $ cp Downloads/
$ cp Downloads/ De + tab-key = $ cp Downloads/ Desktop/
I only would remove a /, if there is a reason to do so.
IOW depending to what I want, I would run
$ cp Downloads/* Desktop/
$ cp -r Downloads/ Desktop/
just because I use the tab-key.
Reply to: