Preserve File Permissions While Copying Files in Linux

Following is the command :

> cp -p /aaa/bbb /ccc/ddd

Advertisements

OpenSSL – Public Certificate and Private key

privatekey -> openssl genrsa [-out filename] [-passout arg] [-des] [-des3] [-idea] [-f4] [-3] [-rand file(s)] [numbits]

public certificate -> $ openssl req -new -x509 -nodes -sha1 -days 365 -key host.key > host.cert