---
title: "Ubuntu Command Line Trick ¶"
author: "eonbell"
date: "2011-02-25T13:34:29Z"
tags: []
categories: ["编程语言"]
slug: "ubuntu-command-line-trick"
draft: false
lastmod: "2011-02-25T13:34:29Z"
id: 929725
url: "https://eonbell.iteye.com/blog/929725"
---

grep -r mysite * | grep -v svn  --- find out all files including "mysite" except svn folder

screen -R screenname --create a screen named screenname or entry a screen named screenname

tail -f xxx.filename  -- realtime to display file content

crontab -e -- edit the cron 

Command about crontab?

how to delete all svn files

find . -name *svn|xargs rm -rf

Kill the instance of python

netstat -a -p tcp|grep 8089
kill -9 pid

Search files contain specified strings

grep -n "test" *.py