Skip to content

Instantly share code, notes, and snippets.

@thatisuday
Created September 7, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatisuday/1365d0e0be1d086799697db4bd18a62c to your computer and use it in GitHub Desktop.
Save thatisuday/1365d0e0be1d086799697db4bd18a62c to your computer and use it in GitHub Desktop.
Bash type command values
Command Output Description
type -t type builtin `type` is a command provided by the shell itself (shell built-in)
type -t nano file `nano` is a binary file executable as command (located at `/usr/bin/nano`)
type ls ls is hashed (/bin/ls) `ls` is a binary file but hashed (https://unix.stackexchange.com/a/105878)
type -t ll alias A shell alias (to `ls -al`)
type -t case keyword `case` is a keyword in shell programming language
type -t my_fake_ip function `my_fake_ip` is a function defined in the current terminal session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment