- 博客(6)
- 收藏
- 关注
原创 oh-my-zsh国内镜像安装
转载自己的文章:oh-my-zsh国内镜像安装# step 1sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh | sed 's|^REPO=.*|REPO=${REPO:-mirrors/oh-my-zsh}|g' | sed 's|^REMOTE=.*|REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}|g')"# step 2.
2021-12-01 10:28:51
1490
1
原创 Golang学习笔记:循环输入
题目是一道简单的题:计算a+b的和每行包含两个整数a和b对于每行输入对应输出一行a和b的和输入1 5输出6这题的重点可以输入很多次c++很容易实现#include <stdio.h> int main(){ int a, b; while(scanf("%d %d", &a, &b)!=EOF) { printf...
2019-04-18 23:59:08
3387
5
原创 查询Linux某命令来自哪个包
Debian:(Ubuntu等)先安装apt-filesudo apt-get install -y apt-fileapt-file update查询命令:(已查询ifconfig为例)root@debian ~ # apt-file search bin/ifconfignet-tools: /bin/ifconfigapt-file search -x(--r
2018-01-07 22:42:01
10217
1
原创 Linux安装screenfetch
方法1:yum install -y gitcd /usr/local/srcgit clone https://github.com/KittyKatt/screenFetch.gitcp screenFetch/screenfetch-dev /usr/local/bin/screenfetchchmod 755 /usr/local/bin/screenfetchcd
2018-01-06 16:50:51
4827
原创 Linux笔记(1)
自动获取ip地址:dhclientdhclient -r 重新获取可用与虚拟机装完系统后自动设置ipvim /etc/sysconfig/network-scripts/ifcfg-eth0(其他的不用改)ONBOOT=yes # 开机启动BOOTPROTO=static # dhcp为自动获取ipIPADDR=10.xxx.xxx.xxx # NE
2018-01-05 22:39:15
254
原创 Linux学习笔记
[root@localhost ~]# su - test[test@localhost ~]$ sudo su -[root@localhost ~]# whoamichattr +i file # 只能查看文件,不能对文件进行其他操作chattr -i file chattr +a file # 只能查看和追加内容,不能进行其他操作
2018-01-05 20:11:21
389
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人