본문 바로가기

정리 전17

21.02.16 file 명령어, magic file stackoverflow.com/questions/7236191/how-to-create-a-custom-magic-file-database How to create a custom magic file database The unix file command uses a "magic" file database to determine which type of data a file contains, independently of the file's name or extension. I need to craft my custom magic database for test... stackoverflow.com You can man magic for a description f.. 2021. 2. 16.
21.02.10 vim 화면분할 :split, :vsplit blankspace-dev.tistory.com/373 [Linux] Vim 화면 분할, (상/하/좌/우 분할 방법 정리) vim을 사용할 때, 하나의 터미널에서 하나의 코드를 확인하게 되면 굉장히 불편한 점이 있다. 예를 들면 A.cpp 를 수정하다가 B.cpp에 구현 부분을 참고하려고 하는 데.. 이런 식으로 여러 cpp 파일을 blankspace-dev.tistory.com C++ does not allow indirection on operand of type void* 2021. 2. 11.
21.02.09 errno -> m.blog.naver.com/PostView.nhn?blogId=neakoo35&logNo=30125432098&proxyReferer=http:%2F%2F211.194.51.230%2F errno 변수로 오류처리 하기 프로그래밍을 하는데 있어서 오류 처리는 아주 중요하다. 특수 변수인 errno를 이용하여 오류 처리를 효율... blog.naver.com open함수 실패하면 -1리턴하고 errno를 생성한다. blog.naver.com/PostView.nhn?blogId=gumpofmay&logNo=80212136486&categoryNo=23&parentCategoryNo=0&viewDate=&currentPage=1&postListTopCurrentPage=1&from=searc.. 2021. 2. 10.
21.02.08 파일 입출력 open, read, write, close junmung.tistory.com/8 [05] File처리 open, read, write File open, read, write, close open 함수 - 파일을 연다. int open(const char* pathname, int flags[, mode_t mode]); 매개변수 pahtname : 파일명, mode : 접근권한 반환값 - 성공 : 양의 정수 - 실패 : -1 헤.. junmung.tistory.com open은 fd값 반환, read는 읽어드린 바이트 수 반환, wirte도 성공시 bufsize반환 open으로 fd값 확인하고, read로 해당 파일 안에 실제 쓰여져 있는 바이트 수 확인하면서 buffer에 넣고 wri.. 2021. 2. 8.
21.02.07 리눅스 여러 명렁어 한 번에 -> ; 세미콜론 mkdir dir ; cd dir 폴더 만들고 그 경로로 바로 이동 vim 검색 / set hlsearch 해주고 /누르고 원하는 검색어 입력하면 하이라이트 됨. 다시 끄고 싶음 /asfaoewifj 이렇게 창에 없는 아무 단어 입력해주고 엔터 해주는 게 편함. vim 함수 원형 보기 [i 개쩐다... 헷갈릴 필요가 없게 됐다.. 그냥 i가 아니라 대괄호 i임 시간날 때마다 들려서 외우자 m.blog.naver.com/PostView.nhn?blogId=jayeonsaram&logNo=220648947768&proxyReferer=https:%2F%2Fwww.google.com%2F [Linux] vim 유용한 명령 vim 사용 시, 개인적으로 활용하는 명령.. 2021. 2. 8.
21.02.06 Makefile bowbowbow.tistory.com/12 make와 Makefile make 와 Makefile make 와 Makefile make 와 Makefile make & Makefile 이란? make를 쓰는 이유 예제 기본적인 컴파일 과정 make를 이용한 컴파일 과정 Makefile 의 구성 Makefile의 기본구조 Makefile 작성규칙.. bowbowbow.tistory.com make 명령어로 컴파일 했을 때 나오는 파일로, 컴파일 방법 중 하나인 것 같다. -->아하 이게 아니었다. make명령어를 실행하려면 Makefile을 만들어줘야함. 안에서 어떤 컴파일러로 컴파일 할 건지도 다 적어줘야 함. ㅇㅎ.. 그니까 기존에 gcc로 컴파일을 진행한다면, 파일을 분할하여 만들었.. 2021. 2. 7.