第一次作業

來源:互聯網
上載者:User

標籤:作業

1.用student使用者登陸系統圖形介面
開機後出現一個登陸介面,選擇student使用者,輸入密碼登陸。
2.開啟一個bash
方法一:應用程式->收藏->終端 點擊開啟即可

方法二:單擊右鍵

方法三:

3.修改student的密碼,把密碼更新成"westos“
    要先切換到root使用者才有許可權能修改使用者,然後執行 passwd student會出現New password: westos後會讓再一次輸入新密碼 Retype new password:在輸入westos即可
4.顯示當前系統時間
    date
5.顯示當前系統時間,顯示格式為:"小時:分鐘:秒 AM/PM"(AM/PM為上下午標識)
    date + %r
6.顯示“/usr/bin/clean-binary-files”的檔案類型
    file /usr/bin/clean-binary-files
7.統計“/usr/bin/clean-binary-files”的檔案大小
    wc -c /usr/bin/clean-binary-files
8.用捷徑在shell中調用已經執行過的第4條命令
   先輸入history 然後輸入!4
9.用捷徑執行最近一條含有"date"關鍵字的命令
   先輸入ctrl+shift+r然後熟人date
10.用命令和Regex按照要求建立檔案
*)用一條命令建立12個檔案WESTOS_classX_linuxY(X的數值範圍為1-2,Y的數值範圍為1-6)
   touch WESTOS_class{1..2}_linux{1..6}
*)這些檔案都包含在root使用者案頭的study目錄中
   mv WESTOS_class{1..2}_linux{1..6}  /root/Desktop/
*)用一條命令建立8個檔案redhat_versionX(x的範圍為1-8)
   touch redhat_versionX{1..8}
*)redhat_virsionX這些檔案都包含在/mnt目錄中的VERSION中
   mv redhat_versionX{1..8} /mnt
11.管理剛才信建立的檔案要求如下
*)用一條命令把redhat_versionX中的帶有奇數的檔案複製到案頭的SINGLE中
   mkdir /home/student/Desktop/SINGLE ;cp redhat_version[1357] /home/student/Desktop/SINGLE
*)用一條命令把redhat_versionX中的帶偶數數的檔案複製到/DOUBLE中
   mkdir /home/student/Desktop/DOUBLE ;cp redhat_version[1357] /home/student/Desktop/DOUBLE
*)用一條命令把WESTOS_classX_linuxY中class1的檔案一動到目前使用者案頭的CLASS1中
   mkdir /home/student/Desktop/CLASS1 ;mv WESTOS_class1* /home/student/Desktop/CLASS1
*)用一條命令把WESTOS_classX_linuxY中class2的檔案一動到目前使用者案頭的CLASS2中
   mkdir /home/student/Desktop/CLASS2 ;mv WESTOS_class2* /home/student/Desktop/CLASS2
12.備份/etc目錄中名字帶有數字並且以.conf結尾的檔案到案頭上的confdir中;
   cp /etc/*[[:digit:]]*.conf /home/student/Desktop



第一次作業

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.