봇트레이드 깃·터미널 밑천 기술

봇트레이드 출판

봇트레이드 깃·터미널 밑천 기술

셸과 버전 관리의 바뀌지 않는 이치를 한 권에 담은 개념 교육서입니다.

봇트레이드 깃·터미널 밑천 기술 · 484쪽

Google Play

맛보기 — 눌러서 들어 보세요A taste — tap to hear it

맛보기는 앞 두 장입니다. 모든 장은 책에 있습니다.

  1. 셸syel

    shell셸

    사람이 친 한 줄을 읽어 프로그램을 띄워 주는 프로그램The program that reads a line you type and starts programs for you

    셸이 그 줄을 읽어 프로그램을 띄운다.The shell reads that line and starts the program.

  2. 터미널teomineol

    terminal터머늘

    셸과 글자를 주고받는 창The window that passes text to and from the shell

    터미널을 열고 한 줄을 쳤다.A terminal was opened and one line typed.

  3. 명령줄myeongnyeongjul

    command line커맨드 을라인

    명령을 한 줄씩 적어 시키는 방식The way of giving orders by writing one line at a time

    같은 일을 명령줄에서는 한 줄로 끝낸다.On the command line the same work ends in one line.

  4. 명령myeongnyeong

    command커맨드

    무엇을 하라고 적은 한 줄, 또는 그 첫 낱말One line saying what to do, or the first word of it

    이 명령은 목록을 보여 준다.This command shows a listing.

  5. 하위 명령hawi myeongnyeong

    subcommand서브커맨드

    한 명령 뒤에 붙어 그 안에서 할 일을 가리는 낱말A word after a command that picks what to do within it

    하위 명령 하나가 기록을 보여 준다.One subcommand shows the record.

  6. 인자inja

    argument아규먼트

    명령에 넘겨 주는 값 — 대개 다룰 파일이나 이름A value handed to a command, usually a file or a name to work on

    인자로 파일 이름을 하나 넘겼다.One file name was handed over as the argument.

  7. 옵션opsyeon

    option압션

    명령의 동작을 바꾸는 꼬리표 — 대개 붙임표로 시작한다A tag that changes how a command behaves, usually starting with a dash

    옵션을 붙여 자세한 꼴로 보았다.An option was added to see the longer form.

  8. 플래그 (켜고 끄는 옵션)peullaegeu

    flag픨래그

    값 없이 있고 없음만으로 뜻이 서는 옵션An option that means something simply by being there, with no value

    플래그는 값이 없고 붙이기만 한다.A flag takes no value; it is only added.

  9. 프롬프트peurompeuteu

    prompt프람프트

    셸이 다음 줄을 기다린다고 보이는 표시The mark the shell shows to say it is waiting for the next line

    프롬프트가 보이면 셸이 기다리는 것이다.When the prompt shows, the shell is waiting.

  10. 설명서 쪽seolmyeongseo jjok

    man page맨 페이지

    명령마다 딸린 공식 설명 — 옵션과 종료 값까지 적혀 있다The official write-up that comes with a command, down to its options and exit values

    설명서 쪽에 옵션이 다 적혀 있다.The manual page spells out every option.

  11. 도움말doummal

    help헬프

    그 명령이 스스로 내놓는 짧은 쓰임 안내The short note on its own use that a command prints for itself

    도움말부터 읽고 옵션을 골랐다.The help was read first, then the option chosen.

  12. 버전 관리beojeon gwalli

    version control붜전 컨트로울

    무엇을 언제 왜 바꿨는지를 기록으로 쌓아 두는 일Keeping a record of what changed, when, and why

    버전 관리가 있으면 되돌아갈 자리가 있다.With version control there is a place to go back to.

  13. 저장소jeojangso

    repository리파저토리

    일하는 파일과 그 기록 전체를 담은 한 벌One set holding the files worked on and their whole record

    저장소 하나에 파일과 기록이 함께 있다.One repository holds the files and the record together.

  14. 히스토리 (기록)hiseutori

    history히스터리

    쌓인 기록을 시간 순으로 늘어놓은 것The record that has piled up, laid out in time order

    히스토리를 거꾸로 훑어 그 줄이 언제 들어왔는지 찾았다.The history was walked backwards to find when that line came in.

  15. 커밋keomit

    commit커밋

    그때의 모습을 기록 한 칸으로 못 박아 두는 일, 또는 그 한 칸Nailing down how things looked as one entry in the record, or that entry

    고친 것을 커밋 하나로 남겼다.What was fixed was left as one commit.

  16. 스냅숏 (그때의 모습)seunaepsyot

    snapshot스냅샷

    어느 순간 파일들이 어떠했는지를 통째로 적어 둔 것The whole of how the files stood at one moment, written down

    커밋은 그때의 스냅숏을 가리킨다.A commit points at the snapshot of that moment.

  17. 프로젝트peurojekteu

    project프라젝트

    함께 다루는 파일 묶음과 그 일A bundle of files worked on together, and that work

    프로젝트 하나가 저장소 하나다.One project is one repository.

  18. 탭 채우기taep chaeugi

    tab completion태브 컴플리션

    앞 글자만 치고 탭을 눌러 이름을 셸이 채우게 하는 일Typing the first letters and pressing tab to let the shell finish the name

    탭 채우기로 긴 이름을 다 치지 않았다.With tab completion the long name was not typed out.

  19. 명령 기록myeongnyeong girok

    command history커맨드 히스터리

    앞서 친 줄을 셸이 쌓아 두어 다시 불러 쓰게 한 것The lines typed before, kept by the shell so they can be called back

    명령 기록에서 어제 친 줄을 다시 불렀다.A line typed yesterday was called back from the command history.

  20. 일반 글 (plain text)ilban geul

    plain text플레인 텍스트

    꾸밈 없이 글자만 있는 자료 — 어느 도구로도 읽고 고칠 수 있다Data that is nothing but characters, readable and editable by any tool

    설정을 일반 글로 두면 기록에 그 바뀜이 그대로 보인다.Settings kept as plain text show their change in the record as it is.

  21. 파일pail

    file퐈일

    이름이 붙은 자료 한 덩이One lump of data with a name on it

    파일 하나를 열어 읽었다.One file was opened and read.

  22. 디렉터리direkteori

    directory더렉터리

    파일과 다른 디렉터리를 담는 자리 — 폴더와 같은 말이다A place holding files and other directories; the same thing as a folder

    디렉터리 안에 디렉터리가 또 있다.Inside a directory there is another directory.

  23. 파일 시스템pail siseutem

    file system퐈일 시스텀

    디스크의 파일과 디렉터리를 이름과 자리로 정리하는 방식The way a disk's files and directories are kept in names and places

    파일 시스템이 이름과 자리를 지킨다.The file system keeps the names and the places.

  24. 경로gyeongno

    path패스

    어느 파일이나 디렉터리까지 가는 길을 적은 글Text spelling out the way to a file or a directory

    경로를 보고 어디 있는지 알았다.Where it was became clear from the path.

  25. 경로 구분 기호gyeongno gubun giho

    path separator패스 세퍼레이터

    경로에서 한 칸과 다음 칸을 가르는 글자The character that parts one step of a path from the next

    경로 구분 기호가 칸을 가른다.The path separator parts the steps.

  26. 경로 이름gyeongno ireum

    path name패스 네임

    경로를 글로 적은 꼴 그 자체The written form of a path itself

    경로 이름이 길어 줄이 넘어갔다.The path name was long and the line ran over.

  27. 뿌리 디렉터리ppuri direkteori

    root directory룻 더렉터리

    파일 나무의 맨 위 — 모든 절대 경로가 여기서 시작한다The very top of the file tree, where every absolute path begins

    뿌리 디렉터리에서 두 칸 내려간 자리다.It is two steps down from the root directory.

  28. 현재 디렉터리hyeonjae direkteori

    current directory커런트 더렉터리

    셸이 지금 서 있는 자리 — 상대 경로의 기준이다Where the shell is standing now, the ground for relative paths

    현재 디렉터리가 어디인지 먼저 보았다.Which the current directory was came first.

  29. 부모 디렉터리bumo direkteori

    parent directory페런트 더렉터리

    지금 자리를 담고 있는 한 칸 위 디렉터리The directory one step up, the one holding where you are

    부모 디렉터리로 한 칸 올라갔다.One step was taken up to the parent directory.

  30. 홈 디렉터리hom direkteori

    home directory홈 더렉터리

    그 사용자에게 주어진 자기 자리The place of one's own that a user is given

    홈 디렉터리에서 시작한다.It starts from the home directory.

  31. 절대 경로jeoldae gyeongno

    absolute path애브설룻 패스

    뿌리부터 적어 어디서 읽어도 같은 자리를 가리키는 경로A path written from the root, pointing at the same place wherever it is read

    절대 경로는 어디서 읽어도 같은 곳이다.An absolute path is the same place wherever it is read.

  32. 상대 경로sangdae gyeongno

    relative path렐러티븨 패스

    지금 있는 디렉터리를 기준으로 적은 경로A path written from the directory you are in now

    상대 경로는 선 자리가 바뀌면 다른 곳이 된다.A relative path becomes another place when where you stand changes.

  33. 물결표mulgyeolpyo

    ~물결표

    홈 디렉터리를 가리키는 줄임 글자The short mark standing for the home directory

    물결표 하나가 홈 디렉터리를 뜻한다.One tilde means the home directory.

  34. 점jeom

    ..

    현재 디렉터리를 가리키는 한 글자The single character standing for the current directory

    점은 지금 이 자리다.The dot is this very place.

  35. 점 두 개jeom du gae

    ....

    부모 디렉터리를 가리키는 두 글자The two characters standing for the parent directory

    점 두 개로 한 칸 올라간다.Two dots go one step up.

  36. 파일 이름pail ireum

    file name퐈일 네임

    경로의 마지막 칸 — 그 파일 자체의 이름The last step of a path: the file's own name

    파일 이름에 빈칸이 들어 있었다.There was a space inside the file name.

  37. 확장자hwakjangja

    extension익스텐션

    파일 이름 끝에 점으로 붙여 종류를 짐작하게 하는 글자Letters put after a dot at the end of a name to hint at the kind

    확장자가 종류를 짐작하게 해 줄 뿐이다.An extension only lets the kind be guessed.

  38. 숨김 파일sumgim pail

    hidden file히든 퐈일

    이름이 점으로 시작해 목록에 기본으로 안 보이는 파일A file whose name starts with a dot, so a listing leaves it out by default

    숨김 파일은 따로 옵션을 줘야 보인다.A hidden file shows only when an option is given.

  39. 현재 위치 보기hyeonjae wichi bogi

    pwd피더블유디

    지금 선 자리의 절대 경로를 받아 보는 일Getting back the absolute path of where you stand

    현재 위치를 보고 어디서 돌고 있는지 확인했다.Where it was running became clear from the working directory.

  40. 자리 옮기기jari omgigi

    cd씨디

    셸이 선 자리를 다른 디렉터리로 바꾸는 일Moving the place the shell stands to another directory

    자리를 옮긴 뒤 같은 상대 경로가 다른 파일을 가리켰다.After moving, the same relative path pointed at another file.

  1. Q셸과 터미널은 같은 거야?syelgwa teomineoreun gateun geoya?Are the shell and the terminal the same thing?아 둬 셸 앤드 둬 터머늘 둬 세임 씽

    A다르다. 터미널은 글자를 주고받는 창이고, 셸은 그 글자를 읽어 프로그램을 띄우는 프로그램이다.dareuda. teomineoreun geuljareul jugobanneun changigo, syereun geu geuljareul ilgeo peurogeuraemeul ttuiuneun peurogeuraemida.No. The terminal is the window that passes text; the shell is the program that reads the text and starts programs.노우. 둬 터머늘 이즈 둬 윈도 됏 패시즈 텍스트 둬 셸 이즈 둬 프로우그램 됏 리드즈 둬 텍스트 앤드 스타츠 프로우그램즈.

  2. Q한 줄에서 명령과 인자는 어떻게 갈려?han jureseo myeongnyeonggwa injaneun eotteoke gallyeo?How are the command and the arguments parted in a line?하우 아 둬 커맨드 앤드 둬 아규먼츠 파티드 인 어 을라인

    A빈칸에서 갈린다. 첫 낱말이 명령이고 나머지가 옵션과 인자다 — 그래서 이름에 빈칸이 들면 두 조각으로 보인다.binkaneseo gallinda. cheot nanmari myeongnyeongigo nameojiga opsyeongwa injada — geuraeseo ireume binkani deulmyeon du jogageuro boinda.They part at the spaces: the first word is the command and the rest are options and arguments, which is why a name with a space in it looks like two pieces.뒈이 파트 앳 둬 스페이시즈 둬 풔스트 워드 이즈 둬 커맨드 앤드 둬 레스트 아 압션즈 앤드 아규먼츠 위치 이즈 와이 어 네임 위듸 어 스페이스 인 잇 을룩스 을라이크 투 피시즈.

  3. Q옵션과 인자는 무엇이 달라?opsyeongwa injaneun mueosi dalla?How do an option and an argument differ?하우 두 앤 압션 앤드 앤 아규먼트 디풔

    A인자는 다룰 대상이고 옵션은 다루는 방식을 바꾸는 꼬리표다. 옵션은 대개 붙임표로 시작한다.injaneun darul daesangigo opsyeoneun daruneun bangsigeul bakkuneun kkoripyoda. opsyeoneun daegae buchimpyoro sijakanda.An argument is what is worked on; an option is a tag changing how it is worked on, and it usually starts with a dash.앤 아규먼트 이즈 왓 이즈 워크트 안 앤 압션 이즈 어 태그 체인징 하우 잇 이즈 워크트 안 앤드 잇 유저월리 스타츠 위듸 어 대시.

  4. Q왜 글자로 시키는 방식이 아직 남아 있어?wae geuljaro sikineun bangsigi ajik nama isseo?Why is giving orders in text still with us?와이 이즈 기뷩 오더즈 인 텍스트 스틸 위듸 어스

    A글은 그대로 적어 둘 수 있기 때문이다. 적어 두면 다시 돌릴 수 있고, 남에게 보낼 수 있고, 무엇이 바뀌었는지 견줄 수 있다.geureun geudaero jeogeo dul su itgi ttaemunida. jeogeo dumyeon dasi dollil su itgo, namege bonael su itgo, mueosi bakkwieonneunji gyeonjul su itda.Because text can be written down as it is: written down, it can be run again, sent to another, and weighed for what changed.비코즈 텍스트 캔 비 리튼 다운 애즈 잇 이즈 리튼 다운 잇 캔 비 런 어겐 센트 투 어너둬 앤드 웨이드 푀 왓 체인지드.

  5. Q버전 관리는 무엇을 푸는 거야?beojeon gwallineun mueoseul puneun geoya?What does version control unknot?왓 더즈 붜전 컨트로울 언낫

    A「언제부터 이랬지」와 「왜 이렇게 했지」를 푼다. 되돌아갈 자리와 까닭을 함께 남겨 둔다.「eonjebuteo iraetji」wa 「wae ireoke haetji」reul punda. doedoragal jariwa kkadalgeul hamkke namgyeo dunda.It unknots 「since when was it so」 and 「why was it done so」: it leaves both a place to go back to and the reason.잇 언낫츠 신스 웬 워즈 잇 소우 앤드 와이 워즈 잇 던 소우 잇 을리븨즈 보우쓰 어 플레이스 투 고우 백 투 앤드 둬 리즌.

  6. Q파일 이름에 날짜를 붙여 두는 것과 무엇이 달라?pail ireume naljjareul butyeo duneun geotgwa mueosi dalla?How does it differ from putting dates in file names?하우 더즈 잇 디풔 픠럼 퍼팅 데잇츠 인 퐈일 네임즈

    A날짜 이름은 무엇이 바뀌었는지도 왜 바뀌었는지도 적어 두지 않는다. 기록은 그 둘을 함께 남긴다.naljja ireumeun mueosi bakkwieonneunjido wae bakkwieonneunjido jeogeo duji anneunda. girogeun geu dureul hamkke namginda.A dated name writes down neither what changed nor why. A record leaves both.어 데이티드 네임 라잇츠 다운 니둬 왓 체인지드 노 와이. 어 러코드 을리븨즈 보우쓰.

  7. Q설명서 쪽을 꼭 봐야 해?seolmyeongseo jjogeul kkok bwaya hae?Do I really have to read the manual page?두 아이 릴리 해븨 투 리드 둬 매뉴얼 페이지

    A그 명령이 받는 옵션과 남기는 종료 값이 거기 적혀 있다. 기억하려 읽는 것이 아니라 확인하려 읽는 것이다.geu myeongnyeongi banneun opsyeongwa namgineun jongnyo gapsi geogi jeokyeo itda. gieokaryeo ingneun geosi anira hwaginharyeo ingneun geosida.What options it takes and what exit value it leaves are written there. It is read to check, not to remember.왓 압션즈 잇 테이크스 앤드 왓 엑시트 봴류 잇 을리븨즈 아 리튼 뒈어. 잇 이즈 리드 투 첵 낫 투 리멤버.

  8. QAI 가 준 명령을 그대로 쳐도 될까?AI ga jun myeongnyeongeul geudaero chyeodo doelkka?May I just type the command an AI gave me?메이 아이 저스트 타이프 둬 커맨드 앤 에이아이 게이븨 미

    A먼저 무엇을 지우거나 덮어쓰는 줄인지 본다. 되돌릴 수 없는 줄만 가려 내면 나머지는 돌려 보면서 배우면 된다.meonjeo mueoseul jiugeona deopeosseuneun jurinji bonda. doedollil su eomneun julman garyeo naemyeon nameojineun dollyeo bomyeonseo baeumyeon doenda.First see whether the line deletes or overwrites anything. Pick out only the lines that cannot be undone, and the rest can be learnt by running them.풔스트 시 웨둬 둬 을라인 딜릿츠 오 오우붜라잇츠 에니씽. 픽 아웃 온리 둬 을라인즈 됏 캐낫 비 언던 앤드 둬 레스트 캔 비 을런트 바이 러닝 뒘.

  9. QAI 가 긴 한 줄을 줬어. 무엇부터 봐?AI ga gin han jureul jwosseo. mueotbuteo bwa?An AI gave me one long line. What do I look at first?앤 에이아이 게이븨 미 원 을롱 을라인. 왓 두 아이 을룩 앳 풔스트

    A파이프로 갈라 조각마다 무엇을 하는지 본다. 각 조각이 무엇을 받아 무엇을 내놓는지만 알면 줄 전체가 읽힌다.paipeuro galla jogangmada mueoseul haneunji bonda. gak jogagi mueoseul bada mueoseul naenonneunjiman almyeon jul jeonchega ilkinda.Part it at the pipes and see what each piece does. Knowing what each takes and gives is enough to read the whole line.파트 잇 앳 둬 파이프스 앤드 시 왓 이치 피스 더즈. 노우잉 왓 이치 테이크스 앤드 기븨즈 이즈 이너픠 투 리드 둬 호울 을라인.

  10. Q탭 채우기를 왜 쓰라고 해?taep chaeugireul wae sseurago hae?Why am I told to use tab completion?와이 앰 아이 토울드 투 유스 태브 컴플리션

    A길어서가 아니라 틀리지 않으려고 쓴다. 채워지지 않으면 그 이름이 거기 없다는 뜻이다.gireoseoga anira teulliji aneuryeogo sseunda. chaewojiji aneumyeon geu ireumi geogi eopdaneun tteusida.Not because the name is long but so as not to get it wrong: if it does not fill in, that name is not there.낫 비코즈 둬 네임 이즈 을롱 벗 소우 애즈 낫 투 겟 잇 롱 이픠 잇 더즈 낫 퓔 인 됏 네임 이즈 낫 뒈어.

  11. Q기록은 언제부터 남기는 게 좋아?girogeun eonjebuteo namgineun ge joa?When is it good to start keeping a record?웬 이즈 잇 굿 투 스타트 키핑 어 러코드

    A파일이 하나일 때부터다. 늦게 시작하면 그전 이야기는 영영 남지 않는다.pairi hanail ttaebuteoda. neutge sijakamyeon geujeon iyagineun yeongyeong namji anneunda.From when there is one file. Started late, the story before it is never kept.픠럼 웬 뒈어 이즈 원 퐈일. 스타티드 을레잇 둬 스토리 비푀 잇 이즈 네붜 켑트.

  12. Q스냅숏이라는 말이 왜 나와?seunaepsyosiraneun mari wae nawa?Why does the word snapshot come up?와이 더즈 둬 워드 스냅샷 컴 업

    A기록 한 칸이 「무엇을 고쳤나」가 아니라 「그때 전체가 어떠했나」를 가리키기 때문이다.girok han kani 「mueoseul gochyeonna」ga anira 「geuttae jeonchega eotteohaenna」reul garikigi ttaemunida.Because one entry of the record points not at 「what was changed」 but at 「how the whole stood then」.비코즈 원 엔트리 어븨 둬 러코드 포인츠 낫 앳 왓 워즈 체인지드 벗 앳 하우 둬 호울 스투드 뒌

