会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
滴滴滴--你不是爱拖延,而是爱逃避
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
123
124
125
126
127
128
129
下一页
2017年9月16日
/etc/fstab文件损坏怎么办
摘要: 第一步首先关机挂载磁盘 第二步开机启动从BIOS,关键字F2 第三步光盘启动进入救援模式 第四步vi /mnt/sysimagimage/etc/fstab ,编辑完exit退出,reboot 进入光盘界面local drive进入系统,关机.去除光盘.启动按F2,选择Hard Drive,F10保
阅读全文
posted @ 2017-09-16 00:21 滴滴滴
阅读(289)
评论(0)
推荐(0)
2017年9月15日
/etc/fstab下的挂载类型defaults默认参数
摘要: 第一列到六列是设备或分区 挂载点 文件类型 default是挂载类型 dump 系统故障dump内存信息到硬盘 fsck 检查磁盘坏道等 defaults表示挂载类型,rw,suid.dev,exec,auto,nouser,async.大多是默认值.async是异步,写入内存.效率高,安全稍低.s
阅读全文
posted @ 2017-09-15 22:55 滴滴滴
阅读(10596)
评论(0)
推荐(0)
umount 强制卸载
摘要: umount -lf /mnt 强制卸载文件 -f Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.) -l Lazy unmount. Detach the filesy
阅读全文
posted @ 2017-09-15 21:48 滴滴滴
阅读(6104)
评论(0)
推荐(0)
linux 批量创建用户获取8位随机密码
摘要: #创建账号 分组不分组只有一列useradd无法添加三个账号 添加账号 获取密码 执行最后一句echo stu{4..6}|xargs -n 1|sed -r 's#(.*)#useradd \1;pass=$(date +%N|md5sum|cut -c 5-13);echo ${pass}|pa
阅读全文
posted @ 2017-09-15 21:16 滴滴滴
阅读(997)
评论(0)
推荐(0)
2017年9月14日
linux大小写转换
摘要: [root@ob2 mytmp]# cat aa2.txt|sed 's#[a-z]#\u&#g'ETH0 LINK ENCAP:ETHERNET HWADDR 00:0C:29:2B:B9:55 INET ADDR:192.168.79.130 BCAST:192.168.79.255 MASK:
阅读全文
posted @ 2017-09-14 19:27 滴滴滴
阅读(4696)
评论(0)
推荐(0)
find 命令一个命令多参数如何使用,????,perm
摘要: [root@ob2 mytmp]# find -mtime -7 -type f \( -name "*.html" -o -name "*.tar.gz" \)./02.html./03.html./tp_2017-09-143516.tar.gz./01.html 括号和代码间有空格 [root
阅读全文
posted @ 2017-09-14 17:22 滴滴滴
阅读(638)
评论(0)
推荐(0)
find 下参数的关系默认是and 一个参数多个选项可以用 -or
摘要: [root@ob2 mytmp]# find -type f -name "*.html" -or -name "*.txt"./02.html./aa.html./03.html./01.html./aa2.txt[root@ob2 mytmp]# find -type f -name "*.ht
阅读全文
posted @ 2017-09-14 16:56 滴滴滴
阅读(762)
评论(0)
推荐(0)
history统计命令最多的20条
摘要: 1.1.1 统计使用命令最多的20条 [root@ob1 ~]# history|awk '{ml[$2]++}END{for (i in ml) print i,ml[i]}'|sort -nrk 2|head -20 ps 20 grep 12 man 10 jobs 9 [root@ob1 ~
阅读全文
posted @ 2017-09-14 16:13 滴滴滴
阅读(672)
评论(0)
推荐(0)
第一关练习题统计网站最大访问量sed法,隐藏知识数组下标不能重复
摘要: 1.1.1 获取日志的最大top10,排序 获取两列到新的文件中第一次处理 sed截取字符串中间的内容,sed不支持贪婪匹配.找出图片在的列和图片大小到test1文件 本题需要输出三个指标:【访问次数】【访问次数*单个文件大小】【文件名(可以带URL)】 测试数据 59.33.26.105 --[0
阅读全文
posted @ 2017-09-14 16:08 滴滴滴
阅读(289)
评论(0)
推荐(0)
linux rename 和?????
摘要: [root@ob2 mytmp]# ls01.txt 02.txt 03.txt aa2.txt aa.sh aa.txt tp_2017-09-143516.tar.gz tt [root@ob2 mytmp]# rename .txt .html ??.txt[root@ob2 mytmp]#
阅读全文
posted @ 2017-09-14 16:05 滴滴滴
阅读(365)
评论(0)
推荐(0)
上一页
1
···
123
124
125
126
127
128
129
下一页
公告