목록터미널 (7)
준호씨의 블로그

MacOS 터미널에서 CentOS로 ssh로 접속하니 뭔가 경고가 뜹니다. $ ssh user@some.server.com -t zsh /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 예전에는 안 떴는데 왜 갑자기 나타나는 걸까요. 이 상태에서 vi 등의 편집기로 한글을 입력하면 다음과 같이 깨져버립니다. /etc/profile.d/lang.sh 19번째 줄에 뭐가 있는지 궁금해서 열어 봅니다. 1 # /etc/profile.d/lang.sh - set i18n stuff 2 3 sourced=0 4 5 if [ -n "$LANG" ]; th..

터미널에 kubernetes의 context, namespace 정보를 띄워주는 방법들을 정리합니다. context, namespace를 다양하게 사용할 때 실수를 방지하는데 도움을 줍니다. kube-ps1 https://github.com/jonmosco/kube-ps1 GitHub - jonmosco/kube-ps1: Kubernetes prompt info for bash and zsh Kubernetes prompt info for bash and zsh. Contribute to jonmosco/kube-ps1 development by creating an account on GitHub. github.com 2022.06.20 알게 되어 세팅해본 방식입니다. 기존 zsh-kubectl-pro..

터미널을 사용하다 보면 가끔 마우스 클릭이나 휠 스크롤 이벤트가 발생하면 이상한 문자가 주르륵 찍히는 경우가 있습니다. 왜 이런 현상이 발생하는지 이유는 모르겠지만 reset기능을 이용하면 해결됩니다. cmd+r 또는 터미널에서 직접 reset 명령어를 입력해 줘도 됩니다.

일반적으로 맥에서 압축을 할 때 마우스 우클릭 후 Compress 기능을 이용하는데요. 이 기능은 분할압축기능을 제공하지 않습니다. (언젠가는 생길지도 모르겠네요. 혹시 방법이 있다면 제보 부탁드립니다.) GUI 상에서는 분할압축을 할 수 없지만 커맨드라인 유틸리티인 zip 커맨드로 분할 압축을 할 수 있습니다. 터미널 실행 cmd + space 를 누르면 Spotlight Search 창이 뜨고 여기다가 terminal 을 입력하면 Terminal 이 나타납니다. 엔터키를 누르거나 마우스 클릭으로 Terminal 프로그램을 실행시킵니다. (Terminal 은 기본 터미널 프로그램이고 iTerm 같은 터미널 프로그램도 추천합니다.) 파일이 있는 경로로 이동 파일 경로가 있는 곳을 아시는 분은 "cd 디렉..

코딩 채널을 분리 했습니다. 채널명은 잉여코더. 첫화로는 2014년에 올렸던 내용 리메이크로 제작해 보았습니다. (2014년 글 https://junho85.pe.kr/93) hello.c 소스코드 예제 #include int main() { printf("hello june!\n"); printf("hello july!\n"); return 0; } 컴파일 커맨드는 $ gcc hello.c 실행파일이 a.out 으로 만들어 집니다. $ gcc hello.c -o hello 실행파일이 hello 로 만들어 집니다. $ make hello cc hello.c -o hello 가 실행 됩니다. cc 나 gcc 나 c compiler 입니다. OS 나 환경에 따라 같은거일수도 있고 조금 다를 수도 있으나 당장..