How to create a directory and give permission in single command in Linux?
I have to create lots of folder with full permission 777.
777
IMO, it's better to use the install command in such situations. I was trying to make systemd-journald persistent across reboots.
install
systemd-journald
install -d -g systemd-journal -m 2755 -v /var/log/journal