摘要:16进制的41转为十进制之后就是65,65对应ASCII码就是大A,同理97就是小a; [root@localhost ~]# nano test.txt [root@localhost ~]# cat test.txt Aa [root@localhost ~]# hexdump -C test.
阅读全文
摘要:shell脚本相关命令: set命令和脚本安全: Options: 1.shell相关练习: 比如去掉和恢复花括号扩展功能: [root@centos8 ~]# set +B(#去掉了大括号扩展功能) [root@centos8 ~]# echo {1..10} {1..10} [root@cent
阅读全文
摘要:1.编程语言 高级编程语言: 编译:高级语言-->编译器-->机器代码文件-->执行,如:C,C++(运行性能高) 解释:高级语言-->执行-->解释器-->机器代码,如:shell,python,php,JavaScript,perl(开发效率高) 2.Shell 脚本语言的基本用法 2.1第一个
阅读全文
摘要:文本处理三剑客 grep 命令主要对文本的(正则表达式)行基于模式进行过滤 sed:stream editor,文本编辑工具 awk:Linux上的实现gawk,文本报告生成器 4.1 文本处理三剑客之 grep grep: Global search REgular expression and
阅读全文
摘要:文件管理知识点回顾 groupadd -r -g 306 mysql useradd -u 306 -g -mysql -d /data/mysql -s sbin/nologin/ -r mysql chmod 600 file chown -R .mysql dir chgrp mysql di
阅读全文