본문 바로가기

it지식저장소

cr(carage return)/lf(line feed) unix 시스템과 windows 시스템의 개행문자는 다르다.unix에서는 텍스트파일에서 \n이 개행문자이고,windows에서는 텍스트파일에서 \r\n이 개행문자이다. Cariage Return이란?=>행의 첫번째로 이동하는것 (\r)Line Feed란?=>다음행으로 이동하는것 (\n) 개행이라는 것은 정확히 Cariage Return + Line Feed로 되어 두번의 액션으로 되는 것이 정상이다.유닉스는 터미널을 사용하고 터미널 제어코드로써 \n(Line feed)를 사용했다.제어모드에 따라 단지 lf만 할 것인가 cr까지 할 것인가를 결정할 수 있다.흔히 Vi 를 터미널에 띄우고 있는데 시스템 메시지로 뭔가가 2줄 이상 쓰여지면, LF만 동작하는 것은 터미널 모드가 vi로 진입하면서 바뀌기 때문이다... 더보기
git 튜토리얼사이트 설명도 친절하고 명령어를 치면 결과를 화면으로 바로 보여줘서 이해하기 진짜 쉽다!http://learnbranch.urigit.com/ 더보기
[github]깃허브에 현재프로젝트 추가시키기! 최근에 깃허브를 시작했는데 이전에 진행하던 프로젝트를 깃허브에 추가해봅시다.Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub.Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).Change the current working directory to your local project.Initialize the .. 더보기