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
directory$B!K$H$$$&%3%^%s%I$r;HMQ$7$^$9!#(B
cd $B%Q%9(B
C:\WINDOWS>cd \home
C:\HOME>
C:\WINDOWS>cd "\my documents"
C:\My Documents>
C:\WINDOWS>cd ..
C:\
$B%U%)%k%@$r0\F0$7$?$i!"K\Ev$K:n@.$7$?(B C$B$N%W%m%0%i%`$N%U%!%$%k$,(B$B$=$3$K$"$k$+!"3NG'$7$F$*$-$^$9!#(B $B%U%)%k%@$NCf$K$"$k%U%!%$%k$N(B$B0lMw$rI=<($9$k$K$O!"(Bdir$B$H$$$&(B$B%3%^%s%I$r;HMQ$7$^$9!#(B
C:\My Documents>dir $B%I%i%$%V(B C: $B$N%\%j%e!<%`%i%Y%k$O$"$j$^$;$s(B. $B%\%j%e!<%`%7%j%"%kHV9f$O(B XXXX-YYYY $B%G%#%l%/%H%j$O(B C:\My Documents . <DIR> yy-mm-dd hh:mm . .. <DIR> yy-mm-dd hh:mm .. $B!J>JN,!K(B HELLO C 81 yy-mm-dd hh:mm hello.c $B!J>JN,!K(B ? $B8D(B ? $B%P%$%H$N%U%!%$%k$,$"$j$^$9(B. ? (IC^(Z8DX(B ? $B%P%$%H$N6u$-$,$"$j$^$9(B.
bcc32 $B%=!<%9%U%!%$%kL>(B
C:\My Documents>bcc32 hello.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland hello.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland C:\My Documents>
$B%3%s%Q%$%k$K@.8y$9$l$P!"%=!<%9%U%!%$%k$N%U%!%$%kL>$N3HD%;R$@$1$r(B
.exe$B$KJQ$($?%U%!%$%k$,$G$-$F$$$k$O$:$G$9!#(B
$B$3$l$, $B!V%3%^%s%I$^$?$O%U%!%$%kL>$,0c$$$^$9(B.$B!W$H$$$&%a%C%;!<%8$,=P$?(B$B;~$O!"(Bbcc32$B$,(B DOS$B%W%m%s%W%H$NCN$C$F$$$k>l=j(B$B!J(B$B%5!<%A%Q%9(B$B!K$K$J$$2DG=@-$,$"$j$^$9!#(B
path$B$H$$$&%3%^%s%I$G3NG'$7$^$9!#(B
C:\My Documents>dir
$B%I%i%$%V(B C: $B$N%\%j%e!<%`%i%Y%k$O$"$j$^$;$s(B.
$B%\%j%e!<%`%7%j%"%kHV9f$O(B XXXX-YYYY
$B%G%#%l%/%H%j$O(B C:\My Documents
. <DIR> yy-mm-dd hh:mm .
.. <DIR> yy-mm-dd hh:mm ..
$B!J>JN,!K(B
HELLO EXE ?? yy-mm-dd hh:mm hello.exe
HELLO C 81 yy-mm-dd hh:mm hello.c
$B!J>JN,!K(B
? $B8D(B ? $B%P%$%H$N%U%!%$%k$,$"$j$^$9(B.
? (IC^(Z8DX(B ? $B%P%$%H$N6u$-$,$"$j$^$9(B.
$B$J$*!"(BBcc32$B$N>l9g!"3HD%;R$,(B .tds$B$H(B .obj$B$N%U%!%$%k(B$B$b$G$-$F$$$k$H;W$$$^$9$,!"$3$l$i$OCf4V@8@.J*$G$9!#(B
$B%W%m%0%i%`$N
C:\My Documents>path
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
C:\My Documents>path c:\Borland\Bcc55\Bin;%PATH%
C:\My Documents>path
PATH=C:\BORLAND\BCC55\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
$B
C:\My Documents>hello
hello world!
$B$J$*!"%=!<%9%U%!%$%k$NCf$K2?$+4V0c$$!J(B$B%P%0(B$B!K(B$B$,$"$C$F$&$^$/%3%s%Q%$%k$G$-$J$$$3$H$NJ}$,IaDL$G$9!#(B $B%(%i!<%a%C%;!<%8$K$O2?9T$a$,%(%i!<$K$J$C$F$$$k$+!"$H$$$&>pJs$,(B$B=q$+$l$F$$$^$9$N$G!":F$S%(%G%#%?$G%=!<%9%U%!%$%k$rJT=8$7$F!"(B $B%3%s%Q%$%k$7$J$*$7$^$9!#(B
$B$J$*(B DOS$B%W%m%s%W%H$G$O>eLp0u%-!<$rBG$D$H0JA0F~NO$7$?%3%^%s%I$,(B$BI=<($5$l$^$9!#(B $B$b$7!"$=$&$J$i$J$$;~$O(B doskey/insert
$B$H$$$&%3%^%s%I$r0lEY $B>/$7D9$$%W%m%0%i%`$r%3%s%Q%$%k$9$k$H!"%(%i!<%a%C%;!<%8$,(B
DOS$B%W%m%s%W%H$N2hLL$KF~$j@Z$i$J$$$H8@$&$3$H$,5/$3$j$^$9!#(B
$B$=$&$$$&;~$O!"%W%m%0%i%`$N=PNO$r2hLL$G$O$J$/!"%U%!%$%k$d(B$BB>$N%3%^%s%I$NF~NO$K@ZBX$($k(B$B%j%@%$%l%/%H(B$B$H$$$&
$B%3%^%s%I(B > $B%U%!%$%kL>(B
$B%3%^%s%I(B1 | $B%3%^%s%I(B2
$B!V(B>$B!W$NJ}$O%3%^%s%I$N7k2L$r%U%!%$%k$K=PNO$7$^$9!#(B
$B$3$N%U%!%$%k$r%F%-%9%H%(%G%#%?$G8+$l$PNI$$$o$1$G$9!#(B
$B!V(B|$B!W$O%3%^%s%I(B1$B$N=PNO$r!"%3%^%s%I(B2$B$NF~NO$H$7$FEO$7$^$9!#(B $B%3%^%s%I(B2$B$H$7$F$O(B
more$B$H$$$&%3%^%s%I$,NI$/;H$o$l$^$9!#(B
more$B$OD9$$%F%-%9%H$r2hLL$K$*$5$^$kHO0O$:$DI=<($9$k%W%m%0%i%`$G$9(B
C:\My Documents>bcc32 hello.c > error.txt
C:\My Documents>bcc32 hello.c | more
$B2]Bj(B
#include <stdio.h>
int main() {
int i;
for(i=0; i<10; i++) {
printf("hello world!\n");
}
return 0;
}
#include <stdio.h>
int main() {
int i;
for(i=0; i<9; i++) {
printf("%d$B9TL\(B\n", i);
}
return 0;
}
#include <stdio.h>
int main() {
int i;
for(i=0; i<7; i++) {
printf("\033[3%dmhello world!\n", i);
}
printf("\033[0;5;7m");
return 0;
}
$BCm(B: $B3%?'(B$B$NItJ,$r=|$1$P8+$?L\$O(B C$B$H(B JavaScript$B$ONI$/;w$F$$$k$3$H$,$o$+$k$H;W$$$^$9!#(B $B:G=i$NCJ3,$G$o$+$k0c$$$O(B