리눅스43 ln -Tfs /servers/test/applications/jdk1.7.0_79 jdk 심볼릭링크 변경 test@server-dev001:~/applications$ lltotal 28drwxr-xr-x 7 test test 4096 Aug 10 10:04 ./drwxr-xr-x 29 test test 4096 Dec 7 06:19 ../lrwxrwxrwx 1 test test 29 Aug 10 10:04 jdk -> /servers/test/applications/jdk1.8.0_131/drwxr-xr-x 8 test test 4096 Apr 10 2015 jdk1.7.0_79/drwxr-xr-x 8 test test 4096 Mar 15 2017 jdk1.8.0_131/drwxr-xr-x 8 test test 4096 Mar 21 2016 jdk1.8.0_77/lrwxrwxrwx 1 test test .. 2017. 12. 7. nc 로 파일 주고받기 nc 로 파일 주고받기 받는 서버: nc -l -p 9999 | tar zxvf -보내는 서버: tar cvzf - ./users_20151222.json | nc other-server001 9999 2016. 3. 23. watch -n 2 -d "netstat -na | grep :900" vagrant@master:/repos/ph-api$ watch -n 2 -d "netstat -na | grep :900" 2초마다주어진 명령어를 계속 실행하고-d : 변경된건 하이라이팅해서 보여준다. 2016. 2. 25. port로 PID 찾기 (linux : netstat or fuser 웹서버에 apache가 버전별로 여러개 설치되어 있는 서버가 있다.그중에 내가 확인하고 싶은 port는 2008 포트를 쓰는 httpd 데몬. 1) [lhr@erver eus]$ netstat -tunlp | grep 2008 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:2008 0.0.0.0:* LISTEN20980/httpd 20980이 PID를 가리킨다. [lhr@erver eus]$ ps afxu | grep 20980 lhr 21685 0.0 0.0 4016 696 pts/1 S+ 17:13 .. 2016. 2. 23. 이전 1 2 3 4 5 ··· 11 다음