---
title: "linux第五章"
author: "gagi"
date: "2010-08-04T17:58:24Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2010-08-04T18:06:23Z"
id: 729120
url: "https://gagi.iteye.com/blog/729120"
---

1、日期命令date

```
[root@www~]date
[root@www~]date +%Y/%m/%d
```

 

 

2、日历命令

```
[root@www~]cal
[root@www~]cal 2010
[root@www~]cal 10 2010
```

 

3、计算器

```
[root@www~]bc 
```

    如果要输出小数步骤如下

 

```
[root@www~]bc
[root@www~]scale=3    #3只能够输出3位小数
```