|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Interview Questions: System Admin
|
On Sat, Feb 14, 2004 at 11:09:12AM -0500, Mike Chirico
(mchirico@comcast.net) wrote:
> Here's a list of common interview questions that I've come across.
>
> 2. How do you findout whether a command is an aliases, bash function,
> built-in like cd and type, or executable program?
>
> Ans:
>
> type -all yourcmd
rebecca@pyrophore rebecca]$ type -all mountsmart
mountsmart is /home/rebecca/bin/mountsmart
[rebecca@pyrophore rebecca]$ ssh paradoxa
rebecca@paradoxa's password:
Last login: Sat Feb 7 23:33:58 2004 from pyrophore.ogo.i
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
bash-2.05$ type -all type
type is a shell builtin
type is /usr/bin/type
Pyrophore is running RedHat 9; paradoxa is running Solaris 9.
Type is *not* an alias in RedHat 9 (I tried unaliasing it just to see if
that was the problem).
--
Rebecca Ore
http://mysite.verizon.net/rebecca.ore
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|