목록Linux (33)
준호씨의 블로그
pkill -f my_pattern ps -ef | grep myProcessName | grep -v grep | awk '{print $2}' | xargs kill -9 참고 https://stackoverflow.com/questions/8987037/how-to-kill-all-processes-with-a-given-partial-name
You can see stderr "No such file or directory" when you 'cat' none exists file $ cat nonexistent_file cat: nonexistent_file: No such file or directory If you want to hide stderr, attach 2>/dev/null after command cat nonexistent_file 2>/dev/null Tip 'grep' command has '-s' option to hide error message about nonexistent or unreadable files. -s, --no-messages Suppress error messages about nonexiste..
june101 june102 june103 ... june200 :for i in range(101,200) | put = 'june'.i | endfor 관련글 ssh known_hosts 등록. 처음 접속하는 호스트 yes/no 이슈 해결 http://junho85.pe.kr/667 참고 http://vim.wikia.com/wiki/Making_a_list_of_numbers
top 에서 RSS (Resident set size) 를 보면 된다. ps 커맨드에서 --sort -rss 로 rss 순으로 볼 수 있다. 참고 리눅스 메모리 사용량순 프로세스 보기
simple rsync rsync src_files junho85@junho85.pe.kr:/somewhere/ use ssh instead of rsh rsync -e ssh src_files junho85@junho85.pe.kr:/somewhere/ change ssh port rsync -e 'ssh -p src_files junho85@junho85.pe.kr:/somewhere/ references https://explainshell.com/explain?cmd=rsync+-p+--chmod%3D%2Brwx+-e+%22ssh+-i+userserver.pem%22+--copy-unsafe-links+-rz+user%40server%3A~%2F+%2Fdb_backups%2Fwww%2F h..