
linux
luckygl17
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux 操作
问题 chmod: changing permissions of ‘xxx’: Operation not permitted1 即使强大的root 也没有办法 删除Linux下UID数值越小的用户,权限越大,可以看到最小值为0,即root用户(查看当前用户id : id - g )2 其实chmod的底层实现是chattr命令,用此命的功能更为强大,甚至可以锁定文件,即使root用户也操作不了此文件3 chattr是用来更改文件属性,lsattr可用来查看文件的属性,执行命令lsattr原创 2020-08-28 17:22:10 · 192 阅读 · 0 评论 -
安装bcc-tools
一. 安装cmakecmake是一种跨平台的编译工具,安装过程如下:下载源码包:https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz解压:tar -xf cmake-3.8.0.tar.gz引导程序运行:./bootstrap编译gmake安装:make install环境配置:echo ‘export PATH=$PATH:/usr/loc...转载 2019-03-08 17:14:41 · 2139 阅读 · 0 评论 -
top 使用
top使用原文如上文章写的不错,推荐查看多核CPU命令mpstat -P ALL 和 sar -P ALL说明:sar -P ALL > aaa.txt 重定向输出内容到文件 aaa.txttop命令经常用来监控linux的系统状况,比如cpu、内存的使用,程序员基本都知道这个命令,但比较奇怪的是能用好它的人却很少,例如top监控视图中内存数值的含义就有不少的曲解。本文...转载 2019-02-19 14:41:40 · 449 阅读 · 0 评论 -
the difference between "./" and "sh"
In simple words, sh file1 executing sh command/executable with file1 as a parameter. *** In this case file1 doesn't require execute privilege*** as sh executable read and intercept the commands in the原创 2017-09-09 12:48:07 · 268 阅读 · 0 评论 -
ps
查询在跑sh进程like a tree ps -f -g<PID>the reasult like the following : PID TTY STAT TIME COMMAND28460 pts/26 Ss 0:00 bash29214 pts/26 R+ 0:00 \_ ps -f -g 3595 pts/25 Ss+ 0:00 bas原创 2017-09-13 14:07:15 · 337 阅读 · 0 评论 -
利用expect在linux shell 中的交互
#!bin/sh expect<<EOF set timeout 200 spawn scp res.zip root@192.168.160.12:/soft expect "password:" send "123456\r" expect eof EOF ps: send密码后面的’\r’必须要有原创 2017-08-25 13:42:18 · 304 阅读 · 0 评论 -
ssh暴力破解
原文出处:source周一上班centos服务器ssh不可用,web和数据库等应用不响应。好在vnc可以登录使用last命令查询,2号之前的登录信息已被清空,并且sshd文件在周六晚上被修改,周日晚上2点服务器被人远程重启使用less /var/log/messages命令2点结合last命令,判断2点重启后IPATABLES生效,有大量的ssh暴力破解的扫描信息,由于机器是测试环境,上面安装了OR原创 2017-07-28 19:43:50 · 446 阅读 · 0 评论 -
ubtntu16.04 install gcc
install gcc1 下载gcc48-c++_4.8.1-ubuntu14_amd64.deb:link 2 dpkg -i gcc48-c++_4.8.1-ubuntu14_amd64.deb原创 2017-04-27 11:18:31 · 753 阅读 · 0 评论 -
ubuntu 执行apt-get install ruby 不能正常install
如遇到如下问题:Reading package lists... DoneBuilding dependency tree Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet de原创 2017-05-17 17:29:16 · 1379 阅读 · 0 评论 -
linux commands for common
查看操作系统版本head -n 1 /etc/issue查看操作系统位数1、uname -a 2、file /bin/ls原创 2017-03-12 23:03:10 · 341 阅读 · 0 评论 -
ulimit
原文出处:link 网上有好多修改ulimit的文章,但大多仅限于对当前交互shell的修改,如果只是为了提高某一次执行脚本的文件句柄打开数,以下方法非常有效: 操作系统: CentOS 5.1 x86_64 1)修改当前交互终端的limit值 查询当前终端的文件句柄数: ulimit -n 回车,一般的系统默认的1024. 修改文件句柄数为65535,ulimit -n 65535.此时系统的文转载 2017-03-12 22:08:51 · 333 阅读 · 0 评论 -
nc yum install
how to install nc with yumrpm -q ncyou can try nc -l 9999 then nc -l -p 9999then before you downgrade the package you should check your system's kernel you can type :1、uname -a2、file /bin/lsfor 64原创 2017-03-12 21:42:36 · 946 阅读 · 0 评论 -
install nodejs centos
sources : [http://www.cnblogs.com/kevinchou/p/5405540.html]1 download nojs install package link : https://nodejs.org/dist/v5.10.1/ 2 according to system’s kernal to download the right version 3 then转载 2017-03-19 21:35:49 · 369 阅读 · 0 评论