Latest 100 public snipts »
muanis's
snipts » linux
showing 1-3 of 3 snipts for linux
-
∞ Find files with one name or another
find /usr/src -not \( -name "*,v" -o -name ".*,v" \) '{}' \; -print
-
∞ Extract Source from RPM
mkdir test cd test wget http://mysite.com/files/packages/appp-1.0.x86_64.rpm rpm2cpio appp-1.0.x86_64.rpm | cpio -idmv
-
∞ Finding the working dir of the process running on a specific port
# first grep netstat for the desired port netstat -anp | grep 8161 # after get the port number wich will be in the following format # tcp .... LISTEN 14826/java pwdx 14826 # there you will go, the output shows something like # 14826: /usr/local/httpd


