简体   繁体   中英

How can i get pid without sudo in linux

Using termux I cannot use the root user commands.

  • I using top for see pid .

Next step i kill process.

kill pid

How can i get pid for only for app.js?

You can find the port and PID with the netstat command.

netstat -lntp | grep node

ps allows you to find the full command of the process:

ps aux | grep node

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM