CSC209H1 Lecture Notes - Lecture 1: Mkdir, Working Directory, Gnu Compiler Collection

21 views4 pages
14 Jan 2019
School
Course
Professor

Document Summary

# show the first line of the file (end with \n) # show the first byte/character/digit of the file. # show the last line of the file, work similarly for the byte count as head. # change the current working directory to dir. # long listing, list all the files in the current dir. # make a new file named file_copy and copy file to file_copy. # move file_copy into the new file called file_moved and delete file_copy automatically. # show the difference between file1 and file2 line by line. # select or reject lines common to file1 and file2. $ cut -d -f 1 file. # cut all after the first field in file, the fields are separated by. # find the line in the file matches with the pattern and print it. # show all people who have accessed the current directory before. Remember to use man often to check for instructions of how to use particular command.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents