xargs命令
- xargs将命令的结果甩到后面
- xargs -n1 已列表的形式输出
例如:
find /etc/ -name “passwd” | xargs cat
find /etc/  -name "passwd"     |  xargs cat        #相当于  cat /etc/passwd
find查询到passwd文件,然后通过xargs命令把结果/etc/passwd甩到后面
[root@haoshuaicong ~]# find /etc/  -name "passwd"  
/etc/passwd
-----------------下方为结果
[root@haoshuaicong ~]# find /etc/  -name "passwd"     |  xargs cat 
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
bash命令
命令 bash 可以执行 例如:pwd bash
bash 脚本 可以执行 例如:bash jb.sh
telnet命令
例如:
###检查10.0.0.200的 11011端口是否开启
telnet 10.0.0.200 11011
Connecting to 10.0.0.200:11011…
Connection established.             ###已建立连接
To escape to local shell, press Ctrl+Alt+].
SSH-2.0-OpenSSH_8.2source命令
使变量或者配置文件生效
例如:
source  /etc/profile    ### 使配置文件生效
source  /etc/nginx/nginx.conf   ### 使nginx配置文件生效tracert -d jd.com命令
查看一路上经历的网关,经过的
例如:
[D:\~]$ tracert -d  jd.com
通过最多 30 个跃点跟踪
到 jd.com [211.144.27.126] 的路由:
  1    <1 毫秒   <1 毫秒   <1 毫秒 192.168.16.1 
  2     1 ms    <1 毫秒   <1 毫秒 192.168.201.1 
  3     6 ms     4 ms     3 ms  221.218.208.1 
  4     *        8 ms     *     114.243.133.145 
  5     5 ms     4 ms     3 ms  221.219.202.10 
  6     3 ms     3 ms     3 ms  61.48.72.42