shell - grep
1. grep RAM.*LHO.*.xml file_nameuse .* to express any character2. plusCNT=`insting $FILE_NAME IFFM`CNT=`expr 12 - $CNT `[@more@]s
ls command
ls [-a] [-A] [-b] [-c] [-C] [-d] [-f] [-F] [-g] [-i] [-l] [-L] [-m] [-o] [-p] [-q] [-r] [-R] [-s] [-t] [-u] [-x] [pathnames]-aShows you all files, even files that are hidden (these files begin with a dot.)-AList all files including the hidden files. However, does not display the working directory (.) or the parent directory (..).-bForce printing of non-printable characters to be in octal ddd notation.-cUse time of last modification of the i-node (file created, mode changed, and so forth) for sor
chmod chown owner
1. change 属组# change //tmp/src owner to john, 属组buildchown -R john:build /tmp/src2. change 文件权限chmod 777 /tmp/srcrwxrwxrwx --[@more@]
tar
1. tar foldertar cpf /u05/workarea/helen/tomcat_config.tar /**/app/tomcat/tomcat/2. tar file3. tar file recurringtar cpf filename file[@more@]r
crontab
#!/bin/ksh一、cron在3个地方查找配置文件1. cronjob file 位置/var/spool/cron/ 这个目录下存放的是每个用户包括root的crontab任务,每个任务以创建者的名字命名,比如tom建的crontab任务对应的文件就是/var/spool/cron/tom。root@rtcl-geda01 # pwd/var/spool/cronroot@rtcl-geda01 # ls -ltrtotal 4drwx------ 2 root sys 512 Sep 27 01:46 atjobsdrwx------ 2 root sys 512 Nov 30 03:46 crontabsroot@rtcl-geda01 # cd crontabsroot@rtcl-geda01 # lsadm gedaop oracle root sys tomcat2