linux 文本搜索 grep
发表于|更新于|others
|浏览量:
实例
1 | php -i|grep php.ini |
前面是命令 后面是要搜索匹配的值
文章作者: developer
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
相关推荐
2018-05-05
linux 常用 命令
df检查文件系统的磁盘空间占用情况 wget下载文件 tar123解压:tar -zxvf /usr/local/test.tar.gz压缩:tar zcvf FileName.tar.gz DirName ps查看进程 12ps -ax ps -ax | less find查找文件 1find / -iname "*a.txt*"
2018-05-09
linux ubuntu 启用 ssh sftp
stfp底层使用ssh协议所以只要启用ssh即可网上一般的教程支离破碎,难以应用于实际工作以下给出正确做法 1234567891. 编辑配置文件vim /etc/ssh/sshd_config2. 具体内容PermitRootLogin truePasswordAuthentication yes 3. 重启sshservice sshd restart 发现有3个错误 123456Could not load host key: /etc/ssh/ssh_host_dsa_keyCould not load host key: /etc/ssh/ssh_host_ecdsa_keyCould not load host key: /etc/ssh/ssh_host_ed25519_key * Restarting OpenBSD Secure Shell server sshd Could not load host key: /...
2018-02-19
linux zip命令 压缩 不加目录
进入压缩目录 zip -r data.zip *
2019-11-19
linux 常用命令
lsofhttps://www.jianshu.com/p/a3aa6b01b2e1list openfiles 1lsof -i :22 创建用户https://blog.csdn.net/taolusi/article/details/81304057 12adduser:会自动为创建的用户指定主目录、系统shell版本,会在创建时输入用户密码。useradd:需要使用参数选项指定上述基本设置,如果不使用任何参数,则创建的用户无密码、无主目录、没有指定shell版本。 time获取命令执行时间 1234time python3 Oreal.pyreal 0m12.471suser 0m9.756ssys 0m0.251s dnf软件源列表12345# 当前启用的dnf repolist# 全部源dnf repolist all dnf禁用软件源1sudo dnf config-manager --set-disable sublime-text
2020-06-04
linux 用户
12groupadd www-datauseradd -g www-data www-data
2018-11-29
linux 创建软连接
1ln -s /data/wwwroot/default/storage/app/public storage
公告
This is my Blog