cqfd

(★ 81)

cqfd helps running commands inside the Docker container configured for your project, keeping the user and working directory the same inside the container

파일 탐색기

  • .cqfdrc
  • .gitignore
  • .gitmodules
  • AUTHORS
  • bash-completion
  • CHANGELOG.md
  • cqfd
  • cqfd.1.adoc
  • cqfd.spec
  • cqfdrc.5.adoc
  • LICENSE
  • make-deb.sh
  • make-pkg.sh
  • make-rpm.sh
  • Makefile
  • PKGBUILD
  • PKGBUILD-git
  • README.md

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

username

설명 보기 ▼

사용자를 관리.
설정 모드에서 사용.
더 많은 정보: <https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/s1/sec-s1-xe-3se-3850-cr-book/sec-s1-xe-3se-3850-cr-book_chapter_0110.html>.

username {{admin}} privilege 15 secret {{password}}

관리자 계정 생성:

🔍

docker build

설명 보기 ▼

Build an image from a Dockerfile.

docker build .

Build a Docker image using the Dockerfile in the current directory:

docker build {{github.com/creack/docker-firefox}}

Build a Docker image from a Dockerfile at a specified URL:

docker build {{[-t|--tag]}} {{name:tag}} .

Build a Docker image and tag it:

🔍

docker rmi

설명 보기 ▼

This command is an alias of `docker image rm`.

tldr docker image rm

View documentation for the original command:

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

docker

설명 보기 ▼

Docker 컨테이너 및 이미지를 관리.
`run`과 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://docs.docker.com/reference/cli/docker/>.

docker {{[ps|container ls]}} {{[-a|--all]}}

모든 도커 컨테이너들(실행 및 중지) 목록 보기:

docker {{[run|container run]}} --name {{container_name}} {{image}}

사용자 정의 이름으로 이미지로부터 컨테이너 실행:

docker container {{start|stop}} {{container_name}}

기존 컨테이너 시작 또는 중지:

🔍

git checkout

설명 보기 ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git submodule

설명 보기 ▼

Inspect, update, and manage submodules.

git submodule

View existing submodules and the checked-out commit for each one:

git submodule update --init --recursive

Install a repository's submodules (listed in `.gitmodules`):

git submodule add {{repository_url}}

Add a Git repository as a submodule of the current one:

🔍

hash

설명 보기 ▼

캐시된 실행 파일 위치 조회.
더 많은 정보: <https://www.gnu.org/software/bash/manual/bash.html#index-hash>.

hash

현재 쉘의 캐시된 명령어 위치 표시:

hash -r

해시 테이블 초기화:

hash -d {{command}}

해시 테이블에서 특정 명령 제거:

🔍

ksh

설명 보기 ▼

Korn Shell, Bash와 호환되는 명령줄 인터프리터.
관련 항목: `!`, `^`.
더 많은 정보: <https://manned.org/ksh>.

ksh

대화형 셸 세션 시작:

ksh -c "{{echo 'ksh is executed'}}"

특정 [c]명령어 실행:

ksh {{path/to/script.ksh}}

특정 스크립트 실행:

🔍

ssh

설명 보기 ▼

Secure Shell은 원격 시스템에 안전하게 로그인하기 위한 프로토콜입니다.
원격 서버에 로그인하거나 명령을 실행하는 데 사용할 수 있습니다.
더 많은 정보: <https://man.openbsd.org/ssh>.

ssh {{username}}@{{remote_host}}

원격 서버에 연결:

ssh {{username}}@{{remote_host}} -i {{path/to/key_file}}

특정 신원(개인 키)으로 원격 서버에 연결:

ssh {{username}}@10.0.0.1 -p {{2222}}

특정 [p]포트를 사용하여 원격 서버에 연결:

🔍

tcsh

설명 보기 ▼

파일 이름 자동 완성과 명령 줄 편집 기능을 제공하는 C 셸.
관련 항목: `csh`.
더 많은 정보: <https://manned.org/tcsh>.

tcsh

상호작용 셸 세션 시작:

tcsh -f

시작 구성 파일을 로드하지 않고 상호작용 셸 세션 시작:

tcsh -c "{{echo 'tcsh is executed'}}"

특정 [c]명령 실행:

🔍

zsh

설명 보기 ▼

Z SHell, Bash 호환 명령줄 인터프리터.
관련 항목: `bash`, `!`, `^`.
더 많은 정보: <https://zsh.sourceforge.io/Doc/Release/Invocation.html#Invocation>.