차례 — 18장Contents — 18 chapters

  1. 0처음 — 글자로 시키고 기록으로 남긴다Telling it in text, keeping it in record
  2. 1경로 — 파일 나무에서 자리 찾기Paths — finding your place in the file tree
  3. 2파일과 디렉터리 다루기Handling files and directories
  4. 3표준 입출력과 리다이렉션Standard streams and redirection
  5. 4파이프 — 작은 도구를 잇기Pipes — joining small tools
  6. 5글 다루기 도구Tools for working with text
  7. 6따옴표와 이스케이프 — 셸이 먼저 읽는다Quoting and escaping — the shell reads it first
  8. 7권한과 소유자Permissions and owners
  9. 8프로세스와 신호Processes and signals
  10. 9환경 변수와 PATHEnvironment variables and PATH
  11. 10종료 코드와 셸 스크립트 기초Exit codes and the basics of shell scripts
  12. 11버전 관리 — 세 자리Version control — the three places
  13. 12커밋 — 스냅숏·부모·해시Commits — snapshot, parent, hash
  14. 13브랜치와 HEADBranches and HEAD
  15. 14병합과 충돌 풀기Merging and settling conflicts
  16. 15되돌리기 네 가지와 리베이스Four ways back, and rebase
  17. 16원격·태그·무시Remotes, tags and ignoring
  18. 17남이 만든 변경 읽기와 좋은 커밋 메시지Reading someone else's change, and good commit messages
봇트레이드가 낸 책 모두 보기Every book from BotTrade→