Search results

  1. S

    About Linux command line

    Hi Thanks for your advice. Your command line works for me. $ apt policy liblame N: Unable to locate package liblame $ apt policy lame lame: Installed: (none) Candidate: 3.100-3 Version table: 3.100-3 500 500 http://hk.archive.ubuntu.com/ubuntu focal/universe amd64...
  2. S

    About Linux command line

    Hi all, I combine multiple .wav files and then convert the output.wav to mp3 running; $ sox *.wav output.wav | ffmpeg -i ouput.wav -vn -ar 44100 -ac 2 -b:a 192k output.mp3 It works but generating an output.wav file. Please advise how to modify the command line without generating an output.wav...
  3. 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...
  4. 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...
  5. 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
  6. 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...
  7. 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...
  8. 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 #...
  9. 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...
  10. 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; }' {} \...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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
  18. S

    Seeking for command lines

    Hi, Yes. Files containing word1 AND word2 AND word3 Thanks Regards
  19. 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
  20. 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
Top