Identify Features of Linux Flashcards
Lesson 15A (61 cards)
Ubuntu 20 running the GNOME desktop with a virtual terminal window open to run commands
in the Bash command environment.
Viewing the root directory and file system hierarchy standard (FHS) subdirectories in Ubuntu Linux.
Listing package manager sources in Ubuntu Linux.
Listing all processes on the system. Note that a question mark indicates that a process has no controlling terminal.
Listing the state of running processes.
kernal
the core of the operating system, acting as the bridge between hardware and software applications.
distribution (distro)
a complete, packaged operating system built upon the Linux kernel.
shell
a command-line interpreter that acts as an interface between the user and the operating system’s kernel.
bash
is a powerful command-line interpreter and scripting language.
shell
Linux provides various shell environments, such as Bash, zsh, and ksh, enabling users to interact with the OS and applications. These shells differ in functionality, including tab completion, command history, and syntax highlighting.
distros
Many Linux distros operate without a graphical interface, relying on a terminal connected to the shell via a teletype (tty) device. Input and output are managed through three primary streams:
- stdin (0): User keyboard input
- stdout (1): Displays shell-generated output
- stderr (2): Handles error messages
For systems with a graphical desktop environment, Linux uses Xorg as the display system.
Popular desktop environments include Gnome, KDE, Cinnamon, and Xfce. Within these, a terminal emulator allows users to access the command shell.
Console switching lets users toggle between multiple tty consoles using:
CTRL+ALT+Fx, where each console can support distinct login prompts and shells.
Linux commands
consist of a command name, optional switches for modifying behavior, and arguments that specify data; execution can be streamlined using pipes (|
) for redirection or semicolons (;
) to run multiple commands sequentially.
executable
is a file that the operating system can directly run to execute a program or script.
PATH
is an environment variable that lists the directories where the shell searches for executable files when a command is entered.
switches or options
They are used to customize a command’s actions, for example, enabling or disabling features, or providing additional instructions.
Arguments
are values supplied to the command for it to operate on, such as file names. Arguments must be supplied in the correct order for the command’s
syntax.
semicolon
You can issue more than one command on a single line by placing a semicolon ( ; ) between the commands.
Command –help
The help is often several pages long so it common to pipe the output to the** more **command. more shows the results a page at a time. For example: ls
–help | more
Alternatively, you can use **man **to view the help pages for a particular command.
Linux file editors like Nano
provide a simple interface with keyboard shortcuts, while vi/vim offer advanced functionality using insert and command modes, requiring specific keystrokes for editing (i
for insert, :w
to save, :q!
to quit without saving). esc key to escape mode.
Linux organizes everything as files within a unified file system:
starting at /
, distinguishing devices like /dev/sda
for storage, avoiding Windows-style drive letters, and following the File System Hierarchy Standard (FHS) for directories like /home
for user data and /etc
for configurations, navigation using commands like pwd
, cd
, ls
, and cat
.
Navigation Commands
pwd command
The **pwd**
command displays the current working directory, because any commands you use which don’t specify a path as an argument will
default to the working directory; some Linux prompts show this location directly or represent the home directory with a tilde (~
).
Navigation Commands
cd
command
changes the current working directory, allowing navigation between directories using absolute paths (e.g., cd /etc
from root), relative paths (e.g., cd documents
within the current directory), or moving up one level (cd ..
).