Unix


Prestazioni

vmstat [sec] //vedo informazioni su cpu e swap

Backup

tar -cvf – /u01/IAS9i | gzip – > midtier_040304.tar.gz nohup tar -cvf – /u01/IAS9i | gzip – > midtier_040304.tar.gz &// in background

Vi

1,$s/.$//g //elimina ultimo carattere di ogni riga

Ricerca testo dentro file

find . -exec grep ‘testo da cercare’ {} \; -exec ls -l {} \;

find . -name ‘*.xml’ -exec grep ‘testo da cercare’ {} \; -exec ls -l {} \;

Vedere la configurazione dei servizi:
chkconfig

Impostare NFS

Server:

  • /etc
    • hosts.allow
    • exports
  • /etc/init.d
    • usare lo script nfs

Client

  • mount -o rsize=1024,wsize=1024 192.168.205.76:/opt/resin-2.1.16/webapps/ /mnt/webapps
  • umount /mnt/webapps