Linux
文章平均质量分 68
houjguang
这个作者很懒,什么都没留下…
展开
-
Linux 自动设置IP
键入ifconfig后不显示网卡eth0时 执行 ifconfig eth0 up 执行 dhclient //自动获取ip2013-04-10 12:22:44 · 111 阅读 · 0 评论 -
grub 引导Win7
双硬盘分别安装win7、fedora,激活win7后导致grub引导失败,单独从硬盘启动正常,经验证是激活时安装的"SLIC"所导致,使用无SLIC安装的激活工具后,系统引导恢复正常...2015-07-31 17:26:47 · 102 阅读 · 0 评论 -
sles设置ssh客户端连接
切换到root账户 1、 vi /etc/sysconfig/SuSEfirewall2 2、 9.) # Which TCP services _on the firewall_ should be accessible from # untrusted networks? # # Format: space separated list of ports, port ranges ...2016-06-26 22:11:24 · 137 阅读 · 0 评论 -
Linux 环境变量
全局变量 显示变量命令:printenv,env 查看变量值: printenv JAVA_HOME 显示 /usr/java/jdk1.8.0_51 echo $JAVA_HOME 本地变量 定义本地变量后,变量只能在当前shell中使用 [@localhost ~]$ my_var="hello" [@localhost ~]$ echo $my_var hello ...原创 2016-10-26 14:29:31 · 70 阅读 · 0 评论 -
Bash中if语句的使用
1、if-then结构 使用方法: if command then command #次区域可以是多个命令行 fi 2、if-then-else if command then commands else commands fi else部分同then一样,可以使用多命令行,同时,else中还可以嵌套if-then-fi子模块 else的另一种写法,使用...2016-10-28 10:14:47 · 1181 阅读 · 0 评论 -
linux常用命令收集
ssh安装:yum install openssh-server netstat安装: yum install net-tools 开机启动设置 ssh chkconfig sshd on centos7 systemctl enable sshd 用户获取sudo权限 a)usermod -a -G wheel 用户名 b)vi /etc/sudoers ## S...原创 2018-05-10 11:19:12 · 92 阅读 · 0 评论