我要怎麼查看檔案內容?
在你重新命名或刪除檔案之前,
你可能會想先看看它們的內容。
最簡單的方式是使用 cat,
它會把檔案的內容直接印在螢幕上。
(它的名字是「concatenate」的縮寫,意思是「把東西串接在一起」,
因為它會依你提供的檔名逐一列印所有檔案的內容。)
cat agarwal.txt
name: Agarwal, Jasmine
position: RCT2
start: 2017-04-01
benefits: full
本練習屬於課程
在你重新命名或刪除檔案之前,
你可能會想先看看它們的內容。
最簡單的方式是使用 cat,
它會把檔案的內容直接印在螢幕上。
(它的名字是「concatenate」的縮寫,意思是「把東西串接在一起」,
因為它會依你提供的檔名逐一列印所有檔案的內容。)
cat agarwal.txt
name: Agarwal, Jasmine
position: RCT2
start: 2017-04-01
benefits: full
本練習屬於課程