Monthly Archives: June 2017
-
Linux Snippet: Run diff on remote server.
Leave a commentJune 21, 2017 by aubreykloppers
diff local_file <(ssh user@server ‘cat remote_file’) i.e.: diff /etc/named.conf <(ssh root@ ‘cat /etc/named.conf’) Easy if you know how!
-
Linux snippet – run command as user (su)
Leave a commentJune 21, 2017 by aubreykloppers
as easy as: su – <user> -c “<command arg0 arg1…> i.e.: su – user1 -c “ls -al > /home/user1/test.txt”
-
Zimbra – managing GAL.
Leave a commentJune 20, 2017 by aubreykloppers
Delete by using: zmgsautil deleteAccount -a gal<random string>@<domain> Create by using: zmgsautil createAccount -a gal@<domain> -n “Global Addresses” –domain <domain> …
Continue reading -
Linux snippet – delete all files
Leave a commentJune 13, 2017 by aubreykloppers
Delete all files (including hidden ones) with just one rm rm -rf {,.[!.],..?}*