CH.18/7 Flashcards

1
Q

When you log on as administrator, what is the home directory?Pg.883

A

/root

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

What is the home directory for other users? Pg.883

A

/home

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

Where is user account information stored?Pg.883

A

/etc/passwd file

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

What is the current directory concept?Pg.883

A

The directory on which all file and directory commands operate.

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

Name some directory commands and usage?Pg.883

A
pwd-to see current dir
cd-change current dir to home
cd~-from current dir to home
cd(.)-indicates current dir
cd(..)-indicates parent dir
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command will you use to get a directory listing?Pg.884

A

ls
ls -F ( tells dir from files, dir indicated by /)
ls -l list file details; name, owner, group, D/T last Mod, size, links(shortcuts), file permissions

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

How are permissions represented in Linux?Pg.884

A

rwx=read,write,execute 3x(3 grps of 3 letters) ,9 spaces complete

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

What does a dash/hyphen indicate in the permission set?Pg.886

A

permission not granted for that specific operation

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

How are the file permissins delegated?Pg.886

A

First rwx=owner, second rwx=group, and third rwx=all other users

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

How do you change permissions for a file?Pg.887

A

chmod with a who code:u,g,o,a; action code:+,- =,s and perm code:rwx

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

If I wanted to change ownership of shots dir from root to user ID nds, grp ID nrs. What is the command?Pg.886

A

chown nds.nrs shots

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

cp -ar does what? Pg.886

A

copies everything from source to destination

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

T/F To delete a dir no longer needed you simply type rmdir. Pg.887

A

False. It must be empty first then delete it

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

What is the command line to delete a directory tree? Pg.887

A

rmdir -p

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

What command is used to get configuration in Linux? Pg.887

A

ifconfig

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

How do you add the contents of a dir to another dir? Pg.886

A

cp -ar

17
Q

To move a file which command do you use?Pg. 886

A

mv