linux下设置部分目录和应用的快捷方式

上一篇 / 下一篇  2010-03-10 11:31:35 / 个人分类:经验之谈

用户根目录.profile文件里面设的:
alias bin="cd /home/portalone0125/tomcat/bin"
alias log="cd /home/portalone0125/tomcat/logs;tail -f catalina.out"
alias stt="cd /home/portalone0125/tomcat/bin;/home/portalone0125/tomcat/bin/startup.sh;touch /home/portalo
ne0125/tomcat/logs/catalina.out;tail -f /home/portalone0125/tomcat/logs/catalina.out"
alias conf="cd /home/portalone0125/tomcat/conf"
alias app="cd /home/portalone0125/tomcat/webapps"
alias p="ps -ef |grep portalone0125"
alias stp="cd /home/portalone0125/tomcat/bin;/home/portalone0125/tomcat/bin/stop.sh"
alias rst="stp;stt"
alias pt="cd /home/portalone0125/tomcat/server/webapps/portal"

另外tomcat/bin下面加了一个我写的stop.sh脚本文件用来停止tomcat进程:
#!/bin/sh
cur_path=`pwd`
ps_no=`ps -ef |grep $cur_path |awk '{print $2}'`
kill -9 $ps_no


TAG:

 

评分:0

我来说两句

yimuli

yimuli

要离开一个地方,把有用的资料整理出来。

日历

« 2024-05-04  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 18347
  • 日志数: 44
  • 文件数: 1
  • 建立时间: 2010-01-20
  • 更新时间: 2010-07-13

RSS订阅

Open Toolbar