首页
博客
源码
资源
博客
源码
写文章
发布博客
发布资源
登录
X
Linux系统
相关资讯
热门
最新
代码人生
01-01 08:00
代码人生
linux系统中sed命令提取指定的行
linux系统中sed命令提取指定的行 1、测试数据如下: [root@centos79 test]# seq 10 > a.txt [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt 1 2 3 4 5 6 7 8 9 10 2、提取第2行 [root@centos79 test]# cat
102
代码人生
01-01 08:00
代码人生
Linux系统目录树结构
Linux系统目录树结构 Linux系统基本目录机构说明 /root 管理员root的家目录 /home 普通用户下的默认目录 /bin 普通用户下的命令文件 /sbin 管理员使用的命令文件 /usr/local 软件包的安装目录类似windows下的C:\Program File
122
代码人生
01-01 08:00
代码人生
linux系统中sed命令删除指定行后的下一行
linux系统中sed命令删除指定行后的下一行 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 s c E a R t e 4 s 2、删除包含字符k后的一行 [root@centos79 test]# cat a.txt 3 4 5 d g 3 s g 8 k s g
86
代码人生
01-01 08:00
代码人生
linux系统中删除文件的最后几行
linux系统中删除文件的最后几行 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 s c w a r t e 4 s 2、head命令删除最后三行 [root@centos79 test]# cat a.txt 3 4
108
代码人生
01-01 08:00
代码人生
linux系统中查看逻辑cpu个数、物理cpu个数、每个cpu的核心数、cpu型号
linux系统中查看逻辑cpu个数、物理cpu个数、每个cpu的核心数、cpu型号 1、逻辑cpu个数(线程数) [root@centos79 test]# cat /proc/cpuinfo | grep "processor" processor : 0 processor : 1 processor : 2 processor : 3 [root@centos79 t
95
代码人生
01-01 08:00
代码人生
linux系统中tee命令
linux系统中tee命令 tee命令将输出到屏幕上的内容保存至文件中。 1、 [root@centos7 test]# ls [root@centos7 test]# seq 3 1 2 3 [root@centos7 test]# ls [root@centos7 test]# seq 3 | tee a.txt 1 2 3 [root@centos7 test]# ls a
98
代码人生
01-01 08:00
代码人生
Linux系统SSH(Secure Shell Protocol)服务
Linux系统SSH(Secure Shell Protocol)服务 Linux系统SSH(Secure Shell Protocol)服务 一:什么是SSH服务 在数据传输前,SSH会对需要传输的数据进行加密,保证会话安全与会话中传输数据的安全,SSH客户端还包括一个远程拷贝命令scp 二:SSH的结构 SSH服务由服务端软件(openssh)和客户端(SSH、SecureCRT、Xshell)组成,SS
104
代码人生
01-01 08:00
代码人生
Linux系统学习命令详解
Linux系统学习命令详解 一. 命令+选项+查询目录之间必须用空格隔开 二. file 查看文件类型,在当前目录下无需加绝对路径,不在路径下需加绝对路径查看。 三. ls 默认列出当前目录下的文件 。 (1)ls+绝对路线列出制定目录下的文件,ls -l 列出目录文件的详细信息 (2)ls -lSh +目录 以人性化的方式显示出文件信息 (3)ls -t+
77
代码人生
01-01 08:00
代码人生
linux系统中实现文件指定列的互换
linux系统中实现文件指定列的互换 1、测试数据 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e 2、实现第一列和第三列的互换 [root@centos79 test3]# cat a.txt 3 5 6 2 s g 3 5 c f h e [root@centos79 test3]# awk
120
代码人生
01-01 08:00
代码人生
linux系统中如何删除^M
linux系统中如何删除^M 1、测试数据 [root@centos79 test]# cat -A a.txt SUN08^ISUN09^ISUN10^M$ dddd^I33333^Icdddd^M$ dddd^I11111^I55555^M$ 2、dos2unix删除 [root@centos79 test]# cat a.txt SUN08 SUN09
82
«
1
2
3
4
5
6
7
8
...
28
29
»