本文介绍: 端口查看本机端口开放情况写在最后:若本文章对您有帮助,请点个赞啦 ٩(๑•̀ω•́๑)۶

bash

# 查看当前使用shell
$ echo $SHELL
/bin/bash

# 查看当前发行版可以使用shell
$ cat /etc/shellschsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/zsh
/bin/tcsh
/bin/csh

# 切换bash
$ chsh -s /bin/bash

# 切换zsh
$ chsh -s /bin/zsh

进程

$ ps aux | grep `pwd`
work      63317  0.0  0.0 51192  612 pts/9    S+   14:22   0:00 grep /home/work/search/1000000.dyenv-user-diaoyan-baiseCliPlus-baisePlus-195522.diaoyan.yq/ala-ac/output_root

端口

查看本机端口开放情况
netstat -tln | grep :31
tcp        0      0 0.0.0.0:3150                0.0.0.0:*                   LISTEN

终端输出

注:0 – 标准输入;1 – 标准输出;2 – 标准错误
2>&1 :将 stderrstdout 组合stdout 流( >& 视为重定向合并运算符
2>1:将 stderr 重定向到名为 1 的文件
&2>&1:即 & 2>&1后台运行command后,运行命令2 并将其stdout重定向stdout
2>'&1':将 stderr 重定向到名为 ‘&1’ 的文件



写在最后:若本文章对您有帮助,请点个赞啦 ٩(๑•̀ω•́๑)۶

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注