---
title: "记history记住操作时间"
author: "mrjeye"
date: "2012-02-17T10:25:14Z"
tags: []
categories: ["操作系统"]
slug: "history"
draft: false
lastmod: "2012-02-17T10:25:14Z"
id: 1409229
url: "https://mrjeye.iteye.com/blog/1409229"
---

```java
sudo vim /etc/bashrc
```



```java

export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S "
export HISTFILESIZE=10000000
export HISTSIZE=2000

```



```java

source /etc/bashrc

```


清除历史

```java

history -c

```