Lecture 11 Flashcards

FILE SYSTEMS PERMISSION AND UTILITIES

1
Q

Files and directories are found
through their

A

path name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

path name

A

describe where a particular file or directory can be found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

two methods of controlling who can access a file and how
they can access it

A

traditional access permissions and ACLs (Access Control Lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Three types of users can access a file

A

owner/user, group and other(everyone else)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

command to see permissions for files

A

ls -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

chmod access for all users

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

chmod access for group

A

g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

chmod access for other

A

o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

chmod access for user

A

u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

adding r and removing rx chmod access respectively

A

+r and -rx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

chmod numeric arguments: absolute or relative

A

absolute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

chmod Octal 2: Binary and Permission

A

010: -w-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

chmod Octal 1: Binary and Permission

A

001: –x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

chmod Octal 3: Binary and Permission

A

011: -wx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

chmod Octal 4: Binary and Permission

A

100: r–

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

chmod Octal 5: Binary and Permission

A

101: r-x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

chmod Octal 6: Binary and Permission

A

110: rw-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

chmod Octal 7: Binary and Permission

A

111: rwx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

pointer to a file

20
Q

command for hard link

21
Q

command for symbolic link

22
Q

difference between hard link and sym link

A

hard link:
- direct pointer to file
- You can create a hard link to a file only from within the filesystem that holds the
file.
- You cannot create a hard link to a directory
Sym link:
- Indirect pointer to file, a pointer to the hard link to the file
- You can create a symbolic link to a directory
- A symbolic link can point to any file, even one on a different filesystem and to nonexistent files

23
Q

List directory contents

24
Q

Create directory

25
Remove an empty directory
rmdir
26
Copy files
cp
27
Move or rename files
mv
28
Delete files/directories
rm
29
delete non-emtpy directories
rm -r
30
Create links between files
ln
31
determine file type
file
32
display file status
stat
33
Change access permition
chmod
34
Change group of file/dir
chgrp
35
Change owner of file/dir (admin only)
chown
36
the execution of a command by the Linux kernel
a process
37
Each Process in the system has a unique
PID ( Process Id) number
38
system call
the operating system rountine
39
fork()
causes a process to split in two, parent and child
40
what is the position of init daemon
PID number 1, similar to root dir in file structure and is the ancestor of all processes
41
After the user logs in, what process becomes the user's shell process
login
42
exec()
causes a process's image (the entire memory layout) to be replaced by that of a different executable file
43
In a linux system, 3 utilities lists the users currently logged on?
who, finger and w
44
You can send messaged to users using what command?
write
45
to block messages
mesg n
46
to re-enable blocked messages?
mesg y