CSC209H1 Lecture Notes - Lecture 1: Mkdir, Working Directory, Gnu Compiler Collection
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.