type - Writing shell scripts

28 April 2006   1 comment   Linux

http://linuxcommand.org/writing_shell_scripts.php

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.

Follow @peterbe on Twitter

Comments

Anonymous
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

Previous:
Helpdeskshow - a quick review 26 April 2006
Next:
Private functions in Javascript? 29 April 2006
Related by Keyword:
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
Related by Text:
Geeking with Eterm and Tkinter 09 February 2006
Running simple SQL commands on the command line 08 January 2005
Mvbackupfiles - a script to "delete" back autosaved backup files 24 November 2005
FacebookStatusUpdater 07 June 2007
Redirect stderr into becoming dots in Bash 02 September 2006