01 Introducing Linux
01 Introducing Linux
01 Introducing Linux
Ahmed Sultan
Senior Technical Instructor
ahmedsultan.me/about
1
Outlines
• Like any operating system, Linux has characteristics that may or may not fit the
needs of a given organization.
• Here are a few general considerations:
✓Free: No licensing fees or tracking associated with most Linux distributions.
✓Security: Because of the open-source nature of Linux and its associated software,
many developers can and do review code for vulnerabilities. Such vulnerabilities tend
to be addressed quickly.
✓Support: Community-driven support may provide easy, efficient, and cost-effective
solutions. However, support may be limited to the community, without a strong
corporate support structure implemented by the distribution’s vendor.
• Because anyone can create and release their own version of Linux, there are
thousands of different options.
• These individual releases are called distributions (or "distros" for short).
• Distributions are purpose-specific versions of Linux that address a specific need,
such as system security or application hosting.
• Many distributions trace their history back to one of two specific Linux
distributions: Red Hat Linux or Debian Linux.
• One of the main differentiators between these two distros is how they manage
software.
• Those distros derived from Red Hat Linux use different software managers than
those derived from Debian Linux.
Linux+ (XK0-005) © netriders.academy 11
UNDERSTAND LINUX DISTRIBUTIONS (cont.)
• CLI advantages:
✓Quicker: It’s usually quicker to execute a series of commands at the CLI (assuming
you know the commands).
✓Performance: CLI environments consume fewer hardware resources, leaving those
resources free to support the server’s purpose.
✓Scriptable: CLI commands can be written into a text file, which the system then reads
and executes in a consistent, efficient, repeatable, and scheduled manner.
• Just as there are many different Linux distributions, there are also many different
Linux graphical environments.
• Windows and macOS users have one GUI available to them—whatever graphical
environment Microsoft and Apple choose to provide.
• Linux users have the freedom to install zero, one, or many GUI environments and
switch between them.
• Other common Linux shells include ksh, or KornShell, which is common among
Unix servers; Zsh, or Z Shell, with quite powerful scripting capabilities; and Fish,
or friendly interactive shell, an interface that provides a user-friendly experience
and web-based configurations.
• By way of comparison, Windows Server also uses shells: the traditional, DOS-like
cmd.exe shell and Microsoft PowerShell.
• The current (at the time of this writing) default shell for macOS is the Zsh.
• Command-Subcommand Syntax
✓Many Linux commands support subcommands to specify particular information that
the sysadmin needs.
✓The sysadmin enters the primary command, then follows it with a space and a
subcommand, and then a space and argument.
• Typing the history command displays the contents of the history file.
• Each entry in the file is numbered.
• Type ! and the command number executes that command.
• Vim is very powerful and complex. It uses three different modes, where each
mode maps keyboard keys to different functions.
• For example, in Insert mode the keyboard acts as normal, inserting text into the
file.
• If you’re in Insert mode and type "abc," those three characters appear in the file’s
content.
• Some Linux distributions install both Vim and Nano by default, while others will
include only one or the other.
• It is essential for you to be able to use both editors at a very basic level (open,
edit, save, close) so that you are capable of editing files with whichever tool is
available.
• There are three types of accounts on Linux systems: root, standard user, and
service.
• The administrator account in Linux is called root.
• Logging in to the system with administrator access is frowned upon.
• The security best practice is to log on with a standard user account, and then, if
necessary, switch your user account to root.
• The command to accomplish this is su.
• Type su root to switch from the standard user to root.
• Type exit to leave the root user and return to the standard user.
• It’s common for new Linux users to ask for help and then be asked, “Did you
check the man pages?” That’s because man pages are the primary reference for
standard Linux commands.
• The man pages provide syntax information and usage examples.
• Perhaps most important, the available options are displayed.
• Because of the number of options for each command, and the fact that many
options differ from command to command, the man pages provide an essential
quick reference.
• The syntax for using man pages is man {command}
• For example, to display help for the ls command, type man ls.