![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 75
liunx相关学习笔记
mChenQ
这个作者很懒,什么都没留下…
展开
-
排序sort与去重uniq
1.sort排序命令,将指定文件或者输入的内容排序后输出到标准输出格式sort option [file or input]选项说明常规选项: -b, --ignore-leading-blanks 忽略前导空格 -d, --dictionary-order 仅考虑空格和字母数字字符 -f, --ignore-case 忽略大小写,最终以大写比较 -g, --general-numeric-sort 以数字方式进行比较(文件中读取出来的都是字符原创 2020-12-11 14:37:49 · 1866 阅读 · 0 评论 -
ps,top,kill命令基本使用
1.ps查看进程用于监控系统进程# 查看所有进程信息$ ps aux | head#用户名 进程id VSZ=虚拟内存使用量 RSS=USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.0 126068 3616 ? Ss Oct29 14:45 /usr/lib/systemd/systemd --switched-root原创 2020-12-10 18:26:32 · 557 阅读 · 1 评论 -
scp远程复制命令
1.什么是scp使用 man scp查看文档描述如下 scp copies files between hosts on a network. It uses ssh(1) for data transfer, and uses the same authentication and provides the same security as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if they are ne原创 2020-12-09 17:15:11 · 424 阅读 · 0 评论 -
linux三剑客与正则
一、正则表达式#参考https://www.cnblogs.com/chengmo/archive/2010/10/10/1847287.html1.1 正则的分类1、基本正则 BREs (Basic Regular Expression )2、扩展正则 EREs (Extended Regular Expression)3、Perl正则 (Perl Regular Expression )4、python 正则1.2 正则优先级从上到下计算优先级运算符描述\转义原创 2020-12-09 15:43:44 · 320 阅读 · 0 评论 -
shell基础
1.运行shell脚本的两种方法# 第一种chmod +x 路径(使用文件有执行权限)然后 ./路径 # 第二种/bin/sh 路径(sh可以是其它编译器)2.shell变量a.定义变量:变量名和=号之间不能有空格必须以字母开头不能使用bash里的关键字其它同其它高级语言b.使用变量:在变量面前加一个或者或者或者{}符号即可最好使用 ${} 这种形式c.只读变量myurl="www.baidu.com"# 使用readonly 将变量设置为只读readonly myu原创 2020-12-07 16:53:36 · 147 阅读 · 0 评论