COMP 206 Lecture Notes - Lecture 4: Hidden File And Hidden Directory, Mkdir, Chown

27 views2 pages

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.

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