Top Banner
Visual Editor Commands and Navigation Cursor Movement h,j,k,l O,$ w S CTRL-D CTRL-U G 1G CTRL-R CTRL-L Searching / ? n Line Numbering CTRL-G :99 99 Inserting Text a A i I o ESC Changing Text cw cc C dd 5dd D u U Moving Text yy p Saving and Exiting ZZ :wq ZZ :q! :n :w filename1 filename1 Symbols > < >> | & ; * ? UNIX QUICKREFERENCE * Any commercial product names herein are trademarks, registered trademarks or service marks of their respective owners. TM INFOTECH does not warrant that this document is error-free. In no event shall be liable for any consequential or incidental damages. Download this and our other Quick Reference guides from our website: www.tm-infotech.com su sam sam su - sam sam tail filename1 filename1 tail -50 filename1 filename1 tail -f tar -cvf /dev/rmt/0c /usr/bin/* /usr/bin /dev/rmt/ tar -xvf /dev/rmt/0 /usr/bin/ /dev/rmt/0 /usr/bin/ tar -tvf /dev/rmt/0c tee tee -a /tmp/filename1 filename1 telnet hostb hostb touch filename1 filename1 uname -a uncompress filename1 compress uptime users uucp man view filename1 w wall wc -l filename1 filename1 wc -c filename1 filename1 -m wc -w filename1 filename1 whence filename2 filename2 which filename2 who who am i who -b who -r
2

Quick Reference Guide-UNIX 1

May 23, 2017

Download

Documents

scottaveda
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Quick Reference Guide-UNIX 1

Visual Editor Commands and Navig ation

Cursor Movement h,j,k,l O,$ w SCTRL-D CTRL-U G 1G CTRL-R CTRL-L Searching / ? n Line Numbering CTRL-G :99 99Inserting Text a A i I o ESC

Changing Text cw cc C dd 5dd D u U

Moving Text yy p Saving and Exiting

ZZ :wq ZZ:q! :n :w filename1 filename1Symbols > < >> | & ; * ?

UN

IX

QUICK REFERENCE* Any commercial product names herein are trademarks, registered trademarks or service marks of theirrespective owners. TM INFOTECH does not warrant that this document is error-free. In no event shall be

liable for any consequential or incidental damages.

Download this and our other Quick Reference guides from our website:www.tm-infotech.com

su sam sam su - sam samtail filename1 filename1 tail -50 filename1 filename1 tail -f

tar -cvf /dev/rmt/0c /usr/bin/*/usr/bin

/dev/rmt/tar -xvf /dev/rmt/0 /usr/bin/

/dev/rmt/0 /usr/bin/ tar -tvf /dev/rmt/0c

tee

tee -a /tmp/filename1filename1

telnet hostb hostbtouch filename1

filename1

uname -auncompress filename1

compress uptime

usersuucp man view filename1wwall

wc -l filename1filename1

wc -c filename1filename1 -m

wc -w filename1filename1

whence filename2filename2

which filename2who

who am iwho -bwho -r

Page 2: Quick Reference Guide-UNIX 1

ls -alls -al *.doc .docls -al /bin/k* k /bin

mail sam sam mailx sammkdir -p /usr/opt/dirx dirx /usr/opt make mkdir dirx dirxmore filename1

filename1 man

mv filename1 /usr/opt/ filename1 /usr/opt cp mv

netstat -inetstat -rnetstat -rn

netstat -a | morenewgrp group1news

nice/renicepasswdpsps -efpwdrcp filename1 hostb:/usr/local/bin

filename1 hostb/usr/local/bin

rkshrlogin hostb hostb rm filename1 filename1

rm -i filename1 filename1

rmdir dirx dirx rmdir -r dirxrshsarsh

sleep 3stty sane

stty erase ^H ^H

man

man man cat filename1 > filename2

filename2 filename1cat filename1 » filename2

filename1 filename2cd /usr /usrcd ..

cdchgrp group1 filename1

filename1chgrp -R group1 *

group 1 chmod ugo+rwx filename1

filename1

chmod o x filename1

chmod 751 filename1

manchown sam filename1

filename1 sam chown -R sam * sam

clearcompress filename1 filename1

filename1.Z uncompresscp filename1 filename2 filename1

filename2 cp -i * /usr/local/bin

/usr/local/bin i

cpio man

crontab -ecrontab -e bill billcrontab -lcsh man cut -d: -f1,5 /etc/passwd

who | cut -d" " -f1

datedate +%D dd mandf df -k

echo nameecho $PATHed/edit/ex vienv

file filename1filename1

find /usr/opt/bin -name "filename1*" -print/usr/opt/bin

filename1

find . -type f -print | xargs grep -i [PATTERN]

find . ! -mtime -<days> | /usr/bin/xargs rm -rf

finger sam samftp solar

sola man

grep jdoe /etc/passwd /etc/passwd "jdoe"

grep -i Sam filename1 filename1 Sam

groups sam sam head filename1 filename1head -50 filename1

filename1idkill -9 1351ksh man

ln -s filename1 /usr/opt/filename2/usr/opt/filename2

filename1 man lp -d lp1 filename1 filename1

lp1 lpstat -dlpstat -alpstat -slpstat -u sam sam