加载中
Linux 循环查找图片并copy到新的目录

#!/bin/bash for i in $(<reg_num.txt); do #echo $i; find ./sb -name $i*.jpg -exec cp -r {} ./sb_new/ \; done...

2016/12/18 21:19
330
网络时间同步(Centos)

安装ntpdate工具 yum -y install ntp ntpdate 设置系统时间与网络时间同步 ntpdate cn.pool.ntp.org 或 ntpdate ntp.api.bz 将系统时间写入硬件时间 hwclock –w 4.查看硬件时 hwclock -sho...

02/06 11:40
28
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. 解决linux内核升级后的nvidia驱动问...

2020/12/15 16:23
4.6K
ubuntu 1804 禁止更新内核

vi /etc/apt/apt.conf.d/10periodic 修改前: APT::Periodic::Update-Package-Lists "1"; ##1代表更新 APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterv...

2020/07/31 16:18
2K
Ubuntu16.04 LTS 安装VNC Server开启远程桌面

Ubuntu 16.04 LTS 安装VNC,在百度和谷歌找了很多教程,不是太老,就是说的驴唇不对马嘴,所以忍不住写一些以正视听。 VNC有很多选择,VNC4server,tigervncserver等等,都不推荐,难装又难用...

2020/03/25 09:23
5.4K
使用Windows 10远程桌面vnc-any 远程控制Ubuntu 16.04

使用Windows 10远程控制Ubuntu 16.04,网上很多需要安装xfce桌面的。今天介绍一下,不需要安装其他桌面,使用Ubuntu 16.04自带桌面,漂亮美观。 Ubuntu16.04端: 1、打开终端,安装xrdp,vncs...

2020/03/06 15:16
4.6K
ubuntu 图片格式批量转换,批量处理

可以用 PhotoShop 或 GIMP 这样的软件来处理图像。没人禁止你这么做,就像没人禁止你用大炮打蚊子一样。不过依我看,打蚊子最好还是用电蚊拍,而要处理大量图像的话,我推荐 ImageMagick。 ...

2019/11/22 14:58
1.1K
shell脚本输出ip,mac

#!/bin/bash ip=`ip address |grep inet[^6]|grep -vE "127.0.0.1|docker"|sed -r 's# inet (.*)/[0-9].*#\1#'` mac=`ip address|grep eth[0-9] -A1|grep link/ether|sed -r 's# link/ether ...

2019/08/16 10:38
418
linux shell 脚本监控磁盘

df -h | grep -E "/data|/factory" | tr "%" " " | awk '$5>70{print $1,$2,$4,$5"%",$6}' 输出例子: /dev/mmc1 11G 1.4G 86% /data 程序端可通过调用该脚本判断,当百分比大于某个阈值或可...

2019/08/16 09:36
308
centos 卸载python2之后的解决办法

网上看到有同学yum不能使用的消息,出现了下面的结果 无赖的使用了网上的很多方法,还是不行。 于是我卸载了python和yum,觉得自己重新安装python和yum。 步骤1:卸载python rpm -qa|grep p...

2018/11/16 09:14
1W
ubuntu 16.04 vim乱码

在/etc/vim/vimrc 的文件末尾增加以下内容即可 set fileencodings=utf-8,gb18030 set termencoding=utf-8 set encoding=prc......

2018/09/27 16:39
184
centOS安装telnet(在线和rpm包安装)

centOS安装telnet(在线和rpm包安装)

2017/12/10 18:07
1.1W
shell 教程一:变量,字符串,传参

一,hello shell   vi hello.sh 写如下内容:   linux@ubuntu:~/test_shell$ cat hello.sh #!/bin/bash echo "hello shell!" 注意这时的.sh文件没有执行权限,要更改为可执行状态   linu...

2017/12/07 14:15
107
Linux防火墙(Iptables)的开启与关闭

Linux防火墙(Iptables)的开启与关闭:iptables是Linux内核集成的IP信息包过滤系统,如果 Linux 系统连接到因特网或LAN、服务器或连接LAN和因特网的代理服务器,则该系统有利于在Linux上更好地...

2016/10/18 23:22
338
Ubuntu(Linux) 下 unzip 命令使用详解

1.功能作用:解压缩zip文件 2.位置:/usr/bin/unzip 3.格式用法:unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir] 4.主要参数 -c 将解压缩的结果显示到屏幕上,并对...

2016/08/05 00:50
6.8K
com.aspose 生成pdf在linux生成PDF乱码解决(window环境正常)

com.aspose 生成pdf在linux生成PDF乱码解决(window环境正常)

没有更多内容

加载失败,请刷新页面

返回顶部
顶部