Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 335 Bytes

Shell.md

File metadata and controls

18 lines (15 loc) · 335 Bytes

Shell

1. Recursive delete file under subfolders

#!/bin/bash

find . -type f -name <regex> -delete

Where <regex> can be replaced by any regular expression.

2. Generate new ssh key

ssh-keygen

3. Copy ssh key to target machine

ssh-copy-id [username]@[ip address]