日期:2014-05-16 浏览次数:20784 次
----------------查找文件方法----------------------
find . -name "project_supply_sign.xsl"
----------------ftp方法---------------------------
[root@ecapp1 shx3]# cd common
[root@ecapp1 common]# cd js
[root@ecapp1 js]# ftp 172.0.2.21
Connected to 172.0.2.21.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (172.0.2.21:root): app1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd songyc
250 Directory successfully changed.
ftp> get util.js
local: util.js remote: util.js
227 Entering Passive Mode (172,0,2,21,226,163)
150 Opening BINARY mode data connection for util.js (30380 bytes).
226 File send OK.
30380 bytes received in 0.0051 seconds (5.9e+03 Kbytes/s)
ftp> quit
##################### 用jar命令打war包 ##############################################
拷贝:
[root@emed4test song_temp]# cp ../shx3.war ./
解压:
[root@emed4test song_temp]# jar -xvf ./shx3.war?????? 解压到当前目录
删除war:
[root@emed4test song_temp]# rm -f ./shx3.war
压缩:
[root@emed4test song_temp]# jar -cvf ../shx3.war .
如果在被压缩目录下,则执行上面的命令,
如果在上一级目录:
jar -cvf shx3.war ./被压缩目录
[root@emed4test root]# clear????????????? 清屏? ctrl+l
*************************************************************************
[root@emed4test root]# finger root??????? 显示用户信息
Login: root???????????????????????????? Name: root
Directory: /root??????????????????????? Shell: /bin/bash
On since Thu Feb? 9 10:29 (CST) on pts/3 from 172.25.60.118
On since Thu Feb? 9 09:57 (CST) on pts/0 from 172.25.50.96
?? 1 hour 2 minutes idle
Mail last read Thu Dec 29 06:03 2005 (CST)
No Plan.
***************************************************************************
[root@emed4test root]# whoami?? 显示当前用户
root
[root@emed4test root]# who am i?? 显示当前用户带日期
root???? pts/3??????? Feb? 9 10:29 (172.25.60.118)
***************************************************************************
[root@emed4test root]# date?? 显示系统时间
Thu Feb? 9 11:04:41 CST 2006
***************************************************************************
[root@emed4test root]# last?? 显示此前用户登录信息
root???? pts/3??????? 172.25.60.118??? Thu Feb? 9 10:29?? still logged in??
root???? pts/0??????? 172.25.50.96???? Thu Feb? 9 09:57?? still logged in??
root???? pts/0??????? 172.25.83.246??? Thu Feb? 9 09:05 - 09:21? (00:16)???
duanxw?? pts/1??????? 172.25.60.118??? Tue Feb? 7 09:04 - 09:14? (00:10)
***************************************************************************
[root@emed4test root]# history|more?? 显示此前执行所有命令,每屏一停
?? 27? kill -9 28251
?? 28? ps -ef|grep java
?? 29? mkdir logs
?? 30? nohup ./startWebLogic.sh &
?? 31? tail -f nohup.out
?? 32? ps -ef|grep java
?? 33? kill -9 28388
?? 34? rm -rf nohup.out
?? 35? nohup ./startWebLogic.sh &
?? 36? cd /opt/httpd2fordata/bin/
?? 37? ./apachectl start
?? 38? ./apachectl stop
***************************************************************************
[root@emed4test root]# uptime?? 显示从上次重起到现在的时间
?11:09:24? up 19 days, 21:16,? 2 users,? load average: 0.02, 0.05, 0.01
***************************************************************************
[root@emed4test root]# ps?? 显示当前用户正在执行的进程
? PID TTY????????? TIME CMD
30419 pts/3??? 00:00:00 bash
30457 pts/3??? 00:00:00 man
******************************************************************