Difference between revisions of "Type (Bash built-in)"
Jump to navigation
Jump to search
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
https://linuxcommand.org/lc3_man_pages/typeh.html | https://linuxcommand.org/lc3_man_pages/typeh.html | ||
+ | |||
+ | type type | ||
+ | type [[is a shell builtin]] | ||
== Examples == | == Examples == | ||
type -a [[python3]] | type -a [[python3]] | ||
− | python3 is /usr/bin/python3 | + | python3 is [[/usr/bin/python3]] |
− | python3 is /bin/python3 | + | python3 is [[/bin/python3]] |
Line 14: | Line 17: | ||
[[unattended-upgrades]] is /usr/bin/unattended-upgrades | [[unattended-upgrades]] is /usr/bin/unattended-upgrades | ||
unattended-upgrades is /bin/unattended-upgrades | unattended-upgrades is /bin/unattended-upgrades | ||
+ | |||
+ | type -p | ||
+ | |||
+ | type -Pp $command | ||
+ | |||
+ | |||
+ | type /var/lib/grafana/your-file | ||
+ | bash: type: /var/lib/grafana/your-file: [[not found]] | ||
== Related terms == | == Related terms == | ||
* <code>[[which python3]]</code> | * <code>[[which python3]]</code> | ||
+ | * <code>[[whereis]]</code> | ||
+ | * <code>[[command -v]]</code> | ||
== See also == | == See also == |
Latest revision as of 11:45, 18 October 2023
https://linuxcommand.org/lc3_man_pages/typeh.html
type type type is a shell builtin
Examples[edit]
type -a python3 python3 is /usr/bin/python3 python3 is /bin/python3
type -a unattended-upgrade unattended-upgrade is /usr/bin/unattended-upgrade unattended-upgrade is /bin/unattended-upgrade type -a unattended-upgrades unattended-upgrades is /usr/bin/unattended-upgrades unattended-upgrades is /bin/unattended-upgrades
type -p
type -Pp $command
type /var/lib/grafana/your-file bash: type: /var/lib/grafana/your-file: not found
Related terms[edit]
See also[edit]
which
,whereis
,type (Bash built-in)
,type -a python3
,which python3
,command, hash
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly
- Linux, Linux Foundation, Linux Kernel, man, BusyBox,
coreutils
, ELF, taskset, shell, Linux distributions, X, Virtual console,whoami
,.cer
,-T
,install
, Link Time Optimization (LTO),--silent
, NixOS,util-linux
,execve
, LinuxKit, AlmaLinux, Rocky Linux
Advertising: