3 ms·
GNU toolset: cp -t [here] [list of a great many items] And there is one area outwith Unix but still at the command line where one does sometimes see peopl
by JdeBP 11y ago
GNU toolset:
cp -t [here] [list of a great many items]
And there is one area outwith Unix but still at the command line where one does sometimes see people putting flags at the end (even though this is not the documented syntax):
dir *.txt /s
Be wary of the service command, incidentally.
* http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/nosh/bsd-service-command.html http://homepage.ntlworld.com./jonathan.deboynepollard/Softwa...
As for "ctl": Bear in mind that there are a lot of "ctl" commands. initctl (from upstart), netctl (from Arch), rcctl (from OpenBSD), pfctl (from OpenBSD), ip6addrctl (from FreeBSD), ntpctl (from OpenBSD), hastctl (from FreeBSD), swapctl (from 4BSD), rctl (from FreeBSD), pppctl (from FreeBSD), smartctl, journalctl, bootctl, localectl, busctl, coredumpctl, hostnamectl, machinectl, timedatectl, loginctl ...
Pick unadorned "ctl" for the systemd one, and one begs the question of why systemd alone is special enough not to require its name in the command.
- majewsky 11y agoThe "-t" switch in "cp" exists to support the use with xargs, e.g. find /some/directory/ -name *.txt | xargs cp -t all-the-textfiles/ The systemctl interface has the same useful property: systemctl --failed | awk '/.service/{print$1}' | xargs systemctl restart