随笔分类 -  Linux

上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要:2018-03-01 10:01:06 例1:passwd username 直接修改用户的密码普通用户可以且只能修改自己的密码,root用户可以修改任何人的密码[root@localhost ~]# passwd chenChanging password for user chen.New pa 阅读全文
posted @ 2018-03-01 10:04 开始认识 阅读(1543) 评论(0) 推荐(0)
摘要:个人原创,转载请注明,否则依法追究法律责任 2018-02-28 16:01:26 tcpdump 倾倒网络传输数据,直接启动tcpdump将监视第一个网络接口上所有流过的数据包。 1 不接任何参数,表示监听本机的eth0网卡。 如果不指定网卡,默认tcpdump只会监视第一个网络接口,一般是eth 阅读全文
posted @ 2018-02-28 16:12 开始认识 阅读(1205) 评论(0) 推荐(0)
摘要:2018-02-28 15:29:26 [root@linux ~]# routeKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface192.168.10.0 * 255.255.255.0 U 0 阅读全文
posted @ 2018-02-28 15:29 开始认识 阅读(2123) 评论(0) 推荐(0)
摘要:windows中是自带的,不用安装,直接在cmd窗口直接使用 Linux中需要安装: yum -y install bind-utils nslookup www.baidu.com [root@bogon ~]# nslookup www.baidu.comServer: 192.168.13.2 阅读全文
posted @ 2018-02-28 14:40 开始认识 阅读(6897) 评论(0) 推荐(0)
摘要:2018-02-28 10:43:18 linux压缩和解压缩命令大全 tar命令:tar本身仅是一个打包的命令,不具有压缩的功能。打包后源文件仍然存在,具有将多个文件归档成一个文件的功能[root@shiyan a]# ls a3 a4 a5 a6 a7 a8 a9[root@shiyan a]# 阅读全文
posted @ 2018-02-28 10:43 开始认识 阅读(286) 评论(0) 推荐(0)
摘要:1, 挂载U盘和USB接口的移动硬盘一样对linux系统而言U盘也是当作SCSI设备对待的。使用方法和移动硬盘完全一样。插入U盘之前[root at pldyrouter root]# fdisk -l 插入U盘后,再用fdisk -l 查看系统的硬盘和硬盘分区情况。 [root at pldyro 阅读全文
posted @ 2018-02-28 09:48 开始认识 阅读(796) 评论(0) 推荐(0)
摘要:25.1 由于sort默认是把结果按照行排序后输出到标准输出,所以需要用重定向才能将结果写入文件,形如sort filename > newfile[root@shiyan a]# cat a.txt aaaaaa[root@shiyan a]# sort a.txt >c.txt 在重定向前会自动 阅读全文
posted @ 2018-02-27 16:55 开始认识 阅读(257) 评论(0) 推荐(0)
摘要:find命令 2018-2-27日整理完成 1,结合-exec的用法 查当前目录下的所有普通文件,并在 -exec 选项中使用ls -l命令将它们列出# find . -type f -exec ls -l {} \; -rw-r–r– 1 root root 34928 2003-02-25 ./ 阅读全文
posted @ 2018-02-27 11:39 开始认识 阅读(335) 评论(0) 推荐(0)
摘要:1,只能对文件进行追加操作: [root@localhost tmp]# cat yum.log 22222222222222[root@localhost tmp]# chattr +a yum.log > chattr -a yum.log 取消该文件的特殊权限[root@localhost t 阅读全文
posted @ 2018-02-26 14:26 开始认识 阅读(1802) 评论(0) 推荐(0)
摘要:Linux中安装字体 查看系统中的字体 查看系统中的字体 fc-list 查看系统中的中文字体 fc-list :lang=zh将然后将字体文件拷贝到/usr/share/fonts/中 cp aa.ttl /usr/share/fonts cd /usr/lshare/fonts mkfontsc 阅读全文
posted @ 2018-01-15 10:34 开始认识 阅读(36040) 评论(0) 推荐(0)
摘要:centos6 minilize system will not scp command install: yum -y install openssh-clients and another machine has to install too !!!!!! 阅读全文
posted @ 2017-12-13 11:41 开始认识 阅读(182) 评论(0) 推荐(0)
摘要:author:headsen chen date:2017-12-07 16:33:40 notice:This article is created by headsen chen ,and not allowed to copy,or you will counter law question. 阅读全文
posted @ 2017-12-07 16:58 开始认识 阅读(278) 评论(0) 推荐(0)
摘要:链接文件:ln 软链接:ln –s 旧文件 新文件(相对于 windows 下的快捷方式,每个文件一个 inode) 硬链接:ln 旧文件 新文件(两个文件一个 inode) 1,软硬链接关于文件的情况 [root@localhost wl]# ls a [root@localhost wl]# l 阅读全文
posted @ 2017-12-01 17:50 开始认识 阅读(236) 评论(0) 推荐(0)
摘要:命令: mount -o loop RHEL5.6-i386.iso /var/www/html/rhel5 (将文件作为一个硬盘分区来挂载) -o options 主要用来描述设备或档案的挂接方式。常用的参数有: loop:用来把一个文件当成硬盘分区挂接上系统 ro:采用只读方式挂接设备 rw:采 阅读全文
posted @ 2017-12-01 16:45 开始认识 阅读(858) 评论(0) 推荐(0)
摘要:Nginx的安装: author :headsen chen at 2017-11-30 16:49:06 个人原创,经典中的经典 1,前期环境准备 yum -y install gcc* openssl* pcre* zlib zlib-devel2,上传Nginx的安装包:tar fx ngin 阅读全文
posted @ 2017-11-30 16:50 开始认识 阅读(298) 评论(0) 推荐(0)
摘要:author:headsen chen date : 2017-11-29 15:46:39 notice:created by headsen chen himself and not allowed to copy,or will done by low. sshpass全国超级使用第一人 应用 阅读全文
posted @ 2017-11-29 16:36 开始认识 阅读(98973) 评论(1) 推荐(3)
摘要:install: yum - y install dhcp modify : vim /etc/dhcp/dhcpd.conf ddns-update-style none;ignore client-updates;subnet 10.0.0.0 netmask 255.0.0.0 { range 阅读全文
posted @ 2017-11-28 17:06 开始认识 阅读(2387) 评论(0) 推荐(0)
摘要:故障现象: 已经三关,并查了并没有 00:0c:29:d7:00:35 的mac地址在使用,无论怎么修改该地址,总是报错 解决方法(将下列文件的四行注释掉): vim /etc/sysconfig/network-scripts/ifup-eth #if ! arping -q -c 2 -w 3 阅读全文
posted @ 2017-11-24 10:54 开始认识 阅读(257) 评论(0) 推荐(0)
摘要:1,加载模板 modprobe kvm-intel 2,查看模板是否加载:lsmod |grep kvm 阅读全文
posted @ 2017-11-21 16:47 开始认识 阅读(154) 评论(0) 推荐(0)
摘要:author: headsen chen date: 2017-11-21 13:34:23 个人原创 重启网卡后,会造成网卡失效,报错如下: Bringing up interface eth0: Error: Connection activation failed: Master connec 阅读全文
posted @ 2017-11-21 13:36 开始认识 阅读(17018) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页