---
title: "Linux笔记"
author: "mylove2060"
date: "2011-12-15T19:22:39Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2013-01-29T10:34:09Z"
id: 1312912
url: "https://cooker.iteye.com/blog/1312912"
---

1.过滤查看进程ps -ef\grep hexindatacollector

2.查看多个进程ps -au

3.解压缩文件
压缩文件
tar -czvf test.tar.gz *.jpg
tar -cvvf test.tar.gz folder

解压文件
tar -xzvf test.tar.gz


4.http post请求数据
curl 'http://172.20.0.222:81/stockindex' -d 'method=stockindex&code=600000&datatype=zgb&datetime=16384(20120215-20120215)&post=100&type=2'

5.看端口监听状态
netstat -anlp | grep 443

6.查看是否安装gdb
rpm -qa |grep gdb

7.调试看程序挂掉堆栈信息
-rf f  //调试
bt//堆栈信息

8.删除10天前的数据
find /tmp -mtime +10 -type f -exec rm -f {} \;