- 博客(6)
- 收藏
- 关注
原创 oh-my-zsh国内镜像安装
转载自己的文章:oh-my-zsh国内镜像安装 # step 1 sh -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 1522 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 3478 5
原创 查询Linux某命令来自哪个包
Debian:(Ubuntu等) 先安装apt-file sudo apt-get install -y apt-file apt-file update查询命令:(已查询ifconfig为例) root@debian ~ # apt-file search bin/ifconfig net-tools: /bin/ifconfig apt-file search -x(--r
2018-01-07 22:42:01 10271 1
原创 Linux安装screenfetch
方法1: yum install -y git cd /usr/local/src git clone https://github.com/KittyKatt/screenFetch.git cp screenFetch/screenfetch-dev /usr/local/bin/screenfetch chmod 755 /usr/local/bin/screenfetch cd
2018-01-06 16:50:51 4856
原创 Linux笔记(1)
自动获取ip地址:dhclient dhclient -r 重新获取 可用与虚拟机装完系统后自动设置ip vim /etc/sysconfig/network-scripts/ifcfg-eth0 (其他的不用改) ONBOOT=yes # 开机启动 BOOTPROTO=static # dhcp为自动获取ip IPADDR=10.xxx.xxx.xxx # NE
2018-01-05 22:39:15 284
原创 Linux学习笔记
[root@localhost ~]# su - test [test@localhost ~]$ sudo su - [root@localhost ~]# whoami chattr +i file # 只能查看文件,不能对文件进行其他操作 chattr -i file chattr +a file # 只能查看和追加内容,不能进行其他操作
2018-01-05 20:11:21 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人