linux

1. searching files:

find . -type f -name “*.java”

 

2. securing /var/www folder for publishing web applications

Make sure the group is www-data on ‘/var/www’

Make ‘/var/www’ writable for the group

Set the GID for www-data for all sub-folders

Your directory should look like this on an ls -l output.

drwxrwsr-x

Last, add your username to the www-data group (secondary group)

3. Searching certain text in file with line number and edit that in vim