Flashcards
Lecture 2: UNIX Filestore
Cards in this deck (16)
- 13 Examples of File ExtentionsAny:
.jpg .txt .mp3 .wav .doc .xls .ppt - 2Essentially... what are directories?Folders
- 3Explain filestoreA single hierarchical file store that is shared by all users that may be spread across different disk, computers or other filestores
- 43 Main parts of the filestore1. Home Directory
2. Root Directory
3. Current Directory - 5Commands: cat[filename] more[filename] less[filename] head[filename] tail[filename]Displays content of named files
Scroll through file
Scroll through file
Display first 10 lines
Display last 10 lines - 6What is the difference between absolute and relative pathsRelative is from the current directory (../myDoc.txt) where as absolute is from the root directory (/stud/itmasters/xxx08m/docs/myDoc.txt)
- 7Commands: pwd cd(pathname) ls(pathname) mv(pathname1)(pathname2) cp(pathname1)(pathname2)pwd - prints the pathname
cd - changes current directory
ls - lists the contents
mv - changes the name of 1 to 2
cp - copies the contents of 1 to 2 - 8Commands: rm(pathname) mkdir(pathname) rmdir(pathname) lpr(pathname) with -prm - removes files but not directories
mkdir - creates new directory
rmdir - removed directories
lpr - prints files '-p' specifies printer - 9Functions .. ../.. . ~ ~user.. one directory above current
../.. two directories above current
. current directory
~ this users home directory
~user specific users home directory - 10What do permissions lists do?Specify who can do what in a filestore
- 11Permissions List: Who U G OU - The user
G - Members of the Users Groups
O - Others / anyone else - 12Permissions List: What R W XR - Read: lists files in that directory
W - Write: can create and delete files
X - Execute: can cd into that directory - 13What command is used to alter permissions listschmod mode (pathname)
- 14What do the following translate to ? 644 777 400110 100 100 - rw- r-- r--
111 111 111 - rwx rwx rwx
100 000 000 - r-- --- --- - 15What is the default for permissionsrw- r-- r--
- 16Format for changing PermissionsWho - u, g, o
Operation - Grant + or Revoke -
Permission - r, w, x
e.g. chmod u + rwx Admin
Information
- Description
- Flashcards on Lecture 2: UNIX Filestore, created by Brittany Ann on 03/01/2016.
- Created by
- Brittany Ann
- Views
- 3
- Rating