---
title: "linux 操作 工作笔记"
author: "海阔天空panhe520nba"
date: "2012-05-15T00:37:00Z"
tags: []
categories: ["编程语言"]
slug: "linux"
draft: false
lastmod: "2012-05-15T21:07:59Z"
id: 1528772
url: "https://panhe.iteye.com/blog/1528772"
---

1.  设置自动启动把写好的shell 放到下面 etc/rc.local 服务启动以后可以检查是否启动成功。 ps -ef | grep was。

2.  写好shell脚本传参测试
 if ;then
        echo "par count wrong!"
        exit 101
 fi
 echo "Hello World!"
 echo "1st param:"$1
 echo "2nd param:"$2
 exit 0

3.   环境      env  
     注销      logout
     列出文件  ls -l /bin/*sh

4  清空linux 服务器上面的tomcat 日志
        echo > catalina.out
 
    监测tail -f catalina.out