![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 53
stayfresh-
这个作者很懒,什么都没留下…
展开
-
Linux-课堂练习1
环境:win10 + redhat 51、创建组testgroup;groupadd testgroup2、创建用户a2012,先采用默认设置创建,然后使该用户加入testgroup组。useradd a2012usermod -g testgroup3、创建用户a2013,其用户主目录为/tmp/a2013,其主组为testgroup,附加组为users。useradd a2013usermod...原创 2018-04-17 22:06:18 · 493 阅读 · 0 评论 -
Linux shell程序设计实验2
编写一个shell过程完成如下功能(必须在脚本中使用函数)1.程序接收3个参数:$1/$2和$3,合并两个文件$1/$2为$3,并显示,三个文件均为文本文件。2.如果文件$3不存在,那么先报告缺少$3,然后将合并后的内容输出到mydoc.txt。如果有$3,就合并到$3。3.如果文件$2或文件$3不存在,那么先报告缺少$2/$3,只显示$1的内容。4.如果文件$1不存在,则提示缺少$1,要求重新运...原创 2018-04-22 13:53:50 · 3854 阅读 · 1 评论 -
Linux shell程序设计实验1
实验1-1设计如下一个菜单驱动程序Use one of the following options:P:To display current directoryS:To display the name of running fileD:To display today's date and present time (要求显示为:2017-04-26 05:45:12) L:To see the...原创 2018-04-21 16:46:35 · 2018 阅读 · 0 评论 -
Linux makefile实验
按照以下目录结构存放程序,然后制作makefile文件,把makefile文件内容填入表格中。现有一个程序由5个文件组成:/* ./main.c */ #include "mytool1.h" #include "mytool2.h" int main() { mytool1_print("hello mytool1!\n"); mytool2_print("hello mytool2!\n"...原创 2018-04-25 21:50:50 · 1822 阅读 · 0 评论