What may confuse you: [- this is really a Unix shell command. You can find it in /bin, and when you look more closely, this is a hard link to the command test, which means you can also write:
test -f /etc/bashrc && source /etc/bashrc
( .is a shortcut for source).
: Unix , , "", . Unix, . : Unix , , .
, : , .
/dev, tty, , .
[EDIT] , [ test - :
. ls -il [ test echo :
356954 -r-xr-xr-x 2 root wheel 46K May 31 2008 [
356954 -r-xr-xr-x 2 root wheel 46K May 31 2008 test
67392 -rwxr-xr-x 1 root wheel 18K Sep 22 2007 echo
-, "2" "root". , ( a.k.a), (Unix lingo: inode, i- node "index node" ). inode , (356954). , [ test , echo .
, , . inode ( find /path -inode 356954)
[EDIT2] tty : . - "c", " ". "-" "d" "b" (, , ..). , . , ( "" - "" ) . , Unix API - "IO control" ( ioctl) (, ).
( "Ctrl-Alt-F1" ), - :
Welcome to .... - Kernel .... (tty1)
( Alt-F2... Alt-F6), , tty2 tty6.
echo test > /dev/tty1
, tty1. tty , ( mingetty, login bash ). read line < /dev/tty1, , , .