---
title: "如何确认当前使用的Shell类型"
author: "dongwei_6688"
date: "2014-03-09T11:01:08Z"
tags: []
categories: ["操作系统"]
slug: "shell"
draft: false
lastmod: "2015-07-22T17:05:56Z"
id: 2028487
url: "https://dongwei.iteye.com/blog/2028487"
---

```
方法一：
ps |grep $$|awk '{print $4}'

方法二：
echo $SHELL
```