Linux Int
Linux Int
- Linux is an open-source, Unix-like operating system. Unlike Unix, which is proprietary, Linux is
freely available and developed collaboratively.
- The key components include the Linux kernel, shell, file system, and various utilities and
applications.
- The kernel is the core of the operating system that manages hardware, system resources, and
communication between software and hardware.
- Linux uses a hierarchical file system starting from the root directory (`/`), with various
subdirectories for system files, user files, and configuration files.
- A file is a collection of data stored on disk, while a directory is a container that holds files and
other directories.
- Use the `rm` command for files and `rm -r` for directories.
9. **What command would you use to copy files in Linux?**
- `cron` is a time-based job scheduler. Use `crontab -e` to edit scheduled jobs.
19. **What is the `top` command, and what information does it provide?**
### Networking
- Examples include `apt` (Debian-based), `yum` (Red Hat-based), and `zypper` (openSUSE).
27. **How do you install a new package using `apt`?**
### Security
- Generate keys with `ssh-keygen` and copy the public key to `~/.ssh/authorized_keys` on the
remote server.
- `fail2ban` is a tool to prevent brute-force attacks by blocking IPs with too many failed login
attempts.
- SELinux enforces security policies by restricting program capabilities based on security labels.
- Docker is a containerization platform that uses Linux features such as cgroups and namespaces to
isolate applications.
- Use `docker` commands such as `docker run`, `docker ps`, `docker pull`, and `docker build`.
- Kubernetes is a container orchestration platform that manages Docker containers across a cluster
of Linux nodes.
- Check boot logs using `journalctl -xb`, review bootloader configuration, and ensure the kernel and
initramfs are correctly configured.
These questions cover fundamental and advanced Linux topics, providing a broad overview of
essential concepts and practical skills for interviews.