摘要: sublime 左侧的目录sidebar的字体大小修改 windows和ubuntu下 windows下: 1.sublime的ctrl+shift+p,输入install 2.弹出后输入PackageResourceViewer 3.sublime的ctrl+shift+p输入PackageRes 阅读全文
posted @ 2021-08-05 12:39 安小白learning 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 查看当前用户/登录用户 基本语法 whoami / who am I 用户组 介绍 类似于角色,系统可以对有共性的多个用户进行统一的管理。 新增组 语法 groupadd 组名 案例演示 添加test和dev组 [root@songzuozhen ~]# groupadd test [root@so 阅读全文
posted @ 2021-08-04 15:59 安小白learning 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: [user] email = email.com name = username [credential] helper = store [alias] st = status ci = commit co = checkout br = branch lg = log -20 --graph -- 阅读全文
posted @ 2021-07-16 23:29 安小白learning 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Git reset Some times we made many commit during PR , we want to combine them to one commit We can see, I create 4 commits totally. 1 backup the branch 阅读全文
posted @ 2021-07-16 23:27 安小白learning 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 一、system perl也可以用system调用shell的命令,它和awk的system一样,返回值也是它调用的命令的退出状态. [root@AX3sp2 ~]# cat aa.pl #! /usr/bin/perl -w $file = "wt.pl"; system("ls -l wt.pl 阅读全文
posted @ 2021-07-16 10:05 安小白learning 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 1、centos/redhat下查看某个文件或命令属于哪个rpm包: $ yum provides /etc/passwd 或者 $ rpm -qf /etc/passwd 阅读全文
posted @ 2021-07-15 10:38 安小白learning 阅读(468) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/ahilll/article/details/82712694 foreach (<STDIN>){ chomp; if (/gao/){ print "$_ was matched 'gao'\n"; } } 上面使用了默认的参数变量$,它表示forea 阅读全文
posted @ 2021-07-15 10:35 安小白learning 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 最近工作中用到了 perl 脚本, 涉及到了参数传递, 但是参数传过来值为1. sub valid_value{ my $value = @_; print "$value\n"; } 第一点: perl 脚本函数传参 https://www.cnblogs.com/tobecrazy/archiv 阅读全文
posted @ 2021-07-15 01:06 安小白learning 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 最近编写一个perl脚本时候,编译出现了Global symbol “” requires explicit package name at ""的错误,后发现是由于使用use strict;造成,那么问题解决方法应该有两个: 一,使用use strict; ,修改其他代码,如下: 1,首先,检查你 阅读全文
posted @ 2021-07-15 00:40 安小白learning 阅读(269) 评论(0) 推荐(0) 编辑
摘要: MakeFile 1. .SILENT出现在目标“.SILENT ”的依赖列表中的文件,make在创建这些文件时,不打印出重建此文件所执行的命令。同样,给目标“.SILENT ”指定命令行是没有意义的。没有任何依赖文件的目标“.SILENT ”告诉make在执行过程中不打印任何执行的命令。 http 阅读全文
posted @ 2021-07-13 21:38 安小白learning 阅读(204) 评论(0) 推荐(0) 编辑