close

題目:
Experiment with redirecting the output of ls as follows:


$cp /etc/skel . 2> info.txt

a. How is the terminal output?
b.What is written to info.txt?

[Niki@16:28:26 ~]$ cp /etc/skel . 2>info.txt
[Niki@16:29:03 ~]$ cat info.txt
cp: 略過 ‘/etc/skel’ 目錄
[Niki@16:31:08 ~]$ #a.nothing shows in the screen 
[Niki@16:32:07 ~]$ #b. shows cp: 略過 ‘/etc/skel’ 目錄


arrow
arrow
    文章標籤
    Shell
    全站熱搜

    布拉怡 發表在 痞客邦 留言(0) 人氣()