*** Tarantule ***

čtvrtek 22. května 2008

Simple use of test command

Check if the file /etc/auditd.conf exists, if not, create empty one

test ! -f /etc/audit.conf && touch /etc/audit.conf

Check if the folder exists:

test ! -d /ora1 && echo "/ora1 doesn't exist" && exit 13
Vystavil Alchy v 7:05

Žádné komentáře:

Okomentovat

Novější příspěvek Starší příspěvek Domovská stránka
Přihlásit se k odběru: Komentáře k příspěvku (Atom)

Archiv blogu

  • ▼  2008 (18)
    • ▼  května (18)
      • SSL LDAP Search
      • Vista & XP Profile Directory Locations
      • Auditd configuration on Linux to track activity of...
      • RedHat/CentosOS version 4 or 5 check in bash
      • Simple use of test command
      • ILOM - Quick
      • Simple Solaris iptraf like script
      • Allow vsftpd to use passive mode
      • Disable yum kernel updates on CentOS Linux
      • Audit report - script to format output (similar to...
      • Determine processor type and speed (Solaris)
      • Determine if the system is running in 32-bit or 64...
      • Veritas Cluster - Links
      • Sun cluster commands (3.2)
      • Jak v LINUXu změnit nastavení jazyka (LOCALE)
      • Poznámky k Nagiosu (dokumentace)
      • Solaris 10 a příkazy CHOWN/CHGRP
      • Problémy aktualizací Windows XP po instalaci SP3