系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# ls...
分类:
其他好文 时间:
2014-07-31 19:53:07
阅读次数:
253
GRUB加密:MD5加密[root@Server3~]#grub-md5-crypt
Password:
Retypepassword:
$1$TJL.q1$4PnBp7pXRsN/BZhrkbSyn1
[root@Server3~]#[root@Server3~]#cat/boot/grub/grub.conf
#grub.confgeneratedbyanaconda
#
#Notethatyoudonothavetorerungrubaftermakingchangestothisfile
#..
分类:
其他好文 时间:
2014-07-31 13:37:27
阅读次数:
253
mkisofs -r -J -V Beini-Custom -v --boot-info-table --boot-load-size 4 -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o ../beini.iso beinisee...
分类:
系统相关 时间:
2014-07-31 12:59:06
阅读次数:
478
1. 取出两个文件的并集(重复的行只保留一份)2. 取出两个文件的交集(只留下同时存在于两个文件中的文件)3. 删除交集,留下其他的行1. cat file1 file2 | sort | uniq2. cat file1 file2 | sort | uniq -d3. cat file1 fil...
分类:
系统相关 时间:
2014-07-30 23:24:25
阅读次数:
376
array_count_values() 函数用于统计数组中所有值出现的次数。本函数返回一个数组,其元素的键名是原数组的值,键值是该值在原数组中出现的次数。例子输出:Array ( [Cat] => 1 [Dog] => 2 [Horse] => 1 )
分类:
其他好文 时间:
2014-07-30 20:37:04
阅读次数:
299
1、安装DHCPTFTPyum-yinstalldhcptftp-servertftp2、配置DHCP文件cat>/etc/dhcp/dhcpd.conf<<EOF
#
optiondomain-name"dwhd.org";
#设置DHCP的DNS
optiondomain-name-servers172.16.0.1,114.114.114.114;
#设置DHCP分配出去的IP超时时间单位秒
default-lease-time8644..
分类:
其他好文 时间:
2014-07-30 17:47:34
阅读次数:
447
操作系统环境[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.18-371.9.1.el5#1SMPTueJun1017:49:56EDT2014x86_64x86_64x86_64GNU/Linux[root@localhost~]#cat/etc/issueCentOSrelease5.10(Final)Kernel\ronan\m[root@localhost~]#PS:以下操作我只在如上系统进行验证..
分类:
其他好文 时间:
2014-07-30 15:01:54
阅读次数:
253
环境介绍root@ubuntu-1:~#uname-aLinuxubuntu-1.2303.2.0-29-generic#46-UbuntuSMPFriJul2717:03:23UTC2012x86_64x86_64x86_64GNU/Linuxroot@ubuntu-1:~#cat/etc/issueUbuntu12.04.1LTS\n\lroot@ubuntu-1:~#PS:以下操作我只在如上系统操作,仅供参考1.安装GraphicsMagickGraph..
分类:
其他好文 时间:
2014-07-30 15:00:04
阅读次数:
267
原理shell代码如下:#!/bin/sh
cat../androidsrc|whilereadline
do
ip=$(echo$line|awk‘{print$1}‘)
srcdir=$(echo$line|awk‘{print$2}‘)
destdir=$(echo$line|awk‘{print$3}‘)
user=$(echo$line|awk‘{print$4}‘)
port=$(echo$line|awk‘{print$5}‘)
build=$(echo$line|awk‘{pr..
分类:
其他好文 时间:
2014-07-30 12:30:44
阅读次数:
337
一、文件内容操作(/etc/passwd)1.cat 查看文件内容比较少的2.more 可以分页显示3.less 比more更全面4.head 默认显示文件头10行 -n数字显示头n行5.tail 默认显示文件尾10行 -n数字 显示尾n行 -f 实时查看6.wc 统计7.grep 输出包含指定字符串的行 -i 忽略大小写 -v 取反 ^root ..
分类:
系统相关 时间:
2014-07-30 03:26:53
阅读次数:
671