11.suse linux 默认的shell是哪一个?:( _& m% g% ^7 {* X% Z
a) Bourne again shell (bash)$ X) _6 n/ |3 W( I3 L6 ?8 K
b) Linux standard shell (lsh)
! {( m) r$ Y) y, E c) Zorro's shell (zsh)
' d3 \" u/ E' r d) C shell (csh) T" e3 J3 `3 x9 P$ c# J( J0 n
12.下列哪些命令可以确定 ls 命令 是否是一个定义的别名(alias)A
7 J2 O, W8 B6 }2 R B a) alias ls0 |7 J b/ T' h% R- K
b) type -a ls
+ k* O2 C* {& f( l# V; G0 Z6 J c) which ls& S# _/ _( ?( ?+ f6 ~1 l
d) apropos ls, G9 ]( T% g% L& _. y
13.如何重新执行你之前在shell里面执行过的命令?A C
; Z: {6 U/ y7 X0 Y a) 使用上/下方向键,来选择执行哪一个之前执行过的命令
3 U H( c9 ? v3 ]* D- s b) 使用 tab键,来选择执行哪一个之前执行过的命令3 f+ E1 z( J" s/ \, b ?7 Q
c)shell里面之前执行过的命令存储在~/.bash_history中,而且每个命令被分配了一个相应的序列号,可以在shell里面运行“!序列号”来执行某个之前执行过的命令。( N. n( j, t" f8 B: c7 E
d) shell里面之前执行过的命令存储在~/history中. 用Grep在该文件中搜索执行过的命令,之后就可以直接运行。. y; {4 u# k# K1 O
14.如何让一个程序的标准错误输出重定向到一个null设备
0 O2 ?5 A. d; l$ Q* {$ u a) command 2> /dev/null
( D1 n% P' @1 e/ @* g0 Q b) command 2> /dev/zero
4 x; O; c2 h" K2 i c) command > /tmp# l; u" E+ j! A2 X" F
d) command >> /dev/null
2 O3 M V/ G9 I& t/ D4 p$ d15.如何让一个程序的标准输出既写入文件file,同时又能显示在标准输出设备
2 p: v0 D5 g3 E8 l a) command | tee file+ d3 c- A3 L, h, }% Z7 |: e
b) command &> file
3 e8 S) @; S! y: x- L: [ c) command > file0 d" a8 p/ Z5 V1 Z/ z8 u
d) command | > file |