摘要:
特殊权限set_uid 就是u添加s权限 set_gid 就是g添加s权限 sticky_bit 就是o添加s权限 chmod u-x filechmod g+wchmod a+x file 就是主组其他用户(ugo)都加上x权限chown -R root:aming dir ... 阅读全文
posted @ 2015-06-28 23:45
chenshoubiao
阅读(631)
评论(0)
推荐(0)
摘要:
小技巧1.删除0字节文件find -type f -size 0 -exec rm -rf {} \;2.查看进程按内存从大到小排列ps -e -o “%C : %p : %z : %a”|sort -k5 -nr3.按cpu利用率从大到小排列ps -e -o “%C : %p : ... 阅读全文
posted @ 2015-06-28 23:44
chenshoubiao
阅读(270)
评论(0)
推荐(0)
摘要:
搜文件which 搜索一些命令 (echo $PATH 这下面的路径下搜索)whereis 在固定的地方可以模糊匹配locate updatedb yum install -y mlocate (查的是后面生成的那个数据库) updatedb(更新库,系统每天更新一次)find ... 阅读全文
posted @ 2015-06-28 23:42
chenshoubiao
阅读(289)
评论(0)
推荐(0)
摘要:
软连接touch /root/aminglinux.comln -s /root/aminglinux.com linuxcat /tmp/333/linuxecho "ajfohdfodhf" > /root/aminglinuxcat /tmp/333/linux硬连接只能在同一个分区下(每个分... 阅读全文
posted @ 2015-06-28 23:41
chenshoubiao
阅读(207)
评论(0)
推荐(0)
摘要:
和文本相关的命令cat 正向显示文本tac 反向显示文本more 可以一步一步显示文本文件less 还可以往上看。几个快捷键:j(往下看), k (往上看), g(定位最上), G(定位最下), ctrl+b,b,前 ctrl+f,f 后 空格head -n 要显示前面多少行tail -... 阅读全文
posted @ 2015-06-28 23:40
chenshoubiao
阅读(135)
评论(0)
推荐(0)
摘要:
和文本相关的命令cat 正向显示文本tac 反向显示文本more 可以一步一步显示文本文件less 还可以往上看。几个快捷键:j(往下看), k (往上看), g(定位最上), G(定位最下), ctrl+b,b,前 ctrl+f,f 后 空格head -n 要显示前面多少行tail -... 阅读全文
posted @ 2015-06-28 23:37
chenshoubiao
阅读(210)
评论(0)
推荐(0)
摘要:
网卡配置文件 (1)/etc/sysconfig/network-scripts/ifcfg-interface-name 配置文件ifcfg-interface-name包含了初始化接口所需的大部分详细信息。其中interface-name将根据网卡的类型和排序而不同,一般其名字为eth0、eth... 阅读全文
posted @ 2015-06-28 23:36
chenshoubiao
阅读(604)
评论(0)
推荐(0)
摘要:
ssh配置文件vi /etc/ssh/sshd_configputty下载http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html公钥加密,私钥解密打开puTTYgen 点击genenrate 生成公钥设置一下密码点击save ... 阅读全文
posted @ 2015-06-28 23:35
chenshoubiao
阅读(777)
评论(0)
推荐(0)
摘要:
tar -cvf test.tar testtar -xvf test.tartar -tf test.tar 查看包的内容tar -zcvf 1.tar.gz 1tar -zxvf 1.tar.gztar -jcvf 1.tar.bz2 1tar -jxvf 1.tar.bz2tar -... 阅读全文
posted @ 2015-06-28 23:34
chenshoubiao
阅读(160)
评论(0)
推荐(0)
摘要:
系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # ls... 阅读全文
posted @ 2015-06-28 23:33
chenshoubiao
阅读(1211)
评论(0)
推荐(0)

浙公网安备 33010602011771号