Common UNIX System V Commands Pocket Guide
Total Page:16
File Type:pdf, Size:1020Kb
Visual Editor Commands and Navigation Cursor Movement su sam sam h,j,k,l su - sam sam O,$ tail filename1 filename1 w S tail -50 filename1 filename1 CTRL-D tail -f CTRL-U G tar -cvf /dev/rmt/0c /usr/bin/* 1G /usr/bin CTRL-R CTRL-L /dev/rmt/ Searching tar -xvf /dev/rmt/0 /usr/bin/ / /dev/rmt/0 /usr/bin/ ? tar -tvf /dev/rmt/0c n Line Numbering Common UNIX System V tee CTRL-G :99 99 tee -a /tmp/filename1 Inserting Text Commands filename1 a telnet hostb hostb A Pocket Guide touch filename1 i filename1 I o uname -a ESC uncompress filename1 compress Changing Text uptime cw users cc uucp man C view filename1 dd w 5dd wall D u U wc -l filename1 Moving Text filename1 yy wc -c filename1 p filename1 -m Saving and Exiting wc -w filename1 ZZ filename1 :wq ZZ whence filename2 :q! filename2 :n which filename2 :w filename1 filename1 who Symbols > who am i < who -b >> who -r | & ; * ? Common UNIX 5VR4 Commands ls -al date ls -al *.doc .doc ls -al /bin/k* k /bin man date +%D dd man mail sam sam man man df mailx sam cat filename1 > filename2 df -k filename2 filename1 mkdir -p /usr/opt/dirx dirx /usr/opt make cat filename1 » filename2 echo name mkdir dirx dirx echo $PATH filename1 filename2 more filename1 ed/edit/ex vi cd /usr /usr filename1 env cd .. man mv filename1 /usr/opt/ filename1 cd file filename1 /usr/opt cp mv chgrp group1 filename1 filename1 filename1 netstat -i chgrp -R group1 * find /usr/opt/bin -name "filename1*" -print netstat -r /usr/opt/bin group 1 netstat -rn filename1 chmod ugo+rwx filename1 filename1 netstat -a | more find . -type f -print | xargs grep -i [PATTERN] newgrp group1 chmod o x filename1 news find . ! -mtime -<days> | /usr/bin/xargs rm -rf nice/renice chmod 751 filename1 passwd finger sam sam ps man ftp solar ps -ef chown sam filename1 pwd filename1 sam sola man rcp filename1 hostb:/usr/local/bin chown -R sam * sam filename1 hostb grep jdoe /etc/passwd /etc/passwd /usr/local/bin clear "jdoe" compress filename1 filename1 grep -i Sam filename1 filename1 rksh filename1.Z uncompress Sam rlogin hostb hostb cp filename1 filename2 filename1 groups sam sam rm filename1 filename1 filename2 head filename1 filename1 head -50 filename1 cp -i * /usr/local/bin rm -i filename1 filename1 filename1 /usr/local/bin id i rmdir dirx dirx kill -9 1351 rmdir -r dirx cpio man ksh man rsh sar crontab -e ln -s filename1 /usr/opt/filename2 sh crontab -e bill bill /usr/opt/filename2 crontab -l filename1 man csh man lp -d lp1 filename1 filename1 sleep 3 cut -d: -f1,5 /etc/passwd lp1 stty sane lpstat -d lpstat -a stty erase ^H ^H who | cut -d" " -f1 lpstat -s lpstat -u sam sam Copyright 2007 Solution Beacon, LLC. All Rights Reserved. .