Here is a list of some helpful Linux commands (all these commands assume you are a ROOT user):
- Need to search all your files, on your server for a word(s)?
- grep -r "SEARCH WORDS HERE" .
- Add on "-l" if you want to return ONLY the file that search word is in.
- Add on "-i" if you want to make it case insensitive.
- Tip: make sure to end with the "." as it is the wild card that will search all file types.
- Read more about it here: http://www.computerhope.com/unix/ugrep.htm
- grep -r "SEARCH WORDS HERE" .
- Need to move all files from a old Linux server to a new one using SSH?
- scp -rC USER@DOMAIN:/DIRECTORY TO COPY .
- Tips:
- -r is for recursive
- -C is for compression on fly (10x faster transfer)
- For DOMAIN use either FQDN or IP of old server
- Make sure to end your directory with "." as it is the wild card to transfer all file types.
- Read more about it here: https://kb.iu.edu/d/agye