---
title: "Linux 常用命令"
author: "xuxujing"
date: "2013-10-15T17:16:24Z"
tags: []
categories: ["行业应用"]
slug: "linux"
draft: false
lastmod: "2014-07-25T11:43:40Z"
id: 1958505
url: "https://xujava.iteye.com/blog/1958505"
---

1\. 查看进程文件打开数

lsof -n |awk '{print $2 " " $3}'|sort|uniq -c |sort -nr|more

 

2.后台启动且不生成日志

nohup ./test.sh &gt; /dev/null 2&gt;&1 &

 

3.查找10天以前的文件并移到指定目录

find /test/ -mtime +10 -name "\*" | xargs -i mv {} /test2/

 

4.查找哪个目录下文件大于指定大小

find / -size +100M -exec ls -lh {} \\;