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

File Explorer

  • .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

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

username

View Details ▼

Manage users.
Accessed in configuration mode.

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

Set up an admin account:

🔍

docker build

View Details ▼

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

View Details ▼

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

tldr docker image rm

View documentation for the original command:

🔍

docker run

View Details ▼

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

tldr docker container run

View documentation for the original command:

🔍

docker

View Details ▼

Manage Docker containers and images.
Some subcommands such as `container` and `image` have their own usage documentation.

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

List all Docker containers (running and stopped):

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

Start a container from an image, with a custom name:

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

Start or stop an existing container:

🔍

git checkout

View Details ▼

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

View Details ▼

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

View Details ▼

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

View Details ▼

View cached executable locations.

hash

View cached command locations for the current shell:

hash -r

Clear the hash table:

hash -d {{command}}

Delete a specific command from the hash table:

🔍

ksh

View Details ▼

Korn Shell, a Bash-compatible command-line interpreter.
See also: `!`, `^`.

ksh

Start an interactive shell session:

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

Execute specific [c]ommands:

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

Execute a specific script:

🔍

ssh

View Details ▼

Secure Shell is a protocol used to securely log onto remote systems.
It can be used for logging or executing commands on a remote server.

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

Connect to a remote server:

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

Connect to a remote server with a specific [i]dentity (private key):

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

Connect to a remote server with IP `10.0.0.1` and using a specific [p]ort (Note: `10.0.0.1` can be shortened to `10.1`):

🔍

tcsh

View Details ▼

C shell with file name completion and command-line editing.
See also: `csh`.

tcsh

Start an interactive shell session:

tcsh -f

Start an interactive shell session without loading startup configs:

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

Execute specific [c]ommands:

🔍

zsh

View Details ▼

Z SHell, a Bash-compatible command-line interpreter.
See also: `bash`, `!`, `^`.

zsh

Start an interactive shell session:

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

Execute specific [c]ommands:

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

Execute a specific script:

🔍

apt install

View Details ▼

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

View Details ▼

Package manager for Debian-based distributions.
Intended as a user-friendly alternative to `apt-get` for interactive use.
For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.

sudo apt update

Update the list of available packages and versions (recommended before running other `apt` commands):

apt search {{package}}

Search packages by name or description:

apt list {{package}}

Search packages by name only (supports wildcards like `*`):

🔍

dnf install

View Details ▼

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

View Details ▼

Package manager for Fedora 41+ and RHEL 10.
For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.

sudo dnf {{[up|upgrade]}}

Upgrade installed packages to the newest available versions:

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

Search packages via keywords:

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

Display details about a package:

🔍

dpkg-buildpackage

View Details ▼

Compile binary and/or source Debian packages from source code.
Normally executed inside a source tree that contains a `debian/` directory.
Also handles build dependencies, creates files like `.buildinfo` and `.changes`, and signs the result if applicable.

dpkg-buildpackage

Generate source and binary packages:

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

Generate only binary packages (no source package):

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

Generate only the source package (without compiling binaries):

🔍

makepkg

View Details ▼

Create a package which can be used with `pacman`.
Uses the `PKGBUILD` file in the current working directory by default.

makepkg

Make a package:

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

Make a package and install its dependencies:

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

Make a package, install its dependencies then install it to the system:

🔍

pacman -R

View Details ▼

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

tldr pacman remove

View documentation for the original command:

🔍

pacman -U

View Details ▼

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

tldr pacman upgrade

View documentation for the original command:

🔍

rpmbuild

View Details ▼

RPM Package Build tool.

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

Build binary and source packages:

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

Build a binary package without source package:

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

Specify additional variables when building a package:

// repository documentation