---
title: "Linux设置ll的时候显示日期的格式"
author: "singhoo"
date: "2018-04-23T10:40:10Z"
tags: []
categories: ["操作系统"]
slug: "linux-ll"
draft: false
lastmod: "2018-04-23T10:40:51Z"
id: 2419763
url: "https://singhoo.iteye.com/blog/2419763"
---

1、临时更改显示样式，当回话结束后恢复原来的样式

 

    export TIME\_STYLE='+%Y-%m-%d %H:%M:%S'    # 直接在命令中执行即可

 

2、永久改变显示样式，更改后的效果会保存下来

 

    修改/etc/profile文件，在文件内容末尾加入

    export TIME\_STYLE='+%Y-%m-%d %H:%M:%S'

 

    执行如下命令，使你修改后的/etc/profile文件配置内容生效