Linux
find
Recursively find files with extension
find . -name \*.ts
.
: current directory-name \*.ts
: filenames with *.ts pattern
grep
grep -r --include \*.js "search_text" .
openssl
Encrypt & Decrypt files
# encrypt
openssl enc -aes256 -iter 100000 -pbkdf2 -in filename.in -out filename.out.enc
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
# decrypt
openssl enc -d -aes256 -iter 100000 -pbkdf2 -in filename.out.enc -out filename
enter aes-256-cbc decryption password:
Create server cert
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
Listen and serve file
openssl s_server -quiet -accept 80 -cert certificate.pem -key key.pem < filename.in
Connect & download file
openssl s_client -connect 10.10.10.32:80 -quiet > filename.out
ln (symlink)
ln -s /from/file/path /to/file/path