zsh

대화형 셸 세션 시작:

zsh -c "{{echo Hello world}}"

특정 [c]명령 실행:

zsh {{path/to/script.zsh}}

특정 스크립트 실행:

🔍

apt install

설명 보기 ▼

Install packages for Debian-based distributions.

sudo apt install {{package}}

Install a package, or update it to the latest version:

sudo apt install {{[-V|--verbose-versions]}} {{package}}

Display verbose package version information during installation or update:

🔍

apt

설명 보기 ▼

Debian 기반 배포판을 위한 패키지 관리 도구.
Ubuntu 16.04 이후 버전에서 대화형 사용 시 `apt-get`의 권장 대체 도구.
다른 패키지 관리자의 동등한 명령을 보려면 <https://wiki.archlinux.org/title/Pacman/Rosetta>.
더 많은 정보: <https://manned.org/apt.8>.

sudo apt update

사용 가능한 패키지 및 버전 목록 업데이트 (다른 `apt` 명령어 실행 전 권장):

apt search {{package}}

주어진 패키지 검색:

apt list {{package}}

패키지 정보 표시:

🔍

dnf install

설명 보기 ▼

Install packages on Red Hat-based distributions.

sudo dnf {{[in|install]}} {{package1 package2 ...}}

Install packages by name:

sudo dnf {{[in|install]}} {{path/to/file}}

Install a package from a local file:

sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}

Install a package from the internet:

🔍

dnf

설명 보기 ▼

RHEL, Fedora 및 CentOS를 위한 패키지 관리 도구(yum을 대체).
다른 패키지 관리자의 동등한 명령을 보려면 <https://wiki.archlinux.org/title/Pacman/Rosetta>.
더 많은 정보: <https://dnf5.readthedocs.io/en/latest/commands/index.html>.

sudo dnf {{[up|upgrade]}}

설치된 패키지를 최신 버전으로 업그레이드:

dnf {{[se|search]}} {{keyword1 keyword2 ...}}

키워드를 통해 패키지 검색:

dnf {{[if|info]}} {{package}}

패키지에 대한 세부 정보 표시:

🔍

dpkg-buildpackage

설명 보기 ▼

소스 코드로부터 Debian 바이너리 및/또는 소스 패키지를 빌드.
일반적으로 `debian/` 디렉터리를 포함한 소스 트리에서 실행됨.
빌드 의존성 처리, `.buildinfo` 및 `.changes` 파일 생성, 필요한 경우 결과물 서명도 수행.
더 많은 정보: <https://manned.org/dpkg-buildpackage>.

dpkg-buildpackage

소스 및 바이너리 패키지 생성:

dpkg-buildpackage {{[-b|--build=binary]}}

바이너리 패키지만 생성 (소스 패키지는 생성하지 않음):

dpkg-buildpackage {{[-S|--build=source]}}

소스 패키지만 생성 (바이너리 컴파일 없이):

🔍

makepkg

설명 보기 ▼

`pacman`과 함께 사용할 수 있는 패키지를 생성합니다.
기본적으로 현재 작업 디렉토리의 `PKGBUILD` 파일을 사용합니다.
더 많은 정보: <https://manned.org/makepkg>.

makepkg

패키지 생성:

makepkg {{[-s|--syncdeps]}}

패키지를 생성하고 의존성을 설치:

makepkg {{[-si|--syncdeps --install]}}

패키지를 생성하고 의존성을 설치한 다음 시스템에 설치:

🔍

pacman -R

설명 보기 ▼

This command is an alias of `pacman --remove`.

tldr pacman remove

View documentation for the original command:

🔍

pacman -U

설명 보기 ▼

This command is an alias of `pacman --upgrade`.

tldr pacman upgrade

View documentation for the original command:

🔍

rpmbuild

설명 보기 ▼

RPM 패키지 빌드 도구.
더 많은 정보: <https://manned.org/rpmbuild>.

rpmbuild -ba {{path/to/spec_file}}

바이너리 및 소스 패키지 빌드:

rpmbuild -bb {{path/to/spec_file}}

소스 패키지 없이 바이너리 패키지 빌드:

rpmbuild -bb {{path/to/spec_file}} --define "{{variable1}} {{value1}}" --define "{{variable2}} {{value2}}"

패키지를 빌드할 때 추가 변수 지정:

// repository documentation