Skip to main content

How can we delete all file with contains

find . -exec grep -l "(search_term1)|(search_term2)" {} \;| xargs rm

Comments

Popular posts from this blog

fatal: scan_dir_push: open directory defer: Permission denied

problem:- Nov 7 18:24:18 linuxxf postfix-archive/postsuper[20555]: fatal: scan_dir_push: open directory defer: Permission denied Nov 7 18:24:19 linuxxf postfix-archive/postfix-script: fatal: Postfix integrity check failed! Nov 7 18:28:26 linuxxf postfix-archive/postsuper[21162]: fatal: scan_dir_push: open directory defer: Permission denied Nov 7 18:29:57 linuxxf postfix-archive/postsuper[21334]: fatal: scan_dir_push: open directory defer: Permission denied soloution:- To correct queues that were created outside of Postfix: postfix -c /etc/postfix-archive set-permissions
Greetings! We are excited to share with you our latest newsletter on building a resilient SAAS infrastructure with confidence. At Groots, we understand the importance of having a robust SAAS infrastructure that delivers to your expectations and requirements. To achieve this, we have identified key capabilities that your SAAS infrastructure should possess. First and foremost, your infrastructure should have the ability to prevent emergencies such as breakdowns, security breaches, cost overruns, and even attrition. This ensures that your systems are available and secure at all times, delivering business value at the lowest price point. Additionally, your SAAS infrastructure should improve efficiencies by being dependable and productive. Operational excellence, performance efficiency, reliability, and billability are all crucial in ensuring that your infrastructure runs workloads effectively, maintains computing resources efficiently, and tracks and bills application usage. Moreover, your...

Allowing ssh login using Sudo

Allowing ssh login using Sudo In order to record all the commands executed by a engineer when doing a remote login via ssh to your server do the following: 1. Login to the Linux server using the root login. 2. Edit the /etc/sudoers file using visudo. After editing the contents of the file shoud be as follows: # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification Cmnd_Alias USR_BIN_CMDS = /usr/bin/telnet, /usr/bin/tail, /usr/bin/diff, /usr/bin/dig, /usr/bin/find, \ /usr/bin/head, /usr/bin/kill, /usr/bin/ldapsearch, /usr/bin/man, \ /usr/bin/updatedb, /usr/bin/wget, /usr/bin/du, /usr/bin/watch Cmnd_Alias SBIN_CMDS = /sbin/chkconfig, /sbin/fdisk, /sbin/fsck, /sbin/ifconfig Cmnd_Alias USR_SBIN_CMDS = /usr/sbin/crond Cmnd_Alias USR_LIB_CMDS = /usr/lib/rpm...