我有两台 Suse 15.6 服务器,都有相同的目录和文件;第一个例子在 GCP VM 上运行,另一个在 VMWare VM 上运行。
不确定我缺少哪个 ENV var,因为两者都有declare -x LANG="en_US.UTF-8"
和declare -x LS_OPTIONS="-A -N --color=tty -T 0"
(不确定是否会以任何方式修改 find 的输出)
两台服务器均在运行find (GNU findutils) 4.8.0
我需要将输出重定向到一个文件,以便可以比较它们,但由于某种原因,其中一个首先显示点文件,而另一个则从 jre 文件夹开始。
# find . -type f | less
./.install4j/user/commons-codec.jar
./.install4j/user/commons-httpclient.jar
./.install4j/user/commons-io.jar
./.install4j/user/dom4j.jar
./.install4j/user/flatlaf.jar
./.install4j/user/inception.jar
./.install4j/user/modzdetector.jar
./.install4j/user/slf4j-api.jar
./.install4j/user/slf4j-jdk14.jar
./.install4j/MessagesDefault
./.install4j/files.log
./.install4j/i4j_extf_0_4r1oza.utf8
./.install4j/i4j_extf_1_4r1oza.utf8
./.install4j/i4j_extf_2_4r1oza_1pb4rjn.png
./.install4j/i4j_extf_3_4r1oza_1wyvt5o.png
./.install4j/i4j_extf_4_4r1oza_10elu9m.png
./.install4j/i4j_extf_5_4r1oza_18gg8kx.png
./.install4j/[email protected]
./.install4j/i4j_extf_5_4r1oza_18gg8kx@2x_dark.png
./.install4j/i4j_extf_5_4r1oza_18gg8kx_dark.png
./.install4j/i4j_extf_6_4r1oza_deir7z.png
./.install4j/i4jempty.ttf
./.install4j/i4jparams.conf
./.install4j/i4jruntime.jar
./.install4j/inst_jre.cfg
./.install4j/install.prop
./.install4j/installation.id
./.install4j/installation.log
./.install4j/launcher0.jar
./.install4j/launcher2bfa42ba.jar
./.install4j/libi4jinst.dylib
./.install4j/libi4jinst2.dylib
./.install4j/pref_jre.cfg
./.install4j/response.varfile
find . -type f | less
./jre/bin/rmiregistry
./jre/bin/keytool
./jre/bin/jrunscript
./jre/bin/jfr
./jre/bin/java
./jre/conf/sound.properties
./jre/conf/sdp/sdp.conf.template
./jre/conf/security/policy/unlimited/default_local.policy
./jre/conf/security/policy/unlimited/default_US_export.policy
./jre/conf/security/policy/README.txt
./jre/conf/security/policy/limited/default_local.policy
./jre/conf/security/policy/limited/default_US_export.policy
./jre/conf/security/policy/limited/exempt_local.policy
./jre/conf/security/java.security
./jre/conf/security/java.policy
./jre/conf/net.properties
./jre/conf/logging.properties
./jre/conf/management/jmxremote.password.template
./jre/conf/management/management.properties
./jre/conf/management/jmxremote.access
./jre/legal/java.xml.crypto/santuario.md
./jre/legal/jdk.dynalink/dynalink.md
./jre/legal/java.base/aes.md
./jre/legal/java.base/public_suffix.md
./jre/legal/java.base/ASSEMBLY_EXCEPTION
./jre/legal/java.base/LICENSE
./jre/legal/java.base/icu.md
./jre/legal/java.base/unicode.md
./jre/legal/java.base/c-libutl.md
./jre/legal/java.base/asm.md
./jre/legal/java.base/cldr.md
./jre/legal/java.base/ADDITIONAL_LICENSE_INFO
lines 1-32