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.

A

False

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?

A

compress

25
Q

What two commands will display and change the server hostname?

A

hostnamectl, hostname

26
Q

Which newer and best compression util. was the used in our lab environment?

A

xz (best compression)

27
Q

What option cannot be used when EXTRACTING a compressed tar archive?

A

-c (this means create)

28
Q

Options are order sensitive when using tar.

A

True

29
Q

Which key does NOT start entry mode in vi?

A

u (but a, i, O do)

30
Q

Which keystroke in vi copies a line of text?

A

yy

31
Q

Which is NOT a vi editor mode?

A

Insert (entry, command and last line are the correct modes)

32
Q

Which compression utility is most common in the Linux environment?

A

gzip

33
Q

Which newer pager file viewing util. is the most feature rich?

A

most (its self-explanatory)

34
Q

Which zip util. has great, but not the best compression?

A

bzip2 (2nd place, its ok.)

35
Q

What command deletes a file and makes it unrecoverable?

A

shred

36
Q

lshw, lspci, lsusb display information about the server hardware.

A

True

37
Q

The option will view the tarball without opening it?

A

-t (stands for table of contents)

38
Q

The _______ command converts a command’s output to another command’s arguments.

A

xargs

39
Q

Which file viewing util. will display FILE LINES in REVerse order?

A

rev

40
Q

Which file viewing util. will display the file [content] in reverse order?

A

tac

41
Q

dmesg displays kernel messages.

A

True

42
Q

What does tar stand for?

A

Tape archive

43
Q

Which file/directory locating command has the most options and is most powerful, but is the slowest when locating items?

A

find

44
Q

What do lpstat, lpr, lpq and lprm have in common?

A

They are printing related commands

45
Q

Why use editor like VI?

A

all of the above (theyre good things)

46
Q

What are the purposes of:
df
testdisk
free
du

A

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
Q

What permission can allow users to change their own passwords?

A

SetUID

48
Q

Filename extensions are NOT optional. They are required for all files.

A

False, dont need them.

49
Q

There are always ____ parts to a find command.

A

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*