Linu 实验报告系 统 常 用 命 令

上传人:hs****ma 文档编号:552508598 上传时间:2023-01-18 格式:DOCX 页数:11 大小:193.24KB
返回 下载 相关 举报
Linu 实验报告系 统 常 用 命 令_第1页
第1页 / 共11页
Linu 实验报告系 统 常 用 命 令_第2页
第2页 / 共11页
Linu 实验报告系 统 常 用 命 令_第3页
第3页 / 共11页
Linu 实验报告系 统 常 用 命 令_第4页
第4页 / 共11页
Linu 实验报告系 统 常 用 命 令_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《Linu 实验报告系 统 常 用 命 令》由会员分享,可在线阅读,更多相关《Linu 实验报告系 统 常 用 命 令(11页珍藏版)》请在金锄头文库上搜索。

1、Linux 操作系统报告单名 称:_系统常用命令 任课教师:专 业:一计算机科学与技术班级:姓 名:学 号: 完成日期:成 绩:一、实验目的及名称:1、了解Linux的命令及使用格式。2、熟悉LINUX的常用基本命令。二、实验内容及要求:1、系统环境变量查看和赋值,查看和设置shell提示符echo $PS1PS1二uh W d t #“2、使用man命令查看命令ls, cal, echo, halt和shutdown的用法3、使用type查看熟悉的命令,找出至少5个shell内置命令,并用help查看命令说明4、显示当前日期,格式化显示当前日期,并通过man查找资料,试用格式化输出da te

2、 +%Y.%m.%d% H:%M:%S Day %j5、使用cal命令6、试依次打开多个终端,执行who命令,查看输出结果的变化7、使用tty和who am i命令8、使用fdisk命令观察硬盘分区a. fdisk - lb. 进入 fdisk 命令界面:fdisk /dev/sda使用fdisk的m命令进行帮助;使用l命令观察常见分区的类型;使用p命令观察 /dev/sda上分区;使用q命令退出fdisk;其它命令要慎重(建议不试)。9、使用upt ime和w命令查看当前系统运行情况10、使用passwd变更当前用户密码,如果用桌面系统的窗口设置,在哪里?11、通过系统桌面系统,添加用户组g

3、test,并创建一个新用户test,且是属于gtest用户组, 并设置此用户账号,明天过期;在终端修改此用户的密码为88888812、使用echo命令,对比当参数加引号和不加引号后的输出结果echo We are studying UNIX OS now!necho - e We are studying UNIX OS now!necho - n We are studying UNIX OS now!n13、使用clear命令,理解其功能14、执行cd /命令,并使用ls命令,尽可能多的使用其选项,对比输出结果15、执行cd命令,并用pwd查看输出结果,是否是你期望的输出16、跳转到目录:

4、/lib,执行ls | grep p| more,观察理解输出结果,并分步执行Lsls | morels | grep pls | grep p | more17、使用su命令,切换到test账号,并修改其密码18、使用当前账号,执行cd /命令,思考输出结果,执行ls命令,思考结果三、实验步骤,实验结果与结论:1、系统环境变量查看和赋值,查看和设置shell提示符echo $PS1PS1=uh W d t #“2、使用man命令查看命令Is, cal, echo, halt和shutdown的用法LS( !)FSFLS(1)Is - ii d trectory contentsSWPS1SK

5、 CPTICM FILE.CESOUPT1CNLi t info rra t ion ahau L the Fl LE5 ( the cur ren t d iirectory by de fau E t). Sor t en tr ies a Iphhe t tea ly i f none of -cftuSLK nor sort.CAL( 3 )BSD ftiiera OjnniBiidu Mnua CAL( !)a - d i sp tay n ca kndarSWDPS1Sca -snjylSl r nuiilh yearCESOUPT1CNE f i sp lays s 5 irrp

