6-7 Flashcards

1
Q

What is the maximum filename length in Linux?

A

255

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

Three names for the file permission categories:

A

user, group, other

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

using the setfacl command, what option will delete an ACL (the whole thing)?

A

-b (bomb, -d is for default, not delete)

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

When using the setfacl command, what option will add an ACL?

A

-m (modify)

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

What does the +/- mean on the first permission of a file?

A

ACL is or is not set.

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

T/F: When setting permissions symbolically, commas and space should not be placed between permissions for one group.

A

True

Example: chmod g=rwx,o-r

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

What is wrong with the following link command?

ln -s /home/stu25/fstab.linkname /etc/fstab

A

the linkname and /etc/fstab should be reversed.
you put the real thing first, then the destination.

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

The Linux _____ sets a standard directory structure and promotes interoperability.

A

FHS

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

Using a(n) _____ will allow a finer grain control over a filesystem.

A

ACL

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

Given r–rw-r–, can the owner edit the file if he/she is a member of the group?

A

False/no. Owner/user perms override the others.

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

chmod uses CAPTIAL -R!

A

true

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

All commands support the use of ACLs.

A

False

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

Spaces are supported in Linux filenames, but not recommended.

A

True

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

Using the ln command, what option will create a HARD
link?

A

no option is required (-s is for creating a symbolic/soft link)

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

What Linux command will remove a filesystem link?

A

rm, NOT rmln

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

What is the name of the Kernel security module for access control security policies?

A

SELinux

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

Setting an ACL overwrites other permissions a user has over a file. This is their effective rights.

A

True.

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

What permission would allow a user to only GET INTO a folder, but not see or modify anything?

A

Execute

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

Which file/directory locating command is based on a database?

A

locate

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

Which option cannot be used when creating a compressed tar archive?

A

-x (stands for extract)

21
Q

Of w, who, and users, which command will give the most information?

A

w lol its the shortest one

22
Q

The nano text editor is based on the micro text editor.

23
Q

Which comprehensive date utility will display details on the date, time, NTP synch., and if daylight savings time is active?

A

timedatectl. its the longest/most comprehensive

24
Q

Which compression util. is the oldest and was originally used with Solaris UNIX?

25
What two commands will display and change the server hostname?
hostnamectl, hostname
26
Which newer and best compression util. was the used in our lab environment?
xz (best compression)
27
What option cannot be used when EXTRACTING a compressed tar archive?
-c (this means create)
28
Options are order sensitive when using tar.
True
29
Which key does NOT start entry mode in vi?
u (but a, i, O do)
30
Which keystroke in vi copies a line of text?
yy
31
Which is NOT a vi editor mode?
Insert (entry, command and last line are the correct modes)
32
Which compression utility is most common in the Linux environment?
gzip
33
Which newer pager file viewing util. is the most feature rich?
most (its self-explanatory)
34
Which zip util. has great, but not the best compression?
bzip2 (2nd place, its ok.)
35
What command deletes a file and makes it unrecoverable?
shred
36
lshw, lspci, lsusb display information about the server hardware.
True
37
The option will view the tarball without opening it?
-t (stands for table of contents)
38
The _______ command converts a command's output to another command's arguments.
xargs
39
Which file viewing util. will display FILE LINES in REVerse order?
rev
40
Which file viewing util. will display the file [content] in reverse order?
tac
41
dmesg displays kernel messages.
True
42
What does tar stand for?
Tape archive
43
Which file/directory locating command has the most options and is most powerful, but is the slowest when locating items?
find
44
What do lpstat, lpr, lpq and lprm have in common?
They are printing related commands
45
Why use editor like VI?
all of the above (theyre good things)
46
What are the purposes of: df testdisk free du
df - displays disk statistics per partition testdisk - disk drive troubleshooting tool free - displays physical and virtual RAM statistics du - displays disk consumption of directories
47
What permission can allow users to change their own passwords?
SetUID
48
Filename extensions are NOT optional. They are required for all files.
False, dont need them.
49
There are always ____ parts to a find command.
4 1: find 2: where do you want to look? (/ is the best choice if unknown) 3: options pertaining to the name of the file such as -iname 4: keywords example: find /etc -iname syscon*