-
shell, curl, nvmmemoir 2022. 3. 1. 00:20# shell유닉스 계열의 시스템에서 사용하는 대화형 인터페이스. 사용자의 커널 사이에서 사용자의 입력을 받아서 명령을 해석하여 커널에 전달하고 결과를 사용자에게 반환한다.여러가지 쉘 중에서 가장 인기있는 5가지 쉘은 Bash(배쉬), Tcsh(C쉘), Ksh(콘쉘), Zsh(Z쉘), Fish(Friendly Interactive SHell)다. 이 쉘중에서 자신에게 맞는 쉘을 선택하면 된다.
# 현재 사용중인 쉘 확인 $ echo $SHELL /bin/bash # 사용가능한 쉘 확인 $ cat /etc/shells /bin/sh /bin/bash /sbin/nologin /bin/dash
02.커널, 쉘
커널(Kernel)과 쉘(Shell)에 대해서 알아보겠습니다.  Time to donate to the curl project? Everything curl is a detailed and totally free book that explains basically everything there is to know about curl, libcurl and the associated pr
curl.se
curl is used in command lines or scripts to transfer data. curl is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the Internet transfer engine for thousands of software applications in over ten billion installations.
curl is used daily by virtually every Internet-using human on the globe.
다운받기 위해 필요한 것. 명령행이나 스크립트에서 데이터를 전송하는 데 사용된다.# nvmAbout
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.
node version manager다. 약간 apt(리눅스), npm 같은 애들인데 얘네는 버전을 관리해준다명령어 예시) nvm use 16 걍 앞으로 노드버전 16으로 쓸거임nvmGitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active nod...
github.com
https://github.com/nvm-sh/nvm#install--update-script
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active nod...
github.com
Installing and Updating
Install & Update Script
To install or update nvm, you should run the install script. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# 그 외
node --version # 노드버전이 터미널에 출력된다
일단 use하기전에 노드를 설치해야 되서 nvm install 16 # node 16 버전이 설치된다| 파이프 라인 연산자에 대해서도 배움zshrc는 터미널 열 때 실행되어야 하는 스크립트들이 들어있는 친구임GNUJAVA
macOS 는 유닉스 기반의 OS 로 개발을 하다보면 터미널을 많이 사용하기 마련인데 기본으로 제공되는 터미널은 너무 빈약합니다. PuTTY 같은 다른 터미널 클라이언트를 사용했던 분들이라면 더더욱
www.gnujava.com
vi ~/.zshrc파일을 수정할 수 있다그러면 터미널을 껐다 키면 zshrc에있는명령어가 실행이 된다!파이프라인 연산자파이프라인 체인 연산자 정보 - PowerShell
`&&`PowerShell에서 및 연산자를 사용 하 여 파이프라인을 연결 하는 방법을 설명 합니다 `||` .
docs.microsoft.com
curl -o- 다운을 받은내용을 출력해라 output표준 입출력?echo 명령어'memoir' 카테고리의 다른 글
깃 (0) 2022.03.02 간단한 shell 스크립트 만들고 bash로 실행시켜보기 (0) 2022.03.01 [JS] filter (0) 2022.02.26 CORS (0) 2022.02.21 깃허브 프로젝트 관리하기 (0) 2022.02.18