COMP 206 Lecture Notes - Lecture 4: Hidden File And Hidden Directory, Mkdir, Chown
Document Summary
Important commands for command line: ls lists info about the files in your current directory (normally your home directory), and these files and folders are sorted alphabetically. Wild cards: the * looks for any pattern, the ? looks for any single character, the [ ] shows any file that contains any of the given letters, looking through files based on extensions. Directories use permission systems identical to those used for files, and the following base directory structure for unix is as follows: /dev contains device fills for all connected hardware. /var contains logs, printer spool, mail spool, etc. Each user"s home directory is found within the root user"s home directory. File manipulation related commands: chgrp change the file"s group chmod changes the access permissions for file/directory chown changes the ownership of a file cp copy one file to another, overwriting the second. Mv move file 1 into another rm remove a file or directory.