freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

揚州大學操作系統(tǒng)實驗報告書綜述-在線瀏覽

2024-09-14 00:04本頁面
  

【正文】 默認存取權限,并給出結論。① 用戶主目錄的絕對路徑如何表示? /home/stu1/home/stu2 ② 根目錄如何表示? /root ③.和..分別表示什么目錄? 子目錄,父目錄 ④~表示什么目錄? 用戶主目錄 ⑤當前目錄如何表示? Cd~ (5)新建用戶stu3,設置其密碼為student3,并將其設置為group2中成員。groupadd group2useradd stu3 –g group2su stu3$passwd 回車后敲入密碼 student3$cd~$mkdir text$mkdir dir1$cd text/dir1(6)使用cat,分析命令行cat 。$mv/ ② ?!臼褂锰貦嘤脩舴椒ā縮umv/home/stu3/text/home/stu2【修改目錄權限方法】cp/home/stu3/text/home/stu2(9) 試畫出上述命令后,用戶stustu2和stu3主目錄中的目錄樹(3棵子樹)。要求:程序輸入的第一個參數(shù)是源文件,第二個參數(shù)是目標文件。Char ch。Exit(0)。Exit(0)。 Exit(0)。Fclose(in)。}【運行命令】gcc –o test ./test (2)編寫Linux C程序,列出stu2主目錄中的文件信息,、同組用戶只讀、其他用戶無權限。 Struct dirent *dirp。 If(arge!=2) { Printf(“a signle argement is required”)。}If(dp=opendir(argv[1])==NULL){ Printf(“can not open%s”,args[1])。}While(((dirp=readdir(dp))!=NULL)amp。(n=50)){ If(n%1==0)printf(“ ”)。 Printf(“%10s\n”,dirpd_name)。二、 實驗預習(預備知識的問題及回答)1. Linux系統(tǒng)默認的shell語言是什么?欲查看該shell的版本,應使用什么命令?Bash shell$echo $BASH_VERSION2. 預習shell有關變量和參數(shù)的相關知識,回答下列問題。1) echo person person 2) echo $person jenny 3) echo ‘$person’ $person 4) echo “$person” jenny (2)填充下列與環(huán)境變量、位置變量和預定義變量相關的表格?!驹闯绦颉?/bin/bashIftest $=3Then Case s2 in +)let z=$1 +$3。 /)let z=$1/$3。 *)echo”warning $2 invalid operator!” exit?!驹闯绦颉縍ead flagWhile test “$flag” Do Location=’expr $location=1’ Basename=’expr substr=”$flag” 1 $location’Echo $baseameRead flagdone 【運行】Chmod a+x letter./letter3.將下面的shell腳本命名為myscript,分析其功能:count=$cmd=echowhile [ $count –gt 0 ]do cmd=$cmd \$$count count=`expr $count 1`doneeval $cmd【命令行輸入】 chmod a+x myscript ./myscript first second third【運行結果】Third second first【腳本功能分析】將命令行輸入的參數(shù)倒敘顯示4.設計一個程序cuts,它從標準輸入讀入數(shù)據(jù),獲取由第一個參數(shù)n 和第二個參數(shù)m所限定范圍的數(shù)據(jù)(包括這兩個字符),n和m都是整數(shù)。 Pid=fork()If pid 為負 Print 當前進程是子進程Else if pid 為0 Print 當前進程是父進程3.圖示pipe系統(tǒng)調(diào)用生成無名管道時所涉及的數(shù)據(jù)結構。main( ){ fork( )。 fork( )。 a=55。if0) printf(errorfork !)。 }else if(pid==0) { sleep(5)。 printf(“a=%d\n”,a)。 exit(0
點擊復制文檔內(nèi)容
醫(yī)療健康相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1