6、 le ca kndar .3 f arguirent are Jiot spec i f ied , the current month es d tayed L The opt iuns are as Fn Hdws :-1Display s ijig k rrontli output . (Th i 5 s the de fau 11 t)-3Display prev/currenl/nent iiunth output t-sDisplay Sunday a s the first day of the(Th 15 鳥 thei- 2 -EFSFeon 1)MkEe ch-D - d

7、iip lay a k ine of tex.tSYNOPSISeclw ICTTKM . . STklKj.CESOUPTIOINOTE: yciir the Vis Evn ft?j IE i 15she I I may dtscr ibed jbout thehave i t 5 nwn ve r 5 ion of cho uh t ch ht】弋,P kare f-er id your ,h亡 F i $ npt iiui桁 i L supper t $ .vi I 0 5upi?e Je docuTTC n ta t ionEcho thetojlandurd nuiput.do n

8、o 1 outputthe tra i tng Jiculsm.rrawi s)LinuxSys tem Admin i s tra lor 5 Ninu shutdcyi - bring thesys temSVHPS1S/sbin/sbuldoun -t 5ec -arkbratfF L iiiE 地rn in百一皿譬共亡CESOUPTICNsbmdovn br ing5a re no l i f ied ttia lI t po!t5 ib le tode lay、 AE E prccethe sys tenn dcwi lji a secure way、 Al t lodged- in

9、 uer the sys teim H go big doui. and log inf 1) is h hjeked . shut t he system down i nerred ia le ly or after h Ji.pec i f icd ses are first no t i f ied that the systenn is go ing dcwi I ike vif 1) t he tint to save a chance loby the 5 igjia t SIGTERM Th i s g tve5 pregrjnrri ihe f i De he ing ed

10、e led , mi t t antiproce s s mg progranex i t c Icaji ly , etc. sbmdoun ioes i is Job byetc.tgna t I in Lhe iniit pre-3、使用type查看熟悉的命令,找出至少5个shell内置命令,rootPloca (hosttype cdcd i s a she I bu e 11 inrootPloca (host rioll?r tie tp cd cd; cd -L.-P dirQiajige the current d irectory to Di Fl. The var de f

11、 Ju 11 D3 Ft. The va r cab k QTATH de i i lie 5 Ltie the d irec lory conta in ing DI FL are separa Led by a co Lon (:, the curient d rec Lci y h i .e . ttien QDPATH i s not used .并用help查看命令说明iab 1 search AE Lf rjia t ixre d i rectory A nu H d irectory nant .1 f DI Ft beg in.s wi th$IO is the pa th f

12、or nuiiE s i ii CDPATIE i s the sarre a s q s Ea5h (/),5tie H opt ldii edab te_var 1 is nam . if ttia t var iab ie ha s a var ijb k . The -P opt inn says in teud of fo towing syjibo it to be fc l 丨dme讣.rootPloca (host rnoll?r typebreak i s a she H bu i t ejirootPloca (host rnoll?r tie Epbreak; break

13、 nExit from wi th in a ,FJthbrciA 制 山心L,If the d i rectory ii e not found, and the 註t , va Eue , tO U5E inks;then try the ord as var iab k ttien cd to the va iue of tha t th亡 phys ica J i rectory 5 true ture th亡 -L opt ton force5 symbo t ic Linksbreakbreakij LNT3L Ecop . I f N i s spec i f ied ,rcot

14、loca(host roolift type &eist t is a shf EI bu i I L tnrcotlocahost roolfl he Ep se1st t: se t a be fhkjnip tuvx&JF -d op t ion arg -a rk va r iab Ee i 41 ich are med i f t e d ji crea tei for ex per 1.-b ratify a f job te iniim t edji irmpd iu t Ey.-e Eket. hnrediale ly ii a CDinrnnd exits witti a non-zero itattis.-f Diab if f i le 1由馄 genera t tun (ghsbb ing.-h Ik ire n*e r the t ion o f joirmijids a-i they a re Evoked up.-k Al I a !;? igjirre-nt a 1gurre-nt 5 Jiie p ia cc-d in t ht env i ronireii t

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 建筑资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号