1 Star 0 Fork 90

bluss / Linux-Tutorial

forked from 冷川 / Linux-Tutorial 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Bash-Other-Bash.md 903 Bytes
一键复制 编辑 原始数据 按行查看 历史
Judas.n 提交于 2016-08-18 16:12 . 2016-08-18完善VPN

Bash 其他常用命令

其他常用命令

  • 编辑 hosts 文件:vim /etc/hosts,添加内容格式:127.0.0.1 www.youmeek.com
  • RPM 文件操作命令:
    • 安装
      • rpm -i example.rpm,安装 example.rpm 包
      • rpm -iv example.rpm,安装 example.rpm 包并在安装过程中显示正在安装的文件信息
      • rpm -ivh example.rpm,安装 example.rpm 包并在安装过程中显示正在安装的文件信息及安装进度
    • 查询
      • rpm -qa | grep jdk,查看 jdk 是否被安装
    • 卸载
      • rpm -e jdk,卸载 jdk(一般卸载的时候都要先用 rpm -qa 看下整个软件的全名)
  • 查看某个配置文件,排除掉里面以 # 开头的注释内容:
    • grep '^[^#]' /etc/openvpn/server.conf
  • 查看某个配置文件,排除掉里面以 # 开头和 ; 开头的注释内容:
    • grep '^[^#;]' /etc/openvpn/server.conf

资料

Shell
1
https://gitee.com/bluss/Linux-Tutorial.git
git@gitee.com:bluss/Linux-Tutorial.git
bluss
Linux-Tutorial
Linux-Tutorial
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891