server:linux_scripts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| server:linux_scripts [2013/04/15 16:19] – ashley | server:linux_scripts [2024/05/02 10:36] (current) – [search and remove files from directories] ashley | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux Scripts ====== | ====== Linux Scripts ====== | ||
| + | ====Keypair==== | ||
| + | ssh-keygen -t rsa | ||
| + | Enter to save file with default empty password | ||
| + | ssh-copy-id user@123.45.56.78 | ||
| + | |||
| + | https:// | ||
| ===== Disabling power button under FreeBSD ===== | ===== Disabling power button under FreeBSD ===== | ||
| Line 10: | Line 16: | ||
| + | =====Search for text in file===== | ||
| + | grep --after-context=5 --before-context=10 'Nov 12 2012' yourfile.log | ||
| Line 50: | Line 57: | ||
| ===== search and remove files from directories ===== | ===== search and remove files from directories ===== | ||
| find . -type f -name " | find . -type f -name " | ||
| + | ===== Find and replace text in files in a folder===== | ||
| + | sudo find RTPOP* -type f -exec sed -i ' | ||
| + | |||
server/linux_scripts.1366042744.txt.gz · Last modified: (external edit)
