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

In my experience, the slowdown is usually not remembering the command, but remembering, say, whether you want -f, -F, --force, --hard or some other option for this particular command.

Even common commands have this problem — for example, I don't copy files all that much, so when I do, I frequently forget that cp takes -R instead of -r.



doesn't cp take -r,-R or --recursive? or is it OS specific? in Ubuntu or CentOS I believe they're all the same


It's program specific. The vast majority of linux distros come with GNU cp, which takes either. BSD's version of cp only takes -R, Mac's too I suppose since it's BSD-based.

The annoying ones on linux are chmod/chown, they take -R only.

EDIT: it's OS specific in the sense that these programs follow the OS's convention, I expect BusyBox cp, a lightweight Linux version of cp, has the same options as GNU cp


chmod is that way because ambiguity... -r is take away read...


POSIX only specifies -R. Actual implementations of cp can include whatever nonstandard arguments they want, such as -r in GNU cp.


thanks a lot, gotta read more about POSIX ^^




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

Search: