find
SAP NW Java: Delete old dumps and trace files with command find
We recomend regulary check directory /usr/sap/<SID>/<INSTANCE>/j2ee/cluster/server<N>/, where can be hold old dumps and trace files. For examle, in Note 1289240 – How to deal with out of memory errors we can read The heap dump is generated in directory /usr/sap/<SID>/<INSTANCE>/j2ee/cluster/server<N>/ where N is the server node number. Automatically created heap dump on out of memory event is in OOM.hprof and OOM.addons files. User generated heap dump is in files named as java_pid<PID>.hprof and java_pid<PID>.addons, where PID is the process ID (9848 for example). Also we can find *.trc files. We recomend delete unnecessary files In case Unix We use command find cd /usr/sap/<SID>/<INSTANCE>/j2ee/cluster/server<N>/ find … Continue Reading
unix найти файл с текстом
Есть куча вариантов команд UNIX, которые позволяют найти файл, содержащий искомый текст, однако, мне, как немного знакомому с синтаксисом команды find приглянулся этот вариант find <dir> -name “<fname>” -exec grep “<text>” {} \; -print пример: find . -name “*.*” -exec grep “my text” {} \; -print либо find / -name “*” | xargs grep “your text”