Monday, May 19, 2025

Linux commands at work on day to day basis usage

 

#To kill process by port:

npx kill-port 3000

Or

kill -9 $(sudo lsof -t -i:8080)


#To run ssh file

sh ./filename.sh


 

#To kill the pid by port

lsof -i :3000

kill -9 pid

No comments:

Post a Comment

Featured post

Linux commands at work on day to day basis usage

  #To kill process by port: npx kill-port 3000 Or kill -9 $(sudo lsof -t -i:8080) #To run ssh file sh ./filename.sh   #To kill the pid by po...