Linux Flashcards
What is the BIOS?
BIOS (Basic Input/Output System) initializes and tests hardware components when you turn on your computer and helps to start the main operating system.
What is the Boot Loader?
A boot loader is a small program stored that helps load and start your computer’s operating system.
What is a Kernel?
A kernel is the core component of an operating system that manages system resources, such as CPU, memory, and devices. It acts as an intermediary between software applications and the hardware, enabling programs to run smoothly and efficiently on your computer.
What is systemd?
systemd is a tool in Linux that helps start and manage programs and services when your computer turns on.
What is systemctl?
systemctl is a command-line tool used to control the systemd system and service manager. It allows you to start, stop, and check the status of services.
What is the Filesystem Hierarchy Standard (FHS)
The Filesystem Hierarchy Standard (FHS) is a set of guidelines that define the structure and organization of directories in Linux and Unix-like operating systems. It ensures consistency across distributions.
What command is used to type out a file?
cat
What command is used to show the first few lines of a file?
head
What command is used to show the last few lines of a file?
tail
What command is used to view documentation?
man
How to halt the system?
shutdown -h
How to reboot the system?
shutdown -r
What command is used to type out a file with line numbers?
cat -n
What is the purpose of the pipeline (|)
The pipeline is a symbol (|) used to connect two or more commands and redirect the output of one command as the input of the next command. It allows you to combine multiple commands and perform complex operations on the output of one command.
Example:
ls | grep .txt
This command lists all the files and directories in the current directory using the ls command, and then pipes the output to the grep command. The grep command searches the input for lines that contain the string “.txt”, and displays them as the output. Therefore, the final output of the above command will be a list of all the files in the current directory that have the “.txt” extension.
What is the find command used for?
The find command is used to search for files and directories. It searches the file system in real-time and shows you the most current information about the file system. It’s slower than locate.
What is the locate command used for?
The locate command is used to search for files and directories using a pre-built database. It’s faster than find but may not show you the most up-to-date information about the file system.
What is apt-get in Linux?
apt-get is a package management tool used to install, update, and remove packages in Debian-based systems.
What is apt-cache in Linux?
apt-cache is a tool used to search and display information about packages in the Debian package repository cache.
syntax: apt-cache [options] command [package]
example: apt-cache search git