전체 글109 파일 내용 출력 관련 명령어 - 기본 WC파일 내용의 줄 수, 단어 수, 문자 수를 출력# 줄, 단어, 문자 수wc file.txt# 줄 수wc -l file.txt# 단어 수wc -w file.txt# 문자 수wc -c file.txt head파일의 첫 번째 줄을 출력원하는 줄 수를 지정 하려면 '-n' 옵션 이용head -n10 file.txt cut파일 내용 중 특정 열만 출력-f : 필드 지정 (1이 첫 번째 필드)-d : 구분자 지정 (기본 값 : 탭)-c : 문자 위치 지정cut -f2 file.txtcut -f2,4 file.txtcut -f2-4 file.txtcut -c1,3 file.txtcut -c1-3 file.txtcut -d"," -f2 file.txt grep주어진 문자열과 일치하는 부분만 찾아서 출력-v : 일치.. 2024. 7. 21. 오프라인 환경에서 Python 패키지 설치하기 온라인 환경에서 패키지 다운로드pip download 명령을 이용해서 아래와 같이 원하는 패키지를 다운로드 한다.(폐쇄망 환경에서 외부로 443 통신이 불가한 경우 --trusted-host 를 추가 하면 된다.)pip3 download -d ./package-requests/ requests --trusted-host pypi.org --trusted-host files.pythonhosted.org 오프라인 환경에서 패키지 설치커맨드 라인 환경pip3 install --no-index --find-links=./package-requests/ requests IDE 환경파이참 (PyCharm)# pip.ini (Windows)[global]trusted-host = pypi.org .. 2024. 7. 13. 오프라인 환경에서 PIP 설치하기 PIP 패키지 구하기https://pypi.org/위 사이트에 접속 하여 pip whl 파일 다운로드 (pip-24.1.2-py3-none-any.whl) 폐쇄망 서버에서 아래와 같이 설치python3 pip-24.1.2-py3-none-any.whl/pip --no-index pip-24.1.2-py3-none-any.whl 2024. 7. 13. 쿠버네티스 환경 구성하기 사전 준비Rocky Linux 9k8s-master (172.16.100.100)k8s-worker1 (172.16.100.101)k8s-worker2 (172.16.100.102)k8s-worker3 (172.16.100.103) containerd 설치방법 1Docker Repository 에서 containerd 를 설치 한다.# Docker Repository 설정dnf -y install dnf-plugins-corednf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo# containerd 설치dnf install -y containerd.io# containerd 설정 파일 생성cd /etc/con.. 2023. 2. 19. 이전 1 ··· 4 5 6 7 8 9 10 ··· 28 다음