UNIX.ppt
文本预览下载声明
* * * * * * * 所有的信息显示,目前到本地系统登录的用户 显示有关您的真实用户信息编号 whoami命令只显示了有效的用户登录名 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # Starting .profile … umask 022 CC=/usr/local/bin/gcc CCC= /usr/local/bin/g++ ORACLE_BASE=/tarenaora ORACLE_HOME=$ORACLE_BASE/product/10.2.0 ORACLE_SID=TARENADB JAVA_HOME=/usr/j2se MANPATH=/usr/share/man:/usr/man:/usr/share/catman:/usr/catman LD_LIBRARY_PATH=/usr/lib:/usr/dt/lib:$ORACLE_HOME/lib EDITOR=vi PATH=(/usr/bin /usr/local/bin /usr/ucb /usr/ccs/bin $JAVA_HOME/bin $ORACLE_HOME/bin .) export CC CCC ORACLE_BASE ORACLE_HOME ORACLE_SID JAVA_HOME MANPATH LD_LIBRARY_PATH EDITOR PATH An .profile Example 1 Set up initialization files Shell Scripting 2 Script 1: 1. vi a.sh #!/bin/sh pwd cal date 2. chmod +x a.sh Shell Scripting crontab –l crontab –e setenv EDITOR vi crontab –r mailx 0 2 * * * a.sh 13 5 13 * 5 b.sh 0,30 8-17 * * 1-5 c.sh * * * * * * * * * * * * * * * * * * * * * * * * * * * :w 存盘 :w newfile 存成新文件 :wq 存盘退出Vi(或ZZ,或:x) :q! 强行退出不存盘 Saving and Quitting Files ~ 改变大小写 J 把当前行和下一行连起来 u 废除刚才的编辑操作(undo) :set nu 显示行代码 (:set nonu) :21 光标停在指定行 21G 光标停在指定行 (G 到文件尾,1G 到文件头) /串 从当前行往下查找 ?串 从当前行往上查找 n 查找继续 :r file2 在光标所在位置插入另一个文件 :1,$s/旧串/新串/g 替换全文(或 :%s/旧串/新串/g) Advanced Editing Options Systems Testing Technicians: Systems testing technicians execute test plans to evaluate the performance of software applications and information and telecommunications systems. They are employed in information technology units throughout the private and public sectors. Example Titles: application tester application testing technician software test coordinator software tester systems tester systems testing technician Exercises: 1 5 Basic Unix commands Metacharacters Text viewer or editor 4 3 2 Find things on UNIX Network Basics Display a compact list of users logged in users users Displays information about all users currently logged on to the local system who The
显示全部