🖥️declare
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the declare command with important options and switches using examples.
5 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ██████╗ ███████╗ ██████╗██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██╔════╝██╔════╝██║ ██╔══██╗██╔══██╗██╔════╝
# ██║ ██║█████╗ ██║ ██║ ███████║██████╔╝█████╗
# ██║ ██║██╔══╝ ██║ ██║ ██╔══██║██╔══██╗██╔══╝
# ██████╔╝███████╗╚██████╗███████╗██║ ██║██║ ██║███████╗
# ╚═════╝ ╚══════╝ ╚═════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
builtin declare -f | command grep --color=never -E '^[a-zA-Z_]+\ \(\)'
# Display all shell functions set in the current shell environment -> Uses the shell builtin `declare` with the '-f' flag to output only functions to grep out only the function names. You can use it as an alias or function like so:
alias shfunctions="builtin declare -f | command grep --color=never -E '^[a-zA-Z_]+\ \(\)'" shfunctions () { builtin declare -f | command grep --color=never -E '^[a-zA-Z_]+\ \(\)'; }
# Show sample output
# Newlines ()
# __expand_tilde_by_ref ()
# __get_cword_at_cursor_by_ref ()
# __load_completion ()
# __ltrim_colon_completions ()
# __parse_options ()
# __reassemble_comp_words_by_ref ()
# _adb ()
# _allowed_groups ()
# _allowed_users ()
# _android ()
# _arg_index ()
# _available_interfaces ()
# _before ()
# _branch_completion ()
# _cd ()
# _cd_devices ()
# _cdsitepackages_complete ()
# _cdvirtualenv_complete ()
# _cmp_opts ()
# _command ()
# _command_completion ()
# _command_offset ()
# _complete_as_root ()
# _completion_loader ()
# _configured_interfaces ()
# _count_args ()
# _dir_completion ()
# _dvd_devices ()
# _emulator ()
# _expand ()
# _expects_arg ()
# _fastboot ()
# _filedir ()
# _filedir_xspec ()
# _find_repo ()
# _fstypes ()
# _gen_comps ()
# _get_comp_words_by_ref ()
# _get_cword ()
# _get_first_arg ()
# _get_pword ()
# _gids ()
# _handle_options ()
# _have ()
# _included_ssh_config_files ()
# _init_completion ()
# _init_cur_prev ()
# _installed_modules ()
# _ip_addresses ()
# _is_known_longopt ()
# _is_known_shortopt ()
# _is_long_option ()
# _is_option ()
# _is_repo_dir ()
# _kernel_versions ()
# _known_hosts ()
# _known_hosts_real ()
# _longopt ()
# _lsvirtualenv_usage ()
# _mac_addresses ()
# _manifest_completion ()
# _minimal ()
# _modules ()
# _ncpus ()
# _no_completion ()
# _parse_help ()
# _parse_usage ()
# _path_cmd_completion ()
# _pci_ids ()
# _pgids ()
# _pids ()
# _pnames ()
# _project_completion ()
# _quote_readline_by_ref ()
# _rbenv ()
# _realcommand ()
# _repo ()
# _repo_abandon ()
# _repo_branch ()
# _repo_branches ()
# _repo_checkout ()
# _repo_cherry_pick ()
# _repo_diff ()
# _repo_download ()
# _repo_forall ()
# _repo_grep ()
# _repo_help ()
# _repo_init ()
# _repo_list ()
# _repo_prune ()
# _repo_rebase ()
# _repo_selfupdate ()
# _repo_smartsync ()
# _repo_stage ()
# _repo_start ()
# _repo_status ()
# _repo_sync ()
# _repo_upload ()
# _repo_version ()
# _rl_enabled ()
# _root_command ()
# _service ()
# _services ()
# _shells ()
# _signals ()
# _split_longopt ()
# _strip_colors ()
# _sysvdirs ()
# _terms ()
# _tilde ()
# _uids ()
# _upvar ()
# _upvars ()
# _usb_ids ()
# _user_at_host ()
# _usergroup ()
# _userland ()
# _variables ()
# _virtualenvs ()
# _when_even ()
# _when_first ()
# _when_ix ()
# _xfunc ()
# _xinetd_services ()
# allvirtualenv ()
# asksure ()
# boucle ()
# boucle_fin ()
# cdproject ()
# cdsitepackages ()
# cdvirtualenv ()
# coline ()
# confirme ()
# cpvirtualenv ()
# dequote ()
# die ()
# find ()
# findg ()
# findh ()
# findr ()
# forn ()
# funtest ()
# git ()
# hgrep ()
# htail ()
# isVariableSet ()
# iset ()
# j ()
# line ()
# logload ()
# lssitepackages ()
# lsvirtualenv ()
# lwl ()
# mkflatdir ()
# mkproject ()
# mktmpenv ()
# mkvirtualenv ()
# oath ()
# pac ()
# pacUsage ()
# pg ()
# pkglog ()
# proc ()
# psearch ()
# psg ()
# quote ()
# quote_readline ()
# rbenv ()
# redshift ()
# reverseFiles ()
# rmvirtualenv ()
# setvirtualenvproject ()
# showvirtualenv ()
# sp ()
# spacel ()
# spacen ()
# spacep ()
# spaces ()
# spacet ()
# stderr ()
# toggleglobalsitepackages ()
# tychnelastlog ()
# virtualenvwrapper ()
# virtualenvwrapper_absolutepath ()
# virtualenvwrapper_cd ()
# virtualenvwrapper_derive_workon_home ()
# virtualenvwrapper_expandpath ()
# virtualenvwrapper_get_python_version ()
# virtualenvwrapper_get_site_packages_dir ()
# virtualenvwrapper_initialize ()
# virtualenvwrapper_mkproject_help ()
# virtualenvwrapper_mktemp ()
# virtualenvwrapper_mkvirtualenv_help ()
# virtualenvwrapper_run_hook ()
# virtualenvwrapper_setup_tab_completion ()
# virtualenvwrapper_show_workon_options ()
# virtualenvwrapper_tempfile ()
# virtualenvwrapper_verify_active_environment ()
# virtualenvwrapper_verify_project_home ()
# virtualenvwrapper_verify_resource ()
# virtualenvwrapper_verify_virtualenv ()
# virtualenvwrapper_verify_virtualenv_clone ()
# virtualenvwrapper_verify_workon_environment ()
# virtualenvwrapper_verify_workon_home ()
# virtualenvwrapper_workon_help ()
# what ()
# wipeenv ()
# workon ()
#==============================##==============================#
# CMD declare #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command declare in a clear format. This allows users to quickly access the needed information for declare without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for declare are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.