---
title: "linux常用命令"
author: "smartzjp"
date: "2013-04-27T16:41:04Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2013-04-27T16:41:04Z"
id: 1856114
url: "https://smartzjp.iteye.com/blog/1856114"
---

su、  
env 所有变量名  
set 变量名  
unset 变量名  
export 变量名  
ps -a 所有进程  
set DISPLAY=LOCALHOST:0  
tail -f x.logs  
ps -A  
ps -ef  
ps -ax  
nohup sh start.sh &  
kill -15 pid  
kill -9 pid  
top  
ps -af |grep java    Windows:netstat -ano  taskkill /PID 123 /F  
netstat -tln查看所有端口  
netstat -nao |grep 10001  
netstat -anp |grep 10001  -p显示进程号