Some useful Unix / Linux Commands
I will add more here in this reblogged
To verify all the size and detail of the system:
df -h
or
df -hT /home
or
Refer link for more detail: https://www.tecmint.com/how-to-check-disk-space-in-linux/
To verify all the running Java process:
ps -ef |grep java
Using root account : To Know the all process with their port usage:
sudo lsof -i -P -n | grep LISTEN
To list out all the files and directories under current folder:
ls -ltr
Find string / word / pattern into all files of current folder:
find . | xargs grep 57932
or
find . | xargs grep ‘57731c92-0e1a-4d87-864d-5ee7975f6ac2’
Split the file into many based on size:
split -l 1000000 /logs/crmadapter.log.2016-12-12
Change User/Account:
sudo su – svc_profilesimp_global
Change Directory:
cd /u01/app/svc_profilesimp_global/tomcat/