본문 바로가기

프로그래밍

[Linux] - Ubuntu 파일 찾기 명령어 find [경로] [옵션] [파일명] find / -name '*.apk' 최상위 디렉토리, (root)에서 부터 검색을 해서 확장자가 apk로 끝나는 모든 파일 find / -name 'mysql*' mysql 이라는 단어로 시작하는 모든 파일 find / -name 'mysql' 이름이 'mysql'인 모든 파일 find -name '*.apk' 처럼 경로를 생략하고 명령어를 입력하면 해당 디렉토리에서부터 그 하위 디렉토리까지 검색 출처: https://eehoeskrap.tistory.com/305 [Enough is not enough:티스토리] 더보기
[Helm] - Grafana에 custom dashboard auto import 개요 helm 으로 grafana 를 배포하는데 있어서 custom dashboard가 배포과정에서 자동으로 import 되게끔 배포하고자 함. 해결 별도의 custom-values.yaml 파일에 dashboard에 관련된 parameter를 넣고 helm install $ vi grafana-custom-values.yaml # dashboard providers 및 dashboards parameter 추가 dashboardProviders: dashboardproviders.yaml: apiVersion: 1 providers: - name: 'default' orgId: 1 folder: '' type: file disableDeletion: false editable: true options:.. 더보기
[Linux] - terminal의 결과값이 안보이게 하기 개요 해당하는 값이 없으면 뭔가를 설치하는 스크립트를 만드는 중 값이 안보이게 하는 grep -q 와 같은 명령어가 필요했다. 해결 k9s info >/dev/null /dev/null 사용 Reference https://askubuntu.com/questions/98377/how-to-hide-terminal-output-when-executing-a-command 더보기
[Linux] - ubuntu 버전 확인 명령어 개요 현재 사용하는 우분투의 버전을 간단하게 확인하고자 한다. 해결 $ cat /etc/issue Ubuntu 18.04.5 LTS \n \l Reference https://steady-snail.tistory.com/50 더보기
[Linux] - ubuntu에서 패키지 설치 확인 방법 개요 설치 스크립트 작성 중 해당 패키지가 설치되어 있는지를 분기로 if 문을 나누려고 하기 위함. 해결 dpkg -l | grep package_name 설치되어 있는 패키지를 찾을수 있음. Reference https://sung-studynote.tistory.com/77 더보기
[Azure] - Resource Group delete 개요 unprovisioning을 잘못해서 기존 배포되어 있었던 그룹들을 삭제해야 함. cli로 하는 방법과 portal로 하는 방법을 테스트. 해결 1. in Portal 2. in CLI $ az group delete --name Are you sure you want to perform this operation? (y/n): y Reference https://docs.microsoft.com/ko-kr/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-cli 더보기
[Docker] - System has not been booted with systemd as init system (PID 1) 개요 docker를 설치하고 systemctl로 실행시키려 했으나 아래와 같은 에러가 남. $ sudo systemctl start docker System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down 해결 sudo /etc/init.d/docker start 실행 $ sudo /etc/init.d/docker start * Starting Docker: docker Reference https://github.com/MicrosoftDocs/WSL/issues/457 더보기
[Kubernetes] - docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~) 개요 kubenetes 설치를 진행하기 위해 docker를 설치하는데 아래와 같은 에러가 나왔다. $ sudo apt-get install docker.io Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of .. 더보기