When the “/usr/bin/rm: arg list too long” error occurs while deleting many files
You can delete them with the command below.
find . | xargs -n 1000 rm -f
When the “/usr/bin/rm: arg list too long” error occurs while deleting many files
You can delete them with the command below.
find . | xargs -n 1000 rm -f
When using an Amazon server, retrieving the server IP returns the private IP address. So I made this to get the public IP address. <? if(in_array(substr($_SERVER[‘SERVER_ADDR’], 0, 3), array(‘172’))) if(strrpos(gethostname(), ‘.compute.internal’)!==false) $_SERVER[‘SERVER_ADDR’] = file_get_contents(‘http://169.254.169.254/latest/meta-data/public-ipv4’); echo $_SERVER[‘SERVER_ADDR’]; ?>
Delphi has been updated to version 10.2. This is the initial installation procedure for using it on CentOS 7. [php] # yum -y update # yum install -y firewalld # systemctl unmask firewalld # systemctl enable firewalld # systemctl start…
When modifying a WordPress theme, you can leave the original untouched and make changes to a backed-up copy of its files (called a child theme). To easily identify the child theme you are using, combine the theme name and create…
Here’s an easy way to use threads in Delphi. Just use synchronize properly 🙂 Function [code lang=”delphi”] uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not…
How to Use Launch the program. Click the File button, enter the commands as shown below, and save the file. (If you have multiple accounts, repeat these steps.) [php] # Connect to the account to create the backup files. ssh://{아이디}:{패스워드}@{아이피}:{포트}…
SSHD Configuration vi /etc/ssh/sshd_config Port {port number} service sshd restart Firewall Configuration vi /etc/sysconfig/iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport {port} -j ACCEPT service iptables restart * After changing the SSH port, configure the firewall…