Linux Primer for Network Engineers Flashcards

1
Q

why network engineers shoud learn Linux

A
  1. Network devices have Linux shell
  2. Network devices allow running containers
  3. Most software development environments are Linux-based
  4. New open source projects such as Open vSwitch, Docker, and OpenStack all have a Linux foundation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what attributes have made Linux popular in programming

A
  1. Capable of both scale and micro footprint
  2. It is open source
  3. Development and fixes provided faster
  4. Can run almost on any hardware
  5. Stability
  6. Availability of tools
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

where sudo privileges are given

A

in sudoers file

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

which Linux distributions does not provide root account by default

A

Ubuntu and Debian (note: Redhad and Centos provide it)

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

explain -a

A

do not ignore entries starting with “.”

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

explain -A (–almost-all)

A

do not list implied “.” and “..”

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

what is relative path

A

relative to current or working directory

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

what is absolute path

A

relative to the root directory /

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

what does ../.. do

A

back two directories

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

what does cd - do

A

back to previous working directory

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

what are the two main operating systems

A

Redhat Ent Linux, Debian

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

what are the most common RHEL derivatives

A

Fedora and Centos

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

what are the most common Debian derivatives

A

Ubuntu, Mint

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

list components of RHEL package mgmt

A
  • rpm - install package
  • yum - download and install package from repo
  • .rpm - file extension
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

list components of Debian package mgmt

A
  • dpkg - install local package
  • apt and apt-get - download and install package from repo
  • .deb - file extension
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

command for making all required sub-directories in the path

A

mkdir -p

17
Q

command to remove an entire directory tree

A

rm -r

18
Q

command to remove an empty directory

A

rmdir

19
Q

remove directory and all contens including write protected files

A

rm -rf

20
Q

what does “more” do

A

shows file content and displays on page at a time controlled by “space”

21
Q

what does “less” do

A

same as more but allows you to scroll up and down using “arrows”

22
Q

what does “head” do

A

show ten first lines of a file

23
Q

what does “tail” do

A

show ten last lines of a file

24
Q

command to compare two files together

A

diff

25
Q

explain “u+rw,u-x,go-rwx”

A

owner can read and write, all others don’t have access

26
Q

displays real time processor utilization

A

top

27
Q

displays real time processor utilization in an easier to read format

A

htop

28
Q

displays the current user’s active processes

A

ps

29
Q

displays all users’ active processes

A

ps aux

30
Q

how to kill all instances of a process

A

killall

31
Q

sends a signal to end a process by name

A

pkill