Computer Science/OpenSource+Git

    shell command 확장과 명령어 치환

    #Expansions and Substitutions - 리눅스에서 command를 실행하기 전, bash는 command line에 문법적 요소가 있는지 확인한다. - bash는 special element(keyword, metacharacter)등을 스캔하고 번역하여 새로운 command line에 결과를 낸다. - 이는 new text로 expanded(확장), substituted(치환)되었다고 한다. - Bash는 다음과 같은 순서로 확장과 치환을 실행한다. 1) Brace Expansion 2) Tilde Expansion 3) Parameter Expansion 4) Arithmetic expansion 5) Command Substitution 6) Filename Expansion (G..

    Shell Environment

    #Shell이란? : A special-purpose utility to interpret command line : Shell은 special-proposed utitlity로, 응용프로그램(utility)과 커널 사이에 위치해있으며 응용프로그램의 명령어와 커널이 대화를 하도록 만들어준다. 그래서 명령어 해석기라고 부른다. -> 우리가 명령어를 입력하게 되면 컴퓨터에서는 쉘이 명령어를 받아 해석하여 커널에게 보내면, 커널은 우리가 내려주었던 동작을 하게되고, 그에 대한 결과를 사용자에게 전달하려고 다시 쉘에게 응답을 보내 사용자에게 전달된다. EX) Bourne Shell-> C shell-> Korn Shell ->Bourne Again Shell(Bash) : 세대를 거치면서 기능이 추가되었다. -..

    Git Branch Command

    # Git에서 Branch가 왜 필요한가? : branch를 이용함으로서 development process의 다양한 기능을 따로 개발할 수가 있다. 이를 통해 main branch는 문제가 생긴 코드에서 자유로워진다. 기능은 각 branch에서 따로 개발하고 나중에 merge하게 된다. #Master Branch -> 만약 git에서 version control을 시작하면, default branch는 'master' branch이다. : master branch는 가장 최신의 commit을 가리킨다. 즉, branch는 commit을 향한 포인터라고 볼 수 있다. - master branch에 main code를 유지하면서, 우리는 main code를 수정하거나 새로운 feature를 개발할 수 있다..