Skip to content

Instantly share code, notes, and snippets.

@namkyu
Last active May 2, 2018 07:40
Show Gist options
  • Save namkyu/7c67d6d0f6d8303ac976ce59d8f1623c to your computer and use it in GitHub Desktop.
Save namkyu/7c67d6d0f6d8303ac976ce59d8f1623c to your computer and use it in GitHub Desktop.
basic command #linux

버전 확인

cat /etc/*release

hostname 변경

# hostnamectl set-hostname docker

find

find /home/administrator/GPORTAL/jenkins -name server.*

grep

[grep 결과 라인 수 표시]
tail -f web.log | egrep -i 'Exception|fail|failure' (or 조건)

[특정 문자열 검색
grep 'http' . | wc -l

grep "&k=" wap_access_log.2009-04-20 | grep -v "r=&k=" | grep "GET /f/i.jsp?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment