第一章練習

2021-07-25 16:18:43 字數 2947 閱讀 3559

1.用student使用者登陸系統圖形介面

2.開啟乙個bash

3.修改student的密碼,把密碼更新成"t3st1ngtlme"(主機字母和數字)

4.顯示當前系統時間

【root@localhost desktop】#date

5.顯示當前系統時間,顯示格式為:"小時:分鐘:秒 am/pm"(am/pm為上下午標識)

6.顯示「/usr/bin/clean-binary-files」的檔案型別

1.用命令和正規表示式按照要求建立檔案

*)file /usr/bin/clean-binary-files

7.統計「/usr/bin/clean-binary-files」的檔案大小

*)#wc /usr/bin/clean-binary-files

8.用快捷方式在shell中呼叫已經執行過的第4條命令

【root@localhost desktop】#history

【root@localhost desktop】#!4

9.用快捷方式執行最近一條含有"date"關鍵字的命令

ctrl+r 

搜尋date

《 第二單元》

1.用命令和正規表示式按照要求建立檔案

*)用一條命令建立12個檔案westos_classx_linuxy(x的數值範圍為1-2,y的數值範圍為1-6)

*)【root@localhost desktop】#: westos_classlinux

這些檔案都包含在root使用者桌面的study目錄中

用一條命令建立8個檔案redhat_versionx(x的範圍為1-8)

*)【root@localhost desktop】#touch redhat_version

redhat_virsionx這些檔案都包含在/mnt目錄中的version中

2.管理剛才信建立的檔案要求如下

*)用一條命令把redhat_versionx中的帶有奇數的檔案複製到桌面的single中

*)【root@localhost desktop】#mkder single

【root@localhost desktop】#cp renhat_version[[:1.3.5.7:]]  . /single/

用一條命令把redhat_versionx中的帶偶數數的檔案複製到/double中

用一條命令把westos_classx_linuxy中class1的檔案一動到當前使用者桌面的class1中

*)【root@localhost desktop】#mkder class1

【root@localhost desktop】#mv  ./westos/class1_linux?  ./class1

用一條命令把westos_classx_linuxy中class2的檔案一動到當前使用者桌面的class2中

備份/etc目錄中所有帶有名字帶有數字並且以.conf結尾的檔案到桌面上的confdir中

刪掉剛才建立或者備份的所有檔案

python第一章筆記 第一章 基礎

參與除法的兩個數中有乙個數為浮點數,結果也為浮點數 如 1.0 2,1 2.0,1.0 2.0 python print 1.0 2 結果 0.5 print 1 2.0 結果 0.5 print 1.0 2.0 結果 0.5 整數 整數,計算結果的小數部分被截除,只保留整數部分 不會四捨五入 如 ...

C程式語言 練習 第一章

練習1 3 修改溫度轉行程式,使之能在轉換表的頂部列印乙個標題。include 當fahr 0,20,300時,分別 列印華氏溫度和攝氏溫度對照表 main getch 練習1 4 編寫乙個程式列印攝氏溫度轉換為相應華氏溫度的轉換表。include main getch 練習1 5 修改溫度轉換程式...

OpenCV3第一章練習

1.資料型別轉換 float f 12.9876f float ff cvfloor f 近似乙個浮點數x到不大於x的最近的整數 向下取整 float fabs cv abs f 絕對值 float fround cvround f 近似乙個浮點數x到最近的整數 float fceil cvceil...