题海
让大学四年没有难题
首页
搜题
登陆
题目详情
填空题
利用sed命令显示/etc/fstab文件的非注释行
查看答案
学科:
Linux操作系统2023
时间:
2023-06-20 10:34:17
相关题目
相关作业
题目1
填空题
程序填空,以实现逐个显示当前目录下sh文件的内容 #! /bin/bash (1) do echo "Filename: $file" cat $file done
题目2
填空题
完善程序,以实现比较两个数大小 #!/bin/sh echo "Enter the first integer:" read first echo "Enter the second integer:" read second if (1) then echo "$first is greater than $second" elif (2) then echo "$first is less than $second" else echo "$first is equal to $second" fi
题目3
填空题
用test测试user1用户是否存在,不存在则创建一个并设置密码,存在则设置密码redhat
题目4
填空题
利用awk命令在屏幕输出/etc/passwd文件第1行第7列内容
题目5
填空题
利用sed命令显示/etc/fstab文件的非注释行
题目6
填空题
完成程序,实现计算1-100的和. #!/bin/bash i=1 sum=0 while [ $i -le 100 ] do (1) (2) done echo The sum is $sum
题目7
填空题
完善程序,实现函数调用. #!/bin/bash testfile( ) #函数定义 {if [ -d $1 ] then echo "$1 is a directory!" else echo "$1 is not a directory!" fi return } (1) #函数调用
题目8
填空题
阅读以下程序,回答问题. #!/bin/bash count=0 for i in * do if test -x $i then count=`expr $count + 1` fi done echo Total of $count files executable 第(5)行语句作用是____________.该脚本程序的功能是____________
题目9
填空题
完善以下程序,实现判断当前目录下是否存在某文件的功能. #!/bin/bash echo "Enter a file name:" read file if (1) then echo "File $file exists." fi
题目10
填空题
用sed命令打印/etc/passwd第1到第3行在屏幕输出
下载
题海APP
拍照搜题更快捷
海量题库
无搜索限制
快捷拍照搜题
扫描他!然后带走我~