CMPSC 122 Lecture Notes - Lecture 2: Chmod, Octal, Superuser
Document Summary
Naming files: maximum of 255 words, not i(cid:373)porta(cid:374)t topic . Creating files: we create files with unix text editor not important, direct output to file not important, touch command - important, create a file using a touch command touch (file name). txt. Reading files: cat: short for concatenate use this command to read long files, and join files together. Important: more: let"s (cid:455)ou read o(cid:374)e li(cid:374)e of a te(cid:454)t each ti(cid:373)e. you click space to co(cid:374)ti(cid:374)ue. Does(cid:374)"t let you go back one page: less: use this command to entire files rather than one line at a time. Less -m (file name). txt shows progress of page number with percentages. Less -n (file name). txt shows line numbers. Creating directories: mkdir use this command to make a directory important. Renaming files: mv use this command, mv options: I: interactive overwriting gives user a warning or option. Copying files: cp: use this command to copy files - important.