当前位置:网站首页>shell课程总结
shell课程总结
2022-07-26 22:46:00 【掌九】
条件判断
1.判断当前系统上是否有用户的默认shell为bash; 如果有,就显示有多少个这类用户;否则,就显示没有这类用户;
2.写一个脚本 给定一个文件,比如/etc/inittab 判断这个文件中是否有空白行; 如果有,则显示其空白行数;否则,显示没有空白行。
3.写一个脚本 给定一个用户,判断其UID与GID是否一样 如果一样,就显示此用户为“good guy”;否则,就显示此用户为“bad guy”、
任务一:
任务二:
任务三:
边栏推荐
猜你喜欢
随机推荐
23nfs shared storage service
DevEco-Could not resolve com.huawei.ohos:hap:2.4.5.0.错误
String容器的底层实现
FTP service
RT thread learning
使用ECS和OSS搭建个人网盘
31正则表达式
MySQL单表查询练习
Create a daemon
Homework 1-4 learning notes
[cann training camp] enter media data processing (Part 2)
29shell function
Mysql数据库-面试题
33三剑客awk
C language foundation Gobang, very easy to understand, detailed explanation, easy to use
Constructor, copy function and destructor
DNS
Review of wireless sensor networks (Bilingual)
Shell (13) Three Musketeers
[mysql] what happens when things are executed concurrently?









