欢迎来到天天文库
浏览记录
ID:22282601
大小:191.38 KB
页数:5页
时间:2018-10-28
《实验指导书--实验02linuxshell用户接口》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、实验二:LinuxShell用户接口实验学时:2实验类型:验证实验要求:必修一、实验目的通过本实验的学习,使学生掌握LinuxShell的使用方法。二、实验内容实验内容:实践LinuxShell的操作。三、实验原理、方法和手段U!无实验组织运行要求以学生自主训练为主的开放模式组织教学五、实验条件PC机六、实验步骤a)启动Ubuntu系统,打开终端;b)查看系统信息,并将以下查看P、j容重定向添加到文件systemlnfo.txt,最后淸屏.•1、查看系统当前所有进程;指令:①ps-e②sudonetstat—antup2
2、879•000000jbd2/sdal-82889•000000ext4-dio-unujpit3679•000000upstart-udev-br3729•000000udevd4449•000000udevd4459•000000udevd4869•000000kpsmoused5479•000000upstart-socket-6449•000000dbus-daemon6489•000000rsyslogd6809•000000dhclient3769tty4000000getty774tty5000000get
3、ty781tty2000000getty783tty3000000getty787tty6000000getty7999•000000cron8009•000000atd857ttyl000000login11169•000000vmujare-vmblock-11347ttyl000000vmtoolsd1182000000bash12479■000000flush-8:01323ttyl000000psrootjbuntul:~#ActiveUNIXdomainsockets(ijj/oservers)ProtoRe
4、fCntFlagsTypeStateI-Nodeunix5[]DGRAM7693unix2[]DGRAM10605unix2[]DGRAM8958unix2[]DGRAM8910unix2[]DGRAM7695unix3[]STREAMCONNECTED7683bus_socketunix3[]STREAMCONNECTED7682unix3[]STREAMCONNECTED7676unix3[]STREAMCONNECTED7675unix3[]STREAMCONNECTED7345unix3[]STREAMCONNE
5、CTED7341unix3[]DGRAM6982unix3[]DGRAM6981unix3[]STREAMCONNECTED6904unix3rlSTREAM_CONNECTED6901root@ubuntu:sudonetstat-antup■ActiveInternetconnections(servers;andestablished)ProtoRecv-QSend-QLocalAddressForeignAddnesPID/Programnameudp000.0.0.0:680.0.0.0:*
6、680/dhcli
7、ent32、查看当前系统信息(提示:uname命令);指令:uname-aroot@ubuntu:uname-aLinuxubuntu3.2.0-23-generic-pae#36-UbuntuSMPTueApr1022:19:09UTC2086i686i386GNU/LinuxrootKubuntu:c)3、查看硬盘分区情况;指令:fdisk-1root@ubuntu:~#fdisk-1Disk/dev/sda:21.5GB,21474836480bytes255heads,63sectors/track,2610cy
8、linders,total41943040sectorsUnits二sectorsof1*512二512bytesSectorsize(logical/physical):512bytes/512bytes1/0size(minimum/optimal):512bytes/512bytesDiskidentifier:0x000736c6DeviceBootStartEndBlocksIdSystem/dev/sdal氺2048398458871992192083Linux/dev/sda2398479344194099
9、110465295Extended/dev/sda53984793641940991104652832Linuxswap/Solari「oot@ubuntu:~#_4、查看/etc/fstab文件(提示:cat命令)指令:catetc/fstabIrootOubuntu:^#cat/etc/fstab#/etc/fs
此文档下载收益归作者所有