05 Flashcards

1
Q

The ____ command displays the file name of the terminal connected to standard output

A

tty

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

A ____________ (___) is emualted by other programs

A ___ is the slave part of a ___ that proviodes an interface that behaves exactly like like a classic terminal

A

psuedo terminal pty

pts pty

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

The ____/___________ file restricts the users ability to login as root on any other terminal besides the console.

There are two exceptions to this rule ____________ must be enabled, and the __________ _______ of tools must not be active

A

etc/securetty

securetty

OpenSSH suite

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

_________ is an open-source utility for forwarding messages

What file do you modify in order to edit/see log messages?

A

rsyslog

/etc/rsyslog.conf

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

What are the two separate fields in /etc/rsyslog?

A

selector and action

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

Where is the selector field in rsyslog.conf located? And what does it consist of?

A

On the left side, facility. Level

facility: categories of system processes that can generate messages
level: represents a p[riority relating to the severity of the or importance of the level

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

Where is the action field in rsyslog.conf located and what does it consist of?

What does it mean if a line has a comment in front?

A

where the data resulting from facility.level will be sent

its commented out

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

How do I determine if a shell is a login or non-login shell? What command gives you this information?

A

if there is a ~ in front its a login shell, you use echo $0

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

what key log file displays login/logou information?

Which one lists user’s name, tty (pts/5), login time and related information for the current user

A

/usr/bin/last

/usr/bin/last

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

How do i see the settings/parameters of xinetd services?

What do each of these optional attributes mean?
access_times
only_from

How can I see what system telnet is only allowed to communicate with?

A

/etc/xinetd.d/(network service)

The network service can only be used during these certain times
The network service can only be used from x ip address

more /etc/xinetd.d/telnet

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

How do I see the ports that all the network services are mapped too?

How do I see all the ports mapped to rpc services?

A

more /etc/services

more /etc/rpc

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

How do I add an ip address too an NIC?

How do i delete an ip address from a NIC?

How do I bring a network device up/online?

How do I bring a network device offline/down?

A

ipaddr add 192.168.0.43/24 dev eth0

ipaddr del 192.168.0.43/24 dev eth0

ip link set eth0 up

ip link set eth0 down

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

What is a key networking file that maps ip addresses to hostnames, one line per ip IP address

A

/etc/hosts

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