CS246 Lecture Notes - Lecture 7: Standard Error, Standard Streams

56 views6 pages

Document Summary

/ : root of the directory structure we can specify any file or directory by its path from root e. g. /usr. Such a path is called an absolute path. The current directory: where you are in the file system right now. When you log on, it is your home directory pwd // a command to print your current directory cd path // a command to change to the directory specified by path. Relative path: starts from you current directory rather than root (/) If we are in /u/asharji, then the relative path cs246/a0/a0. cc is equivalent to. : the parent of the current directory (relative path) ~ : home directory (absolute path, one exception that an absolute path doesn"t start with /) To see the contents of a directory, use the command ls . (won"t show everything, e. g. hidden f. Suppose i only want to list the . txt files in a directory, how do i do this? ls *. txt.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents