7 9
8 0 $ man umount newfs $ man -a intro $ man -a chown ORDER=C:ADM:ADMN:ADMP:PADM:F:HW
8 1 # catman % ps aux grep chavez chavez 8684 89.5 9.627680 5280? R N 85:26 /home/j90/l988 root 10008 10.0 0.8 1408 352 p2 S 0:00 grep chavez chavez 8679 0.0 1.4 2048 704? I N 0:00 -csh (csh) chavez 8681 0.0 1.3 2016 672? I N 0:00 /usr/nqs/sc1 chavez 8683 0.0 1.3 2016 672? I N 0:00 csh -cb rj90 chavez 8682 0.0 2.6 1984 1376? I N 0:00 j90
8 2 % ps -aux egrep 'chavez PID' % alias pu "ps -aux egrep '\e!:1 PID'" % pu chavez USER PID %CPU %MEM SZ RSS TT STAT TIME COMMAND chavez 8684 89.5 9.627680 5280? R N 85:26 /home/j90/l988...
8 3 $ ps -ef grep "[d]oom" awk '{print $1}' $ (date ; ps -ef grep [d]oom awk '{print $1 " [" $7 "]"}' \e sort uniq) >> doomed.users # find / -user chavez -fstype 4.2! -name /dev/\e* -ls awk \e '{sum+=$7}; END {print "User chavez total disk use = " sum}' User chavez total disk use = 41987453 $ sys_doc > `date awk '{print $3 $2 $6}'`.`hostname`.sysdoc
8 4 $ date +junk_%d%b%y%h%m%s.junk junk_08dec94204256.junk # find starting-dir(s) matching-criteria-and-actions
8 5 mtime +7 -atime -2 -size +100 50K -atime +60 -mtime +120 \e( -atime +7 -o -mtime +30 \e)
8 6! -name gold.dat -name \e*.dat -perm 75 -perm -002 -perm -400 -perm -200 rwxr-xr-x SUID SUID -exec rm -f {} \e;
8 7 $ find. -name \e*.c -print $ find /chem -size +2048 -mtime +30 -exec ls -l {} \e; $ find /chem -size +2048 \e( -mtime +30 -o -atime +120 \e) -ls
8 8 # find / \e( -name a.out -o -name core -o -name '*~'\e -o -name '.*~' -o -name '#*#' \e) -type f -atime +14 \e -exec rm -f {} \e; -o -fstype nfs -prune # find /home /aux1 -type f -atime +30 -size +1000 -print \e -name core -exec rm {} \e; # find / -type f \e( -perm -2000 -o -perm -4000 \e) -print # find / \e( -perm -2000 -o -perm -4000 \e) -print \e diff - files.secure
8 9 # find /home/chavez -exec chown chavez {} \e; \e -exec chgrp physics {} \; # find /chem -name '*.c' -exec mv {} /chem1/src \; # find /chem -name '*.c' -exec /usr/local/bin/prettify {} \; # ps -ef grep "[d]oom" awk '{print $2}' xargs renice +10 # ps -ef grep "[d]oom" awk '{print $1}' xargs -n1 warn_user
9 0 # ps -ef grep "[d]oom" awk '{print $1}' xargs -i chargefee {} 100 $ echo a b c d e f xargs -n3 -i echo before {} after before a b c d e f after $ echo a b c d e f xargs -i -n3 echo before {} after before {} after a b c before {} after d e f before a b c after before d e f after
9 1 $ tail test00* more $ ls -1 test00* xargs -i /usr/bin/sh -c \e 'echo "****** {}:"; tail -15 {}; echo ""' more $ ls -1 *.dat xargs -i /usr/bin/sh -c \e "sort {} uniq > junk.junk ; mv junk.junk {}" $ mkdir -m 755./people $ mkdir -m u=rwx,go=rx./places
9 2 $ mkdir -m g+w./things $ mkdir -p./a/b/c # cd /chem1 # tar -cf - -C /chem olddir tar -xvpf - # mv olddir newdir
9 3 # mkdir /chem1/newdir newdir # cd /chem1/newdir # tar -cfv - -C /chem/olddir src bin data logfile.profile tar -xvpf - # mkdir /chem1/newdir newdir # cd /chem1/newdir # tar -cfv - -C /chem/olddir src viewers/rasmol tar -xvpf - # mkdir /chem1/newdir newdir # cd /chem1/newdir # find. -print cpio -pdvm /chem1/newdir
9 4 # cp -pr /chem/olddir /chem1 # mv /chem1/olddir /chem1/newdir $ dircmp /chem/olddir /chem1/newdir Mon Jan 4 1995 /chem/olddir only and /chem1/newdir only Page 1./water.dat./hf.dat./src/viewers/rasmol/init.c./h2f.dat... same different./h2o.dat./hcl.dat...
9 5
9 6 $tar -xvf /dev/rmt1 /chem /chem1> 24oct94-tar.toc& $tail -f 24oct94-tar.toc $ echo *