LATEST UPDATE (ALREADY GRADED A+)
File Viewing Command: tail
print the last n lines of a file
File Viewing Command: diff
compare files line-by-line
Time Related Command: date
print date and time in various formats
Time Related Command: cal
print calendar for month and year
Disk Related Command: df
print file system disk space usage
Disk Related Command: du
estimate file space usage for directory and all subdirectories
Miscellaneous Command: clear
clear the terminal screen
Miscellaneous Command: sleep
delay for a specified amount of time
Miscellaneous Command: history
print history of recently used commands
A file is a...
collection of related information, defined by its creator
The OS is responsible for:
- file creation and deletion
- directory creation and deletion
- support of primitives for accessing and manipulating files
- file security
- mapping files onto secondary storage
- hiding differences between storage types
, Consider the following result from the "ls -l firstexam" command:
-r-xr----x 1 xyz0123 csce3600 124 Mar 7 14:30 firstexam
Assuming that you are not user xyz0123, can you, as a member of group csce3600, execute the
command?
no
permission ___________ indicates who can access the file
permission ______________ indicates what kind of access that user has to the file
group; type
supported file permission groups
user
- applies exclusively to owner of the file
group
- applies only to the group assigned to a file, but not the owner
others
- often referred to as 'world', applies to all other users in the system, but not the owner or the group
supported file permission types
read
- (r) refers to the user's capability to read the contents of the file
write
- (w) refers to the user's capability to write to a file or modify a directory
execute
- (x) refers to the user's capability to execute a file or view the contents of a directory
Linus controls the who and what access for files and directories through the use of a
______________________
permission list
set file permissions using __________ command in either ____________ or ______________ mode
chmod; symbolic; absolute
symbolic mode
uses combination of permission group, +/-, and permission type symbols in order to add or remove
permissions
absolute mode
uses octal (base 8) values to specify permissions