I found this mv command but I can't find why it works:
sudo mv /usr/share/dbus-1 /services/org.freedesktop.Notification.service{,.disabled}
I can't find this syntax in the man page.
I found this mv command but I can't find why it works:
sudo mv /usr/share/dbus-1 /services/org.freedesktop.Notification.service{,.disabled}
I can't find this syntax in the man page.
In that position in a command, the {}
indicate a list of alternatives, which in this case are ""
and ".disabled"
. Try it yourself, with echo
(and removing the space after /dbus-1
:
$ echo /usr/share/dbus-1/services/org.freedesktop.Notification.service{,.disabled}
/usr/share/dbus-1/services/org.freedesktop.Notification.service /usr/share/dbus-1/services/org.freedesktop.Notification.service.disabled
/dbus-1
and/services
? If not, then it is a simple brace expansion – steeldriver May 20 '16 at 13:46