Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。Shell 是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。Ken Thompson 的 sh 是第一种 Unix Shell,Windows Explorer 是一个典型的图形界面 Shell。
Ubuntu 20.04.2默认不能进行root登录 1、查看系统版本 liujiaxin01@liujiaxin01-virtual-machine:~/Desktop$ whoami liujia
1、问题 [root@centos79 software]# dnf install R bash: dnf: command not found... 2、安装dnf [root@centos79
1、 [root@centos79 test]# cat a.txt a g r e u c j alike i x k like a f g liker a f h g liker s g e g
1、测试数据 [root@centos79 test]# cat a.txt a g e u c j alike i x k like w f g liker s g e g [root@centos
linux系统awk命令统计每一个用户进程占用的内存。 1、 [root@centos7 test2]# ps aux | awk 'NR != 1 {a[$1]+=$6} END{for(i
1、系统信息 liujiaxin01@liujiaxin01-virtual-machine:~/Desktop$ lsb_release -a No LSB modules are availabl
1、创建5个测试数据文件 [root@centos7 test]# dd if=/dev/zero bs=1M count=100 of=a.txt [root@centos7 test]# dd i
1、查看当前主机名 root@liujiaxin01-virtual-machine:~/Desktop# hostname liujiaxin01-virtual-machine ##太长 2、修改
1、linux系统中如何统计文件的行数 [root@centos79 test]# cat b.txt a g e d c j i x a [root@centos79 test]# wc -l b.
1、测试数据 [root@centos7 test]# cat a.txt 4 8 2 6 2、直接求和 [root@centos7 test]# awk '{sum += $1}END{pr
1、创建测试文件: [root@centos7 test]# touch {a..f}.txt [root@centos7 test]# ls a.txt b.txt c.txt d.txt e.tx
1、测试数据 [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g 2 5 d
1、 [root@centos79 test]# echo $a [root@centos79 test]# a=10 [root@centos79 test]# echo $a 10 [root@c
1、rename命令 [root@centos79 test]# ls a.mp4 dup1.mp4 dup2.mp4 dup4.mp4 [root@centos79 test]# rename mp
1、在所有行后添加空行 [root@centos79 test]# cat a.txt a g r e i x k like a f g liker s t 2 a b d s i [root@cen
1、测试数据 [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g 2 5 d s c w a r t e 4 s 2、将第2行替换为xxxx
1、 [root@centos79 test]# cat a.txt 1 2 3 4 5 6 7 8 9 10 [root@centos79 test]# sed '/2/ s/^/xxx/&
1、测试数据如下: [root@centos79 test]# ls a.txt b.txt [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s
1、删除开头的空行 [root@centos79 test]# cat a.txt a g r e i x k like a f g liker a g r e a f g liker [root@c
1、split按文件大小拆分文件 测试数据如下: [root@centos79 test]# dd if=/dev/zero bs=1M count=100 of=a.txt 100ʰ record
1、测试数据如下: [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g 2 5
linux系统中find命令 1、直接查找文件名 测试文件如下: [root@centos79 test]# ls 01.txt 02.csv 02.txt 03.csv 04.txt [root@c
1、查看环境变量 [root@centos79 tmp]# export | wc -l 29 [root@centos79 tmp]# export declare -x HISTCONTROL=&
1、测试数据 [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g 2 5 d
1、测试数据 [root@centos79 test]# ls a.txt b.txt [root@centos79 test]# cat a.txt a1 a2 a3 a4 a5 a6 a7 a8
1、tr命令 -s 参数将多个连续的字符压缩为一个字符 [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt aaabbbaaa
1、别名配置文件为 ~/.bashrc. 例如将:为‘echo $?’命令指定别名为q: [root@centos79 ~]# vim ~/.bashrc # .bashrc # User speci
1、测试数据 [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g 2 5 d s c w a r t e 4 s 2、删除匹配k的行及其后2
centos中安装那个cmake。 1、问题 [root@PC3 home]# cmake bash: cmake: command not found... Similar command is:
1、测试数据 [root@centos79 test]# cat a.txt a g a d g d a d g d g e g d a a a a d g d a a [root@centos79