Wiki
Clone wikiPerch Resource Wiki / SSH_Commands
SSH Commands
Error Logs
- CD into error log directory
tail -f
name-of-log-you-wish-to-view.log
Create a Key
https://www.34sp.com/kb/211/how-to-create-an-ssh-key#ssh-osx
To search in SSH for a word or a sentence in a file you can use the grep command
grep “username” wp-config.php
This command will output the username keyword in the wp-config.php file, but if you are not sure in which file this is located, you can use:
grep -r – H “username” *
This will look for the username in all files and give out the output in a recursive and human-readable format which the -r and -H options stands for.
Updated