Linux Flashcards
What is a linux kernel?
- The Linux Kernel is a low-level systems software whose main role is to manage hardware resources for the user.
- ‘Kernell’ basically refers to that core component of the computer operating system that provides basic services for the other parts as well as interacts with user commands.
Why use linux?
It is an open-source operating system where programmers get the advantage of designing their own custom OS
Software and the server licensing required to install Linux is completely free and can be installed on many computers as required
It has low or minimum but controllable issues with viruses, malware, etc
It is highly secured and supports multiple file systems
What is the LILO Boot loader
Linux Loader
- boot loader for the Linux operating system to load it into the main memory so that it can begin its operations.
How to check memory on Linux
1 - /proc/meminfo
2 - ‘free -m’
3 - vmstat
4 - top
Maximum file name length
255
How do you redirect stderr in linux?
2>&1
What is a typical size for a swap partition under a Linux system?
The preferred size for a swap partition is twice the amount of physical memory available on the system. If this is not possible, then the minimum size should be the same as the amount of memory installed.
What are daemons?
Daemons are services that provide several functions that may not be available under the base operating system. Its main task is to listen for service request and at the same time to act on these requests. After the service is done, it is then disconnected and waits for further requests.
How do you stop and start system services in linux
systemctl start
systemctl stop
systemctl restart
systemctl status
How do you automatically start a linux service on boot?
systemctl enable
systemctl disable
How do you check how long a process took to start in linux
systemd-analyze blame
What command tells you inode space
df -i
What are the process states in Linux
New/Ready Running Blocked/Waiting Terminated/Completed Zombie
Explain process management system Calls in Linux
- fork(): used to create a new process
- exec(): Execute new process.
- wait(): wait until process execution.
- exit(): exit from the process.
What is network bonding
Network Bonding is a process of combining two or more network interfaces to form a single network interface.