BASH

  1. To recursively give directories read&execute privileges:
    find /path/to/base/dir -type d -exec chmod 755 {} +
  2. To recursively give files read privileges:
    find /path/to/base/dir -type f -exec chmod 644 {} +
  3. Delete broken symlinks:
    find -L /etc/ssl/certs -type l -delete
  4. REMOVE FILES 3DAYS OLD
    find /u1/database/prod/arch -type f -mtime +3 -exec rm {} \;
  5. WGETPROXY
    wget —no-host-lookup —proxy=on 192.168.202.1:3128 —proxy-user=blablabla —proxy-passwd=blablabla
  6. TOPMEM