분류 전체보기
[Linux]리눅스에서 컴파일 후 디버깅 하기
리눅스에서 컴파일 후 디버깅 하는 방법을 다뤘습니다. https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/ https://u.osu.edu/cstutorials/2018/09/28/how-to-debug-c-program-using-gdb-in-6-simple-steps/ How to Debug C Program using gdb in 6 Simple Steps This Tutorial is taken from here In this article, let us discuss how to debug a c program using gdb debugger in 6 simple steps. Write a sample C program ..
[Docker]4. 도커 이미지[도커 기초 | Week 3]
목차 - 도커 이미지 - 도커 이미지 명령어 - 컨테이너에서 이미지로, 이미지를 컨테이너로 도커 이미지 https://hub.docker.com/search?q=&type=image Docker Hub hub.docker.com 도커 이미지를 가져오는 명령어 sudo docker image pull sudo docker impage pull ubuntu sudo docker image ls 로 image를 확인해보면 추가된 것을 확인할 수 있습니다. latest로 다시 받아서라도 image는 그대로입니다. sudo docker image pull ubuntu:18.04 같은 이름이라도 Image ID가 다릅니다. inspect라는 명령어로 해당 image 정보를 알 수 있습니다. sudo docker i..
[C] 핸드폰 번호 가리기, 배열과 포인터 [Algorithm]
코딩 테스트 연습 > 연습문제 > 핸드폰 번호 가리기 C언어에 대해서 아직 학습을 진행하지 않은 상태에서, 배열과 포인터에 대해 이해하고 여러 블로그 글을 참고하여 문제를 해결했습니다. 구현한 코드 #include #include #include void setElement(char *arr){ *arr = '*'; } // 파라미터로 주어지는 문자열은 const로 주어집니다. 변경하려면 문자열을 복사해서 사용하세요. char *solution(const char *phone_number) { // return 값은 malloc 등 동적 할당을 사용해주세요. 할당 길이는 상황에 맞게 변경해주세요. // char *answer = phone_number; //char* answer = (char*)mall..
[Docker]3. 도커 기본 명령어[도커 엔진 | 도커 기초 | Week 2]
목차 - 도커 컨테이너 실행 명령어 - 목록 조희 명령어 - 도커 기본 명령어 도커 컨테이너 실행 - docker run --interatcitve, -i 표준 입력창을 엽니다. --tty. -t 장치에 tty를 할당합니다. --name 컨테이너의 이름을 세팅합니다. *이 옵션을 사용하지 않을 경우 영어 단어를 임의로 조합하여 세팅됩니다. --detach, -d 백그라운드에서 컨테이너를 실행합니다. --publish, -p 호스트/컨테이너 포트 포워딩을 세팅합니다. 도커 컨테이너 목록 조희 - docker container ls 도커 컨테이너 이름 변경 - docker container rename 도커 컨테이너 프로세스 실행 - docker container exec 도커 컨테이너 로그 출력 - doc..