Linux Primer for Network Engineers Flashcards
why network engineers shoud learn Linux
- Network devices have Linux shell
- Network devices allow running containers
- Most software development environments are Linux-based
- New open source projects such as Open vSwitch, Docker, and OpenStack all have a Linux foundation
what attributes have made Linux popular in programming
- Capable of both scale and micro footprint
- It is open source
- Development and fixes provided faster
- Can run almost on any hardware
- Stability
- Availability of tools
where sudo privileges are given
in sudoers file
which Linux distributions does not provide root account by default
Ubuntu and Debian (note: Redhad and Centos provide it)
explain -a
do not ignore entries starting with “.”
explain -A (–almost-all)
do not list implied “.” and “..”
what is relative path
relative to current or working directory
what is absolute path
relative to the root directory /
what does ../.. do
back two directories
what does cd - do
back to previous working directory
what are the two main operating systems
Redhat Ent Linux, Debian
what are the most common RHEL derivatives
Fedora and Centos
what are the most common Debian derivatives
Ubuntu, Mint
list components of RHEL package mgmt
- rpm - install package
- yum - download and install package from repo
- .rpm - file extension
list components of Debian package mgmt
- dpkg - install local package
- apt and apt-get - download and install package from repo
- .deb - file extension
command for making all required sub-directories in the path
mkdir -p
command to remove an entire directory tree
rm -r
command to remove an empty directory
rmdir
remove directory and all contens including write protected files
rm -rf
what does “more” do
shows file content and displays on page at a time controlled by “space”
what does “less” do
same as more but allows you to scroll up and down using “arrows”
what does “head” do
show ten first lines of a file
what does “tail” do
show ten last lines of a file
command to compare two files together
diff
explain “u+rw,u-x,go-rwx”
owner can read and write, all others don’t have access
displays real time processor utilization
top
displays real time processor utilization in an easier to read format
htop
displays the current user’s active processes
ps
displays all users’ active processes
ps aux
how to kill all instances of a process
killall
sends a signal to end a process by name
pkill