---
title: "linux 命令杂记"
author: "yangbinfc"
date: "2011-01-12T15:19:00Z"
tags: []
slug: "linux"
draft: false
lastmod: "2012-11-04T17:49:03Z"
id: 1715400
url: "https://yangbinfc.iteye.com/blog/1715400"
---

修改environment文件后 source environment 重新初始化environment让刚配置的环境生效

**Linux 解压zip**

uzip -n text.zip -d /tmp

-n 不覆盖已经存在的文件

**linux指定安装目录：**

--prefix=/目录名

netstat -tulnp tcp udp listener port ：列出监听的端口号

netstat -aon|grep 3306 查看指定的端口好  
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN off (0.00/0/0)

**下载 和解压**

wget [http://www.vim.org/scripts/download\_script.php?src\_id=9870](http://www.vim.org/scripts/download_script.php?src_id=9870) -O NERDTree.zip  
unzip -d /usr/share/vim/vim71/ NERDTree.zip