function fdisk(){ :; }
echo "type";type fdisk
echo;echo "type -a";type -a fdisk
echo;echo "type -t";type -t fdisk
echo;echo "type -f";type -f fdisk
echo;echo "type -P";type -P fdisk
輸出結果:
type
fdisk is a function
fdisk ()
{
:
}
type -a
fdisk is a function
fdisk ()
{
:
}
fdisk is /sbin/fdisk
type -t
function
type -f
fdisk is /sbin/fdisk
type -P
/sbin/fdisk
沒有留言:
張貼留言