Linux命令
ws-21
这个作者很懒,什么都没留下…
展开
-
while loading shared libraries:libkci.so.5:cannot open shared object file:No such file or directory
报错如上图所示:原因是zlib包版本太低,需要更新wget http://zlib.net/zlib-1.2.11.tar.gz 解压cd 到解压后的目录:cd zlib-1.2.11./configure makemake install再重新执行上图报错命令就正常了。原创 2021-06-03 17:00:16 · 518 阅读 · 0 评论 -
Another app is currently holding the yum lock
用yum安装包有时候会提示Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 128 M RSS (439 MB VSZ) Started: Fri Aug 28 08:08:31 2015 - 48:25 ago State : Sleeping, pid: 3462解决方法:rm原创 2021-04-21 16:39:40 · 149 阅读 · 0 评论 -
Linux快捷键
shift+G 直接跳到文件底部;control+A:跳到命令的行首control+E:跳到命令的行尾control+U:删除行首到光标位置的字符control+K:删除光标位置到行尾的字符原创 2021-04-20 15:35:57 · 80 阅读 · 0 评论 -
模拟并杀死僵尸进程
僵尸进程:僵尸顾名思义是已经死掉了的但还能时不时出来吓吓人的物体,比如一个数据库进程,意外宕机了,留下了一些僵尸进程,无法提供服务但又影响新服务的启动。我们怎么处理呢?首先我们模拟下将是进程的出现:然后编译生成一个可执行文件:gcc zombie.c -o zombie然后执行zombie文件[root@xtt192 tmp]# ./zombie in parent process, sleep for one miniute...zZ...in child process, and原创 2021-04-14 22:55:57 · 233 阅读 · 0 评论 -
linux之grep常用选项
查看文件夹下文件的个数:ls -l |grep "^-"|wc -l查看文件夹下文件夹的个数:ls -l |grep "^d"|wc -l这里还有些用于搜索的特殊符号:\< 和 \> 分别标注单词的开始与结尾。例如:grep man * 会匹配 ‘Batman'、‘manic'、‘man'等, grep '\<man' * 匹配‘manic'和‘man',但不是‘Batman', grep '\<man\>' 只匹配‘man',而不是‘Batman'或‘m原创 2021-03-25 13:57:20 · 258 阅读 · 0 评论 -
Linux scp命令详解
Linux scp命令用于Linux之间复制文件和目录。scp是 secure copy的缩写, scp是linux系统下基于ssh登陆进行安全的远程文件拷贝命令。scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S progra...原创 2019-08-28 12:01:39 · 291 阅读 · 0 评论 -
Linux之SSH互信搭建
1.准备三台(两台及以上)虚拟机2.在其中一台上执行命令:ssh-keygen -t rsa在/root/.ssh目录下查看[root@lhl ~]# ls /root/.ssh id_rsa id_rsa.pub known_hosts3.把公钥复制到其他服务器上ssh-copy-id -i /root/.ssh/id_rsa.pub 192.168.245.1...原创 2019-08-28 20:30:40 · 99 阅读 · 0 评论