Most powerful examples of Unix commands or scripts every programmer should know

后端 未结 25 1467
遇见更好的自我
遇见更好的自我 2021-01-29 18:14

There are many things that all programmers should know, but I am particularly interested in the Unix/Linux commands that we should all know. For accomplishing tasks that we may

25条回答
  •  抹茶落季
    2021-01-29 18:53

    My personal favorite is the lsof command.

    "lsof" can be used to list opened file descriptors, sockets, and pipes. I find it extremely useful when trying to figure out which processes have used which ports/files on my machine.

    Example: List all internet connections without hostname resolution and without port to port name conversion.

    lsof -i -nP
    

    http://www.manpagez.com/man/8/lsof/

提交回复
热议问题