cqfd
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
- Dockerfile
- Dockerfile
- Dockerfile
- Dockerfile
- deb-package.yml
- makefile.yml
- pkg-package.yml
- rpm-package.yml
- format
- .gitignore
- changelog
- control
- copyright
- cqfd.lintian-overrides
- rules
- cqfd_logo.png
- .gitignore
- .gitignore
- .gitignore
- .gitignore
- Dockerfile.focalFossa.android34
- Dockerfile.focalFossa.nodejs20x
- dot-cqfdrc
- Dockerfile
- Dockerfile.build_context
- Dockerfile.doutofd
- Dockerfile.home_path
- Dockerfile.init_extra_env
- Dockerfile.missing_dependencies
- Dockerfile
- cqfdrc-build_context
- cqfdrc-test
- Makefile
- whereami.sh
- bats-assert
- bats-support
- common-setup.bash
- 00-setup.bats
- 01-cqfd_init.bats
- 03-cqfd_error.bats
- 03-cqfd_help.bats
- 03-cqfd_version.bats
- 03-cqfdrc_error.bats
- 04-cqfd_init_context.bats
- 05-cqfd_init_alt_ext.bats
- 05-cqfd_init_custom_image.bats
- 05-cqfd_init_extra_env.bats
- 05-cqfd_init_extra_hosts.bats
- 05-cqfd_init_flavor.bats
- 05-cqfd_run.bats
- 05-cqfd_run_alt_ext.bats
- 05-cqfd_run_c.bats
- 05-cqfd_run_c_flavor.bats
- 05-cqfd_run_check_dependencies.bats
- 05-cqfd_run_command.bats
- 05-cqfd_run_config.bats
- 05-cqfd_run_dockerfile.bats
- 05-cqfd_run_dockerfile_symlink.bats
- 05-cqfd_run_extra_env.bats
- 05-cqfd_run_extra_groups.bats
- 05-cqfd_run_extra_hosts.bats
- 05-cqfd_run_flavor.bats
- 05-cqfd_run_from_subdirectory.bats
- 05-cqfd_run_home_env_var.bats
- 05-cqfd_run_home_path.bats
- 05-cqfd_run_spaces_in_path.bats
- 05-cqfd_run_su_or_sudo_backend.bats
- 05-cqfd_run_system_git_config.bats
- 05-cqfd_run_system_ssh_config.bats
- 05-cqfd_run_tty.bats
- 05-cqfd_run_user_git_config.bats
- 05-cqfd_run_user_ssh_config.bats
- 05-cqfd_run_whitespace_resiliency.bats
- 06-cqfd_release.bats
- 07-cqfd_exec.bats
- 08-cqfd_shell.bats
- 09-cqfd-pts.bats
- 10-cqfd_doutofd.bats
- 11-shell_history.bats
- 90-cqfd_deinit.bats
- 99-teardown.bats
- bats
- Makefile
- README.tests
- setup_suite.bash
- .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
jsDelivrjsDelivr 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 ▼
username
Manage users.
Accessed in configuration mode.
username {{admin}} privilege 15 secret {{password}}
Set up an admin account:
docker build
View Details ▼
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
View Details ▼
docker rmi
This command is an alias of `docker image rm`.
tldr docker image rm
View documentation for the original command:
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
docker
View Details ▼
docker
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 ▼
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
View Details ▼
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
View Details ▼
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
View Details ▼
hash
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 ▼
ksh
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 ▼
ssh
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 ▼
tcsh
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 ▼
zsh
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 ▼
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
View Details ▼
apt
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 ▼
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
View Details ▼
dnf
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 ▼
dpkg-buildpackage
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 ▼
makepkg
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 ▼
pacman -R
This command is an alias of `pacman --remove`.
tldr pacman remove
View documentation for the original command:
pacman -U
View Details ▼
pacman -U
This command is an alias of `pacman --upgrade`.
tldr pacman upgrade
View documentation for the original command:
rpmbuild
View Details ▼
rpmbuild
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:
