2015年8月24日 星期一

RHEL7 Lab-2.2 Managing Files with Shell Expansion


1.建立12個檔案,名稱為 tv_seasonX_episodeY.ogg



2.建立8個檔案,名稱為 mystery_chapterX.odf



3.在/影片(Videos)目錄下建立season1 and season2



4.移動 tv_season1..到season1 ,  tv_season2..到season2



5.建立兩個目錄以上並使用一行指令完成,建立 Documents/my_bestseller/chapters



6.使用一行指令建立三個子目錄,在 Documents/my_bestseller/ 下



7.切換到 Documents/my_bestseller/chapters 目錄下,移動家目錄內mystery_chapter開頭的資料到本目錄



8.移動mystery_chapter1.odf和mystery_chapter2.odf到上個目錄內的editor目錄下



9.移動mystery_chapter7.odf和mystery_chapter8.odf到上個目錄內的vacation目錄下



10.到/影片/season2目錄下,複製tv_season2_episode1.ogg到/Documents/my_bestseller/vacation



11.到Documents/my_bestseller/vacation查看,並用cd -返回,在複製tv_season2_episode2.ogg到/Documents/my_bestseller/vacation,返回目錄查看



12.回到上個目錄,複製/chapters/mystery_chapter5 and 6.odf 檔案到/plot_change



13.到/plot_change目錄下,產生一份mystery_chapter5加上今天日期的檔案和加上從1970-1-1到現在共過了幾秒的檔案和加上使用者名稱的檔案



14.刪除/plot_change目錄下所有檔案並刪除/plot_change



15.刪除/vacation目錄


沒有留言:

張貼留言