Difference between revisions of "Type (Bash built-in)"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 +
https://linuxcommand.org/lc3_man_pages/typeh.html
  
 +
type type
 +
type [[is a shell builtin]]
  
  type -a python3
+
== Examples ==
  python3 is /usr/bin/python3
+
  type -a [[python3]]
  python3 is /bin/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 ==
 +
* <code>[[which python3]]</code>
 +
* <code>[[whereis]]</code>
 +
* <code>[[command -v]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{which}}
 
* {{Bash}}
 
* {{Bash}}
 
* {{Linux}}
 
* {{Linux}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

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]

Advertising: