New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Elmira Kunze Jr.
Elmira Kunze Jr.
GPA 3.85


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Elmira Kunze Jr. on Tuesday October 20, 2015. The Class Notes belongs to CS220 at San Diego State University taught by Staff in Fall. Since its upload, it has received 27 views. For similar materials see /class/225308/cs220-san-diego-state-university in ComputerScienence at San Diego State University.


Reviews for CS220


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/20/15
San Diego State University Rohan UNIX Reference Card 272003 RN Anatomy of a Unix Command Commandname optionss filenames or arguments Example WC 1 etcmotd The rst word of the command line is usually the am This may be followed by options lenarnes directory name or other arguments and then a RETURN Options are usually preceded by a dash The examples in this document use bold case for c names and options and italics for arguments and lenarnes UNIX is Case Sensitive Most UNIX commands are lower case File and directory names can be lower upper or mixed case and must be typed exactly as listed Commands prefaced by a A caret mean hold down the CONTROL key while pressing the indicated character Documentation man command Manual pages for command Navigation SPACEBAR moves down a screen exit h help info GNU Project documentation Navigation SPACEBAR move down a screen DEL ove back a screen TAB skip to next link RETURN follows link q exit h help tutorial Printing Setenv PRINTER printer set the default printer lp option les print lenames Printer lp is the free line printer in BAl34 Printer laser is 10 centspage in BAllO Printer scc is 10 centspage in Student Computing Center File System Commands Create Make a Directory mkdir directoryname create a directory tion p Create any nonexisting parent directories Look at a File less filename display le contents similar to more S SPACEBAR moves down a screen b moves back a screen up AF follow a le as it grows text nd and highlight text text nd going up and highlight text q exit h help head file display rst 10 lines of a le sort file sort a le alphabetically n sort numerically verse sort tail le display last 10 lines ofa le tail f file display new lines as they appear in the le List Files and Directories lists contents of current directory ls directoryname lists contents of directory Options a lists all les including les starting with 1 long list shows permissions owner size t list les chronologically F append to executables to directories R recursively list les and directories Change Working Directory c change to your home directory cd directoryname change to another director de print the name of the working directory Directory Abbreviations msername Move Rename Files and Directories mv oldname newname rename old to new mvfilename directory move le into directory Copy Files cpfilename copyname copy a le into a new lenarne cpfilename directory copy a le into a directory Options i con rm before overwriting existing le R recursive copy including directories Remove Delete Files and Directories rm lename to remove a le rmdir directory to remove an empty directory Options i interactive prompts for con rmation Recover Files and Directories Backups are run every night around 3AM Files car recovered if they existed while the backup was runn Change to the directory where the old le used to exist type recover The recover program will prompt recove List les on the most recent backup by typing ls changetime month day to restore from a given day St les for recovery with add filenames When nished recover to restore the les Expect to wait 5 or 10 mini Type quit to exit Change File Access Permissions chmod who op access lename who can be any combination of user user is the owner of the le g group 0 other a all ie ugo op add or removes access and can be add access remove access access can be any combination of r read 4 W write 2 x execute 1 Ex chmod axfilename Add execute access for everyc chmod 711 lename Set access to rwx for user execute for group and other Shell Tools Wild Cards single character wild card any number of characters History Command Repetition history display list of recent commands repeat the last command line repeat the last word of the prior command n repeat command line n string repeat command beginning with string Command Redirection gtfile redirect output to a new le gtgtfile append output to existing le ltfile redirect input from le pipe output of one command into another Ex ls l less Aliases alias abbreviation command create alias alias abbreviation show alias unalias abbreviation remove alias Alias creates an abbreviation for a command line For multiple commands enclose the commands in quotes Ex alias ls ls F execute ls F when Is is used alias big du sk A z sort m head show biggest les and directories File Operations Search for Patterns in Files grep pattern filenamess display lines matching the pattern 1n the files Options v display lines that don t match i match upper or lower case Patterns can be any combination of string match string anywhere in a line Astring match if string begins a line string match if string ends a line abcd match list ie abc or abd abAD match range ie abA abB abC abD Concatenate and Display Files catfiles reads each file in sequence and displays them Options n number lines vt display nonprinting characters Com pare Files diff file1 file2 compares the contents of file and file2 and displays the lines that are different Counting Words in a File wcfile counts the number of works lines or characters 0 tions W words 1 lines c characters Com press Files compress file compress file and rename it leZ uncompressfileZ uncompressfileZ and rename it file gzipfile compress file and rename it le 2 gunzipfilegz uncompress legz or leZ and rename file Process Control Process Status ps display the status of current shell s processes Options e display every process owned by you or others f display additional info u user show all processes owned by user killPID so kill terminate PID with SIGTERM May be trapped Process ID is found by using the ps command Every command has it s own PID kill 9 PID hard kill terminates PID with SIGKILL Job Process Control A command may be run in the background by appending an amp to the end of the command Then other commands can be typed in the foreground while the background command is running AZ stop foreground job interrupt jobs list any background jobs bg resume a stopped job in the background fg resume a job in the foreground fg n resume job n in the foreground Compilers ccfilec C compiler use gcc for GNU C compiler CC filecc C compiler gH for GNU C compile i90filef Fortran 90 compiler and f77 code i95filef Fortran 95 compiler Options 0 file compile as file instead of aout library include library in compilation javac le Java compiler for java interpreter Debuggers dbxfile compiler command line debugger workshop file compiler GUI debugger gdbfile GNU compiler command line debugger dddfile GNU compiler GUI debugger Helpful Commands AC abort command some commands trap AC AL redraw screen works in vi less man top env list environmental variables and values echo path list the command search path locate file show where file is on system Which command show where command is located chfn change your nger info nger user show info about user also displays plan passwd change your login password Who list users on the system W list system load and users top list system info and top CPU users clear clear screen cal year show calendar for year use 2003 not 03 date show current time an date du k show disk usage in current directory nd size 1000 ls show les over 500KB in size nsrwatch show status of tape backup robot quota v show your disk uota ssh hast connect to remote system host tunnels X emacs powerful text and GUI editor pico simple text editor vim vi vi improved visual editor vilearn tutorial on how to use the vi editor elm text based mail program pine text based mail program tin USENET News reader


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Amaris Trozzo George Washington University

"I made $350 in just two days after posting my first study guide."

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.