CSC209H1 Lecture Notes - Chmod, Mkdir, Working Directory

72 views2 pages
24 Apr 2013
School
Course
Professor

Document Summary

Files and directories: everything is a file. Ex. in linux can view processes as files by ls /proc: unix provides a file interface for all input/output. Network (block: file interface = open, read, write, close. Applicable to everything, files, processes, devices: files in linux in tree, root = / absolute path. String after ls is a path, each one is a directory. !$ = last element of the last line. If / not there, then it releative to the current working directory: output to file use: some standard out > filename. /bin/sh mkdir eveningclass echo today is our first lecture echo michelle still feels like she is in portugal cd eveningclass echo this is file1 > file1 sed "s/1/2/" < file1 > file2 cd ls eveningclass > filelist. Note sed "s/1/2/" < file1 prints to standard out text from file1 with text replacement of 1 2: set of permissions for file owner (u), group (g), everyone else (o)

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