wswj
wswj
全部文章
练习
Linux基础知识(41)
未归档(1)
归档
标签
去牛客网
登录
/
注册
wswj的博客
无所畏惧
全部文章
/ 练习
(共4篇)
mysql 练习
1、 导入hellodb.sql生成数据库 mysql -uroot < hellodb_innodb.sql (1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄 select Name,Age from students where Age >...
2021-10-18
0
244
正则应用
1.利用sed 取出ifconfig命令中本机的IPv4地址 [root@www ~]# ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.88.11...
2021-07-29
0
317
字符处理
统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 awk -F':' '!/\/sbin\/nologin/{++i;print $1}END{print i}' /etc/passwd sed -nr '/\<sbin\/no...
2021-07-21
0
391
Linux基础练习
1、显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录 ls /etc/[^a-z][[:alpha:]]* 2、复制/etc目录下所有以p开头,以非数字结尾的文件或目录到/tmp/mytest1目录中。 mkdir /tmp/mytest1; cp -a&nb...
2021-07-13
0
394