Search results

  1. S

    Command to screen files containing specific line

    Hi JasKinasis, Lot of thanks for your continue support. If I understand your advice correctly I need to create a script file with following content on it. script; <FilesMatch '.(php|php5|suspected|py|phtml)$'> Order allow,deny Deny from all </FilesMatch> Can I save the script on local PC...
  2. S

    Command to screen files containing specific line

    Hi Wiz The complication here are; 1) All my live websites are running on the server of the hosting company 2) I run commands on the cPanel Terminal of the hosting company. Only limited Linux commands and software are installed there and I'm not allowed running all of them rpm -qa showing all...
  3. S

    Seeking for command lines

    Hi JasKinasis, I'll answer it on that thread later. Sorry I overlooked it. Edit === Please point me where can I find documents learning Linux command and Linux script? On Google search I found many suggestions, hesitating to know which direction shall I select Regards
  4. S

    Seeking for command lines

    H JasKinasis, Sorry returning you a late reply it was because last week having other engagement. I'm only a beginner is Linux command line 1) -exec awk Can I use | pipe command instead of -exec ? 2) FNR == 1 { f1=f2=f3=0; }; If having 4 search patterns FNR == 1 { f1=f2=f3=f4=0; }; ? What...
  5. S

    command line to search files with string and save output to file

    Hi captain-sensible, All my websites are NOT for business. They are used sharing information amongst friends and acquaintances. All my websites are WordPress sites. The most strange thing shocked me is that some of my websites having running in my previous hosting company for more than ten...
  6. S

    Seeking for command lines

    Hi JasKinasis, Performed following tests on Terminal 1) # find /path/to/storage/hard-drive/ -name "*.txt" -type f -exec awk 'FNR == 1 { f1=f2=f3=0; }; /Scanning/ { f1++ }; /GIMP/ { f2++ }; /steps/ { f3++ }; f1 && f2 && f3 { print FILENAME; nextfile; }' {} \; > /tmp/scanning.txt & [1] 57904 #...
  7. S

    Seeking for command lines

    Hi JasKinasis, I'll check your late advice later. I have following findings to report; Finally the command lines finish their work. I don't know how long they took. I just leave the PC running unattended. File size; epson_3490.txt - 5.8kB scanning.txt - 2.8kB Files recorded; On...
  8. S

    Seeking for command lines

    Hi JasKinasis, Lot of thanks for your advice and your time spent to help me. Performed following tests; 1) $ find /path/to/storage/hard-drive/ -type f -exec awk 'FNR == 1 { f1=f2=f3=0; }; /Epson/ { f1++ }; /3490/ { f2++ }; /Ubuntu/ { f3++ }; f1 && f2 && f3 { print FILENAME; nextfile; }' {} \...
  9. S

    command line to search files with string and save output to file

    Hi captain-sensible, Thanks for your detail explanation. My websites have been attacked 3 times ever-since I started using the hosting service of my current hosting company, about 3 months ago. I have been using the service of my previous hosting company for more than 10 years without a...
  10. S

    command line to search files with string and save output to file

    I solved the problem by running following commands on cPanel Terminal of the hosting company # find ./ -type f -name "lock360.php" -delete # find ./ -type f -name "th3_alpha.php" -delete # find /public_html/website_folder/ -name "./htaccess" -delete Now the problematic websites are working...
  11. S

    Seeking for command lines

    Thanks for your support Performed following command lines on Terminal:- $ locate /path/to/database/drive/ {dual boot} no output $ grep -Ril {dual boot} /path/to/database/drive/directory/ grep: boot}: No such file or directory $ grep -E 'dual|boot' <em>/path/to/database/drive/</em> bash...
  12. S

    Seeking for command lines

    Hi, Thanks for your advice. Performed following command lines on Terminal; $ sudo updatedb $ locate {dual boot} /path/to/database/drive/ no output $ locate /path/to/database/drive/ {dual boot} no output $ grep -Ril {dual boot} /path/to/database/drive/directory/ grep: boot}: No such file or...
  13. S

    Seek advice on using Epson V800/V850 scanner

    Hi all, Thanks for your advice. I have been using Epson flatbed scanner for long time. My old Epson 3490 is still working on Ubuntu 20.04 PC and the scanning software is XSane. I'm prepared to purchase a new Epson flatbed scanner V800 or V850 for scanning old film negatives. V800 is already...
  14. S

    command line to search files with string and save output to file

    Hi KGIII, While waiting for your reply, today all my websites are attacked by a suspected malware th3_alpha.php , resulting in some of them not working, unable to browse on Internet. This suspected malware works in the same way as lock360.php before creating malicious .htaccess everywhere with...
  15. S

    Seeking for command lines

    Hi, Thanks for your link. I have no problem finding files by running following command on Terminal; # find ./ -type f -name "abc.txt" But I'm looking for a command line finding files with following content; word-1 and word-2 and word-3 etc. Regards
  16. S

    Seeking for command lines

    Hi, Yes. Files containing word1 AND word2 AND word3 Thanks Regards
  17. S

    command line to search files with string and save output to file

    lock360.php.zip has been sent. Please check your email. Thanks Regards
  18. S

    command line to search files with string and save output to file

    Oh sorry. I'll compressed the file and resend it to you. Please advise; 1) will .zip work? 2) your email address Thanks Regards
  19. S

    Seek advice on using Epson V800/V850 scanner

    Hi all, I'm prepared purchasing a Epson V800/V850 scanner to scan the old stock of film negatives, black&white and color, and photos Epson doesn't support Linux I found the driver on; Download drivers and Software http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX Please advise which...
  20. S

    Seeking for command lines

    Hi all, Please advise the command lines to find files on server database; 1) Files contain word1, word2, word3 etc and to print them on /tmp/ 2) Files contain URL having word1, word2, word3 etc and to print them on /tmp/ Thanks in advance. Regards
Top