---
title: "Linux Tips"
author: "ieniac"
date: "2012-10-15T06:43:58Z"
tags: []
categories: ["操作系统"]
slug: "linux-tips"
draft: false
lastmod: "2012-10-15T06:52:04Z"
id: 1698248
url: "https://ieniac.iteye.com/blog/1698248"
---

-- How to config ip in Linux

Follow the instruction while editing the file '/etc/network/interfaces'

 

```
iface eth0 inet static
address 192.168.184.111
gateway 192.168.184.11
netmask 255.255.255.0
```

 

-- Adjust time in Linux

 

```
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo ntpdate 129.7.1.66
```