摘要: 命令行快捷键 通配符扩展 * – 匹配0或者多个字符 ? – 匹配任意单个字符 [0-9] – 匹配0-9范围内的数字 [abc] – 匹配该列表内的任意字符 [^abc] – 匹配除列表内字符外的所有字符 [root@localhost test]# ll total 0 [root@localhost test]# touc... 阅读全文
posted @ 2015-12-07 15:58 skyfly0772 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 查找总共10个字符 & z结尾的行。 [root@sky ~]# grep "^.\{9\}z$" /usr/share/dict/words Abdul-Aziz Austerlitz chattererz chervonetz Rabinowitz razzmatazz roquellorz Rosenkranz tau-saghyz [root@sky ... 阅读全文
posted @ 2015-12-02 17:13 skyfly0772 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1、启动服务 # yum install telnet-server # yum install xinetd # systemctl enable xinetd.service # systemctl enable telnet.socket # systemctl start telnet.socket # systemctl start xinetd(或service x... 阅读全文
posted @ 2015-12-01 10:27 skyfly0772 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: 虚拟机里面VT设置: 系统的vmx和kvm要开启: [root@sky ~]# cat /proc/cpuinfo | grep vmx flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2... 阅读全文
posted @ 2015-11-30 00:53 skyfly0772 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 如何搭建 & 扩容 LVM PV就是硬盘分区 VG是硬盘分区的集合 LV是VG的部分空间 [root@sky dev]# pvcreate /dev/sdd1 /dev/sdd4 /dev/sdd5 /dev/sdd6 /dev/sdd7 WARNING: ext4 signature detected on /dev/sdd1 at offset 1080. Wipe... 阅读全文
posted @ 2015-11-29 19:20 skyfly0772 阅读(1927) 评论(0) 推荐(0) 编辑
摘要: 学会磁盘分区、挂载文件系统、创建软硬链接、查找文件 [root@sky ~]# fdisk -l 磁盘 /dev/sda:21.5 GB, 21474836480 字节,41943040 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字... 阅读全文
posted @ 2015-11-29 17:34 skyfly0772 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: 使用at和cron做计划任务 at执行一次 [root@sky ~]# atq [root@sky ~]# at 00:25 at> cal >> /tmp/test-at.txt at> date /tmp/test-at.txt at> job 10 at Sun Nov 29 00:25:00 2015 [root@sky ~]# atq 10 Sun Nov 29... 阅读全文
posted @ 2015-11-29 01:37 skyfly0772 阅读(166) 评论(0) 推荐(0) 编辑
摘要: tar scp、sftp、rsync(两台主机之间文件的同步) 1006 tar -cvf TT.tar ./* 1009 tar -xvf ./TT.tar 1010 tar -zcvf TT.tar.gz ./* 1012 tar -zxvf TT.tar.gz 1013 tar -zxvf TT.tar.gz -C ./TT 1011 tar -tf... 阅读全文
posted @ 2015-11-29 00:01 skyfly0772 阅读(313) 评论(0) 推荐(0) 编辑
摘要: ip addr 查看IP ifconfig ip -s link show ens33 查看网卡流量 ip route 查看路由 route -n ping -c 3 192.168.1.1 tracepath 8.8.8.8 –n ... 阅读全文
posted @ 2015-11-28 22:15 skyfly0772 阅读(394) 评论(0) 推荐(0) 编辑
摘要: ssh root@192.168.1.128 = ssh 192.168.1.128 [root@sky ~]# w -f 12:57:14 up 15 min, 2 users, load average: 0.00, 0.09, 0.16 USER TTY LOGIN@ IDLE JCPU PCPU WHAT ... 阅读全文
posted @ 2015-11-28 21:40 skyfly0772 阅读(674) 评论(0) 推荐(0) 编辑