如题,rm -rf * find . -type f -name *.req .....等等报错
This is caused by build systems that use wildcards or even ebuilds that have no issues on a normal GNU/Linux system. To work around this, you need to change the ARG/ENV list size in
4K byte blocks. The default value in AIX 5.x is 6. This is way too small. You will either need root access or kindly ask your system administrator to change this value.
To change it, you have two options: use smitty (a curses sys-admin tool on AIX) or do root#
chdev -l sys0 -a ncargs=40 on the command line
If you use smitty, you are looking for this:
root# smitty
=> System Environments
=> Change / Show Characteristics of Operating System
ARG/ENV list size in 4K byte blocks [40]
直接写个脚本就行了,难得折腾如
vi delete.sh
for i in /data/u01/applprod/inst/apps/PRODOK_lbq/logs/appl/conc/log/*.req
do
rm -rf $i
done
本文介绍了如何解决使用rm命令删除特定文件时遇到的报错问题,特别是在AIX系统中调整ARG/ENV列表大小的方法,并提供了一个简单的脚本示例。
3712

被折叠的 条评论
为什么被折叠?



