Tag Archive: Solaris


Copy a directory from localhost to a remote directory on a remote machine:

scp -r mydir username@remotemachine:/home/remotedirectory/

Copy a remote directory from a remote machine to the current directory:

scp -r username@remotemachine:/home/remotedirectory/ .

username is the user on remote host
remotemachine is the remote machine’s name or IP
remote directory is specified after the colon

Solaris PKG entpacken

pkgtrans erlaubt das Entpacken eines fertig gepackageten Solaris PKG. Erster Parameter: Pfad zum Package. Zweiter Parameter: Ordner, in den es entpackt wird. Dritter Parameter (optional): Angabe, welches Unterpaket entpackt wird.

pkgtrans mein_pkg.pkg ./exploded/ all

Nachher kann das Verzeichnis noch getart und gezippt werden:

cd exploded
tar -cvf mein_pkg.tar .
gzip -f mein_pkg.tar