The Linux Commands Handbook
|rmdir| |mv| |cp| |open| |touch| |find| |ln| |gzip| |gunzip| |tar| |alias| |cat| |less| |tail| |wc| |grep| |sort| |unique\_id| |---| |diff| |echo| |chown| |chmod| |mask| |du| |df| |basename| |dirname| |ps| correct value: wc -m test.txt ## grep The grep command is a very useful tool, that when you master will help you tremendously in your day to day. If you're wondering, grep stands for global regular expression expression print You can use grep to search in files, or combine it with pipes to filter the output of another command. For example here's how we can find the occurrences of the document. Element0 码力 | 135 页 | 14.14 MB | 2 年前3
Linux command line for you and me Documentation Release 0.1that information. $ ps aux | grep firefox kdas 26752 96.1 9.7 2770724 763436 ? Sl 16:16 0:35 /usr/lib64/Firefox/Firefox kdas 26919 0.0 0.0 118520 980 pts/3 S+ 16:17 0:00 grep - -color=auto Firefox Here using the | character. In this case, as you see, grep is that second command. We can find and look for text using the grep tool. We will learn more about grep in the future. ## How to kill/stop a particular0 码力 | 124 页 | 510.85 KB | 2 年前3
CIS Benchmark Rancher Self-Assessment Guide - v2.4get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chmod 700 {1} test_dir= (ps -ef | grep {etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[=] $ ([^ ]*) $ .%%\1%') docker inspect etcd | jq -r '.[].HostConfig.Binds[]' | grep " {test_dir}" get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chown etcd:etcd0 码力 | 54 页 | 447.77 KB | 2 年前3
CIS 1.5 Benchmark - Self-Assessment Guide - Rancher v2.5get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chmod 700 {1} test_dir= (ps -ef | grep {etcd_bin} | grep -- --data-dir | sed 's%.*data-dir[=] $ ([^ ]*) $ .%%\1%') docker inspect etcd | jq -r '.[].HostConfig.Binds[]' | grep " {test_dir}" get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chown etcd:etcd0 码力 | 54 页 | 447.97 KB | 2 年前3
CIS 1.6 Benchmark - Self-Assessment Guide - Rancher v2.5.4node, get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chmod 700 node, get the etcd data directory, passed as an argument --data-dir, from the below command: ps -ef | grep etcd Run the below command (based on the etcd data directory found above). For example, chown etcd:etcd node and set the below parameter. --anonymous-auth=false ## Audit: /bin/ps -ef | grep kube-apiserver | grep -v grep ## Expected Result: 'false' is equal to 'false' ## Returned Value:0 码力 | 132 页 | 1.12 MB | 2 年前3
Debian打包教程 version 0.29② 创建源码包 ③ 构建与测试软件包 ④ 实操练习环节 1:修改 grep 软件包 ⑤ 进阶打包知识 6 维护 Debian 软件包 7 结论 8 更多实操练习环节 9 实操练习环节解答 ## 内容概括 ① 介绍 ② 创建源码包 ③ 构建与测试软件包 ④ 实操练习环节 1:修改 grep 软件包 ⑤ 进阶打包知识 ⑥ 维护 Debian 软件包 ⑦ /e/6a6e60a9c08bc59ba48b00c2ae3b52ea/p10_1.jpg) ## 内容概括 ① 介绍 ② 创建源码包 ③ 构建与测试软件包 ④ 实操练习环节 1:修改 grep 软件包 ⑤ 进阶打包知识 6 维护 Debian 软件包 ⑦ 结论 8 更多实操练习环节 9 实操练习环节解答 ## 源码包 ▶ 一个源码包可以生成若干个程序文件包 例如 libtar ▶ See https://trends.debian.net/#build-systems ## 内容概括 ① 介绍 ② 创建源码包 ③ 构建与测试软件包 ④ 实操练习环节 1:修改 grep 软件包 ⑤ 进阶打包知识 6 维护 Debian 软件包 ⑦ 结论 8 更多实操练习环节 9 实操练习环节解答 ## 构建软件包 apt-get build-dep mypackage0 码力 | 90 页 | 663.35 KB | 2 年前3
Debian 套件打包教學指南 version 0.29③ 構建並測試套件 ④ 實際演練 1: 修改 grep 套件 ⑤ 進階打包主題 ⑥ 維護 Debian 套件 ⑦ 結論 ⑧ 深入淺出實際演練 ⑨ 深入淺出實際演練 大綱 ① 介紹 ② 製作原始碼套件 ③ 構建並測試套件 ④ 實際演練 1: 修改 grep 套件 ⑤ 進階打包主題 ⑥ 維護 Debian 套件 2/b/862b88f077ba436832cd3478abecef62/p10_1.jpg) 大綱 ① 介紹 ② 製作原始碼套件 ③ 構建並測試套件 ④ 實際演練 1: 修改 grep 套件 ⑤ 進階打包主題 ⑥ 維護 Debian 套件 ⑦ 結論 ⑧ 深入淺出實際演練 ⑨ 深入淺出實際演練 ## 原始碼套件 ## ▶ 一個原始碼套件可產生多個二進制套件 (只有它的心佔率是呈現上升) ▶ 參考 https://trends.debian.net/#build-systems 大綱 ① 介紹 ② 製作原始碼套件 ③ 構建並測試套件 ④ 實際演練 1: 修改 grep 套件 ⑤ 進階打包主題 ⑥ 維護 Debian 套件 ⑦ 結論 ⑧ 深入淺出實際演練 ⑨ 深入淺出實際演練 ## 構建套件 apt-get build-dep mypackage0 码力 | 90 页 | 691.02 KB | 2 年前3
CurveFs 用户权限系统调研sh start volume(挂载目录为/tmp/fsmount) # wanghai01@pubbetal-nostest2:~/curvefs/curve$ ps -ef | grep curvefs | grep wanghai wanghai+ 2641513 1 0 13:44 pts/213 00:00:00 ./bazel-bin/curvefs/src/space_新知识/curve_fs_space_新知识_main system owner)可以访问该目录,即使挂载点mode是777。 # filesystem owner wanghai01@pubbetal-nostest2:/tmp$ ls -l | grep fsmount drwxrwxrwx 0 root root 0 Nov 9 2078 fsmount wanghai01@pubbetal-nostest2:/tmp$ cd fsmount/ unt$ ls wanghai01@pubbetal-nostest2:/tmp/fsmount$ # nbs user nbs@pubbetal-nostest2:/tmp$ ls -l | grep fsmount ls: cannot access 'fsmount': Permission denied d???????? ?? ? ? ? ? ? fsmount nb0 码力 | 33 页 | 732.13 KB | 1 年前3
Linux命令大全搜索工具 v1.8Linux Command 介绍 A ab Apache服务器的性能测试工具 accept 指示打印系统接受发往指定目标打印机的打印任务 ack 比grep好用的文本搜索工具 alias 定义或显示别名 apachectl Apache服务器前端控制工具 apk Alpine Linux 下的包管理工具 apropos 查询SELinux策略内各项规则的布尔值 git 是目前世界上最先进的分布式版本控制系统 gpasswd Linux下工作组文件的管理工具 gpm 提供文字模式下的滑鼠事件处理 grep 强大的文本搜索工具 groupadd 用于创建一个新的工作组 groupdel 用于删除指定的工作组 groupmod 更改群组识别码或名称 groups l、usermod、vlock、w、who、whoami、whois ## 文本处理 awk、col、colrm、comm、csplit、ed、egrep、ex、fgrep、fmt、fold、grep、ishell、 jed、joe、join、look、mtype、pico、rgrep、sed、sort、spell、tr、uniq、vi、wc ## 网络通讯 dip、getty、minge0 码力 | 1347 页 | 8.79 MB | 2 年前3
The Linux Commands Handbook
14. gzip • 15. gunzip • 16. tar • 17. alias • 18. cat • 19. less • 20. tail • 21. WC • 22. grep • 23. sort • 24. uniq • 25. diff • 26. echo • 27. chown • 28. chmod • 29. umask • 30. du value: wc -m test.txt ### 22. grep The grep command is a very useful tool, that when you master will help you tremendously in your day to day. If you're wondering, grep stands for global regular expression expression print You can use grep to search in files, or combine it with pipes to filter the output of another command. For example here's how we can find the occurrences of the document.getElementById0 码力 | 112 页 | 13.74 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













