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

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 7: Line 7:
 
== 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 28: Line 28:
 
== 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]

Advertising: