linux 操作 git 快照

 

cat /proc/version 查看系统版本     查看防火墙  systemctl status firewalld

ps -ef | grep "uids" | grep -v grep | awk '{print $2}'  | xargs kill -9 批量杀进程

 

free -h 内存
cat /proc/cpuinfo|grep "physical id"|uniq| wc -l   物理cpu个数
cat /proc/cpuinfo|grep "cpu cores"|uniq    结果2 表示每个物理CPU有两个处理器
lscpu|grep "^CPU(s):"|head -n 1    结果4 表明系统中有 4 个 CPU 核心
 

securecrt设置自动连接
sessionOptions Terminal Anti-idle Send protocol NO-OP 20

 

# 查找占用 10250 端口的进程
sudo netstat -tulpn | grep 10250

  

ll -rt 排序展示
find . -name '*.txt' 查看磁盘 df -k
下载 sz xxx.jar     上传  transfer菜单 选择Zmodem upload list 再在命令行cd到你要保存的目录,然后点击transfer菜单的Start zmodem upload

df -m . 当前目录磁盘使用情况 -m 是兆 -h 是G df记录的是通过文件系统获取到的文件的大小,他比du强的地方就是能够看到已经删除的文件
ll -alh 查看目录下文件信息
 https://www.cnblogs.com/xingminghui/diary/2017/06/26/7079736.html

tar -xvf xxx.tar -C xxx
su - root sudo su -
rz 上传
systemctl stop firewalld.service
firewall-cmd --state

1,Connect SFTP Session
2,lcd H:\linuxos 设置下载位置
3,cd 到指定目录 get fileName 完成下载

技术性资料:
mvn clean install -Dmaven.test.skip=true -Ptest2
回滚到指定的版本
git reset --hard e377f60e28c8b84158
强制提交 覆盖远程资源
git push -f origin branch-xing-jkx-blocking0616
git clone http://code.paic.com.cn/git/app_insurance_service.git
git config --system --unset credential.helper

回滚上一个版本 head~1
凭据管理器 普通凭据 删除git
日志统计 grep 'policyServiceList.*result' order.log ,wc -l


清空日志 >
free -h 内存
# 查看每个物理CPU中core的个数(即核数)
cat /proc/cpuinfo, grep "cpu cores", uniq
# 查看物理CPU个数
cat /proc/cpuinfo, grep "physical id", sort, uniq, wc -l

jmap -dump:format=b,file=xmhFile.hprof 31022


root账户 解决yum安装报错 No URLs in mirrorlist
cd /etc/yum.repos.d/
修改所有的CentOS文件内容
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
更新yum源为阿里镜像
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all
yum makecache
yum安装测试是否可以yum安装
yum install wget –y

  

 

posted @ 2022-03-31 09:46  XUMT111  阅读(68)  评论(0)    收藏  举报