CS246W11TUT01

CS246W11TUT01 - CS 246 Tutorial #1 Winter 2011 Monday,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 246 Tutorial #1 Winter 2011 Monday, January 10 th 2011 9:30AM-10:20AM, 11:30AM-12:20PM Wednesday, January 12 th 2011 9:30AM-10:20AM, 12:30AM-1:20PM Logging on to an undergrad Linux environment From a Linux terminal, Cygwin(windows), or X11(mac), run command: ssh user-id@linux.student.cs.uwaterloo.ca Using the shell command line After using ssh to log on to one of the linuxXXX machines, lets try a few commands tjoo@linux016:~/cs246/tut1$ date Sat Jan 8 15:24:36 EST 2011 tjoo@linux016:~/cs246/tut1$ whoami tjoo tjoo@linux016:~/cs246/tut1$ echo hello hello Quoting - using backslash \ to print escape characters tjoo@linux016:~/cs246/tut1$ echo \”hello\?\” hello “hello?” - using backquote ` to execute parts of text tjoo@linux016:~/cs246/tut1$ echo “User id: `whoami`” User id: tjoo Pattern Matching Globbing Pattern matching provided by shell to match filenames. Has special characters: *, ?, {}, [] tjoo@linux016:~/cs246/tut1$ ls *.cc (list all files which have extension .cc) hello.cc maze.cc randomNum.cc
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Using grep Two ways to use grep: to find an instance of a text search using regular expressions tjoo@linux016:~/cs246/tut1$
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

CS246W11TUT01 - CS 246 Tutorial #1 Winter 2011 Monday,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online