This blog post is
12 years old! Most likely, its content is outdated.
Especially if it's technical.
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.
- Previous:
- Helpdeskshow - a quick review
26 April 2006
- Next:
- Private functions in Javascript?
29 April 2006
- Related by Keyword:
- Run something forever in bash until you want to stop it
13 February 2018
- 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
- Related by Text:
- Be very careful with your add_header in Nginx! You might make your site insecure
11 February 2018
- jQuery and Highslide JS
08 January 2008
- I'm back! Peterbe.com has been renewed
05 June 2005
- Anti-McCain propaganda videos
12 August 2008
- I'm Prolog
01 May 2007