-bash: locate: command not found 出现这条警告原因在于locate命令没有安装,[root@localhost tmp]# yum -y install mlocate,输入命令安装,完成后,执行updatedb命令,即可。
2015-01-09
帮助命令
man 命令
man -f 命令==whereis 命令
example:
man 5 passwd
man 4 null
man 8 ifconfig
#数字代表查看等级
man 命令
man -f 命令==whereis 命令
example:
man 5 passwd
man 4 null
man 8 ifconfig
#数字代表查看等级
2015-01-08
字符串搜索命令
格式:
grep [选项] 字符串 文件名
#在文件当中匹配符合条件的字符串
选项:
-i 忽略大小写
-v 排除指定字符串
格式:
grep [选项] 字符串 文件名
#在文件当中匹配符合条件的字符串
选项:
-i 忽略大小写
-v 排除指定字符串
2015-01-08