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

A

file link

20
Q

command for hard link

A

ln

21
Q

command for symbolic link

A

ln -s

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

A

ls

24
Q

Create directory

A

mkdir

25
Q

Remove an empty directory

A

rmdir

26
Q

Copy files

A

cp

27
Q

Move or rename files

A

mv

28
Q

Delete files/directories

A

rm

29
Q

delete non-emtpy directories

A

rm -r

30
Q

Create links between files

A

ln

31
Q

determine file type

A

file

32
Q

display file status

A

stat

33
Q

Change access permition

A

chmod

34
Q

Change group of file/dir

A

chgrp

35
Q

Change owner of file/dir (admin only)

A

chown

36
Q

the execution of a command by the Linux kernel

A

a process

37
Q

Each Process in the system has a unique

A

PID ( Process Id) number

38
Q

system call

A

the operating system rountine

39
Q

fork()

A

causes a process to split in two, parent and child

40
Q

what is the position of init daemon

A

PID number 1, similar to root dir in file structure and is the ancestor of all processes

41
Q

After the user logs in, what process becomes the user’s shell process

A

login

42
Q

exec()

A

causes a process’s image (the entire memory layout) to be replaced by that of a different executable file

43
Q

In a linux system, 3 utilities lists the users currently logged on?

A

who, finger and w

44
Q

You can send messaged to users using what command?

A

write

45
Q

to block messages

A

mesg n

46
Q

to re-enable blocked messages?

A

mesg y