type - Writing shell scripts

28 April 2006   1 comment   Linux


Mind That Age!

This blog post is 11 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

I've started skimming through the lovely Writing shell scripts tutorial and even though I'm just in the beginning of it I've already learnt one very useful thing: the type program. With it you can find out "what type of command it is". This is useful because sometimes you want to know where some command is coming from. I'll let this example explain its usage:

peterbe@trillian:~ $ type jed
jed is /usr/bin/jed
peterbe@trillian:~ $ type cvs_commit 
cvs_commit is /home/peterbe/bin/cvs_commit
peterbe@trillian:~ $ type alias
alias is a shell builtin
peterbe@trillian:~ $ type sjed
sjed is aliased to `sudo jed'

I'll read more of this after the weekend.


what will i say to u. it is only a task and nothing else
Thank you for posting a comment

Your email will never ever be published

Related posts

Helpdeskshow - a quick review 26 April 2006
Private functions in Javascript? 29 April 2006
A neat trick to zip a git repo with a version number 01 September 2017
And bash basics 16 October 2015
Some tips on learning React 04 August 2015
set -ex - The most useful bash trick of the year 31 August 2014
How I do deployments 16 December 2013
Bash tip of the day: ff 25 March 2011
To code or to pdb in Python 20 December 2010
pwdf - a mix of ls and pwd 07 April 2008
File check before delete 07 March 2008
Catching a carriage return in bash 23 October 2006