Linux Console Commands For Web Developers – Tree, Find, Find & Execute
Essential Commands for the web developers to know and used to set proper permissions to the file and avoid malicious attacks on the server. Also to find and remove the malicious directories and files from the server.
List all the Directories and Files to the File.tree -a -o filestructure.txt
Find and Remove Files or Directoryfind -name 'ALFA_DATA' -exec rm -r {} +
Find Directoryfind -name 'ALFA_DATA' -type d
Find Filesfind -name 'ALFA_DATA' -type
f
Select all files and apply permission to 644find -type f -exec chmod 644 {} +
Select all Directories and apply permission to 755find -type d -exec chmod 755 {} +
Comments are closed.