随笔分类 -  linux基础四

摘要:#!/bin/bash # #********************************************** #Author: lanfeng #QQ: 447320311 #Date: 2020-07-12 #FileName: createuser.sh #Version: 1.1 阅读全文
posted @ 2020-07-12 23:50 树在地上 阅读(405) 评论(0) 推荐(0)
摘要:autocmd BufNewFile *.sh exec ":call SetTitle()" func SetTitle() if expand("%:e") == 'sh' call setline(1,"#!/bin/bash") call setline(2,"#") call setlin 阅读全文
posted @ 2020-07-12 23:10 树在地上 阅读(301) 评论(0) 推荐(0)
摘要:w -h|tr -s " "|cut -d " " -f3|sort|uniq -c|sort -nr 阅读全文
posted @ 2020-07-11 17:16 树在地上 阅读(348) 评论(0) 推荐(0)
摘要:[root@centos7 data]#grep -v "/sbin/nologin" /etc/passwd root:x:0:0:root:/root:/bin/bash sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin: 阅读全文
posted @ 2020-07-11 16:56 树在地上 阅读(491) 评论(0) 推荐(0)
摘要:cut -d: -f1,3,7 /etc/passwd |sort -t: -k2 -n | tail -1 阅读全文
posted @ 2020-07-11 16:01 树在地上 阅读(351) 评论(0) 推荐(0)