-lkhrtcat > file1 create new file, write content via command line, then close it out with ctrl+D source ~/.zshrc - different shells (this is mac OS) PATH - whenever you run and executable (any command), the system will look up every directory inside this path until it finds the executable) pull vs pull request pwd : print working directory (현재 작업 중 폴더 위치 출력)cd : change directory. : current(root) directory, .. : parent directory cd .. : go to parent foldercd ../../ : go to parent's parent folder cd ./hi : go to hi folder, which is inside current foldercd : home directory (user) cd ~ : user directorycd / : root directory - DO NOT USE mkdir : make new directory touch :make fileopen . : open current directory in GUI -h, --help : lists command help cp --helpls : list folders inside current directory ls -l : list detailed view of folders ls -a : all, shows hidden files/folders starting with '.'ls -al : combination of -a & -lls -la : same !ls -lkh : by size (KB), list human-readable (h)-rt : reverse time (sort by reverse modification time) -lkhrt : list all by KB (human readable), sorted by time (reverse)- : options. can appear later, the order doesn't matter rm: removes filesrm -rf: removes folders -rf : recursive force (r: for deleting folders, f: without questioning)mv : move directory of folder mv bye.text byemv oldName newNamemv text.txt ../../cp : copy & paste cp [원본 파일 이름] [복사할 파일 이름] cp helloWorld.txt hiComputer.txtcp -rf dir1 dir2
whoami: username sudo: temporarily use admin rights (root)sudo d로 시작: directory (폴더), - 로 시작: 파일 r: reading rights, w: writing rights, x: execution rights -drwxr-xr-x : sung has all rwx rights, staff has r & x, others have r& x cat : concatenatecat [options] [filenames] [-] [filenames]cat file1 file2 file3 : show content of all these files cat file(s) > file2 : combines files into (new) filecat file1 >> file2 : appends file1 to the bottom of file2cat > newfile : creates new file, then you can type in the content, close it by ctrl+Dcat file | more : displays content of the file one screen at a time cat - file5 > file6 : creates new file6 with text typed in from the keyboard followed by file5 content cat file7 - > file8 : creates new file8 with file7 content followed ty text typed in from the keyboard-b: 줄번호를 화면 왼쪽에 나타낸다. 비어있는 행은 제외한다.-e: 제어 문자를 ^ 형태로 출력하면서 각 행의 끝에 $를 추가한다. -n: 줄번호를 화면 왼쪽에 나타낸다. 비어있는 행도 포함한다. -s: 연속되는 2개이상의 빈 행을 한행으로 출력한다 -v: tab과 행 바꿈 문자를 제외한 제어 문자를 ^ 형태로 출력한다 -E: 행마다 끝에 $ 문자를 출력한다 -T: 탭(tab) 문자를 출력한다.-A: -vET 옵션을 사용한 것과 같은 효과를 본다.texteditor inside terminal!
brew update, brew outdated : see which files need updating, brew upgrade 프로그램 이름, brew search 검색어, brew info 프로그램 이름, brew install 프로그램 이름, brew uninstall 프로그램 이름, brew listnon-interactive network retriever wget -O goodjob.txt https://bit.ly/37sJqCo
웹 브라우저 말고도 javascript를 실행 가능하게 하는 환경 (javascript runtime environment)
nvm 설치 (node version manager) nvm install --lts, node -v (lts: long term support) nvm ls -> nvm install version# -> nvm use version#npm - node package mgr. can download node-related modules with this npm init -> creates package.jsonnpm init -y: instant creation without going through hoops package.json: npm install react npm install --save react: 자동으로 dependencies에 추가됨 npm install mocha --save-dev : 자동으로 devDependencies에 추가됨 npm run scriptnamepractice:
nano helloWorld.js -> node helloWorld.js (node로 자바스크립트 파일 실행) package.json 확인, npm install (all dependencies..) git clone은 로칼 디렉토리로 한번 복사하는 행동이고, git pull는 그 로칼 복사본을 업데이트시키는 행위, 그니깐 그 원격디렉토리의 새로운 업데이트 다 반영하는 행위git pull, you pull the changes from the remote repository into yours. If you send a pull request to another repository, you ask their maintainers to pull your changes into theirs (you more or less ask them to use a git pull from your repository).



$ git config --global user.name "kimcoding"
$ git config --global user.email "kimcoding@example.com"
$ git config --global core.editor nano
ssh-keygen

range.range(a, b, c) --- range 라는 객체 안에 range 라는 함수