Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

  • Advertisements

Archive for the ‘Únix / Linux’ Category

Some useful Unix / Linux Commands

Posted by Pankil Patel on February 28, 2018

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/

Pankil Patel's Blog

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/

View original post

Advertisements

Posted in Únix / Linux | Tagged: , , , , , , , , , , , , , , , , , , , , | Leave a Comment »