Friday, March 17, 2023

Useful commands in Unix

 What are the useful commands in Unix ?


1.df -g

2.df -k

3. df -m

4.top

5.topas

6.ps -ef|grep java

7.ps -ef|grep httpd

8.ps -ef|grep admin

9.lsof -i:<port>

10.netstat -anop|grep <port>

11.grep -i -r <keyword> <Directory>

12.nslookup

13.ping

14.cat <file name> | more

15.more <File name>

16.tail -100f <file name>

17.tail -f <file name> 

18.curl -v <Destination>:<port>

19.ipconfig -a

20.ifconfig -a

21.locate

22.find . -name <keyword>

23.find / -name <keyword>

24.uname -a

25.netstat -anop|grep <process-id>


No comments: