Linux Installation Configuration and Command Line Basics 1st Edition Nathan Clark Download PDF
Linux Installation Configuration and Command Line Basics 1st Edition Nathan Clark Download PDF
Linux Installation Configuration and Command Line Basics 1st Edition Nathan Clark Download PDF
com
https://ebookmeta.com/product/linux-installation-
configuration-and-command-line-basics-1st-edition-
nathan-clark/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookmeta.com/product/command-line-rust-1st-edition-ken-
youens-clark/
https://ebookmeta.com/product/efficient-linux-at-the-command-
line-boost-your-command-line-skills-1st-edition-daniel-j-barrett/
https://ebookmeta.com/product/practical-linux-system-
administration-a-guide-to-installation-configuration-and-
management-ken-hess/
https://ebookmeta.com/product/the-linux-command-line-a-complete-
introduction-2nd-edition-william-shotts/
The Linux Command Line A Complete Introduction Second
Edition William Shotts
https://ebookmeta.com/product/the-linux-command-line-a-complete-
introduction-second-edition-william-shotts/
https://ebookmeta.com/product/the-linux-command-line-a-complete-
introduction-2d-edition-william-e-shotts/
https://ebookmeta.com/product/linux-introduce-to-beginners-guide-
unix-operating-system-linux-shell-scripting-and-command-line-
linux-system-1st-edition-erickson-karnel-coding-hood/
https://ebookmeta.com/product/command-line-rust-a-project-based-
primer-for-writing-rust-clis-1st-edition-ken-youens-clark/
https://ebookmeta.com/product/command-line-rust-a-project-based-
primer-for-writing-rust-clis-1st-edition-ken-youens-clark-2/
Linux
Installation, Configuration and
Command Line Basics
Nathan Clark
© Copyright 2018 Nathan Clark. All rights reserved.
No part of this publication may be reproduced, distributed, or
transmitted in any form or by any means, including photocopying,
recording, or other electronic or mechanical methods, without the
prior written permission of the publisher, except in the case of brief
quotations embodied in critical reviews and certain other
noncommercial uses permitted by copyright law.
Every effort has been made to ensure that the content provided
herein is accurate and helpful for our readers at publishing time.
However, this is not an exhaustive treatment of the subjects. No
liability is assumed for losses or damages due to the information
provided.
Any trademarks which are used are done so without consent and
any use of the same does not imply consent or permission was
gained from the owner. Any trademarks or brands found within are
purely used for clarification purposes and no owners are in anyway
affiliated with this work.
Books in this Series
Table of Contents
About This Book
1. What is Linux?
1.1 From UNIX to Linux
1.2 A Brief History of Linux
1.3 Linux Range of Use
1.4 Linux Certifications
2. Software Licenses
3. Linux in Day-to-Day Life
3.1 What is a Linux Distribution?
3.2 Which Linux Distributions Exist?
4. Setting up a Linux System
4.1 Types of Installations
4.2 Installing Linux Step-by-Step
4.3 Adding a Graphical User Interface
4.4 Adding Additional Software
4.5 Exiting Linux
5. Navigating Linux
5.1 The Filesystem Hierarchy Standard (FHS)
5.2 Commands for Directories
5.3 Terminal-based File Managers
5.4 Graphical File Managers
6. Introduction to Linux Terminals
6.1 What is a Terminal?
6.2 What is a Shell?
6.3 Available Shells
7. Essential Linux Commands
7.1 Files and Directories
7.2 Output and Text Processing
7.3 Users and Groups
7.4 Process Management
7.5 Network and System Information
8. Getting Help
8.1 Man Pages
8.2 Info Pages
8.3 Integrated Help
8.4 External Help
Further Reading
About the Author
About This Book
This book has been created to guide you through your very first
steps in the Linux environment. If you are a complete novice, or
need a refresher in Linux, you’ve chosen the right book.
In the upcoming chapters we will cover the Linux diversity and
history and then continue on with setting up a Linux system from
scratch for the end user. Here we will guide you through the setup
and configuration process step by step.
We will take a detailed look at the infamous command line by
covering numerous essential terminal commands. We will also
address specific topics such as choosing a distribution, adding a
graphical user interface, package management, navigating the
filesystem and directories, partitioning, software selection, and using
the help system.
By the end of this book you will have set up and configured Linux
from start to finish, and be able to use Linux at a proficient level.
1. What is Linux?
Linux is the name for the kernel of an operating system that is
based on the UNIX principles. The name is derived from the first
name of its Finnish inventor, Linus Torvalds, and follows the
methodology used by other UNIX-based systems (the last letter is an
x). Today, Linux is developed and maintained by thousands of people
around the world.
The kernel of an operating system is its heart. It is required for
communication between the hardware of your computer and you,
the user. An operating system is a collection of different software
components: a kernel, various tools and the accompanying libraries.
It is a software that extends the basic operating system of your
computer, known as the BIOS.
UNIX
At the beginning of 1965 the development of the Multiplexed
Information and Computing Service (Multics) started. Multics was
the result of a collaboration between the Massachusetts Institute of
Technology (MIT), General Electric (GE) and Bell Labs/AT&T. Led by
the developers Ken Thompson and Dennis Ritchie, the main product
they developed was Unics. Later on it was renamed to UNIX. The
UNIX operating system was mainly in use at the University of
California in Berkeley.
UNIX Variants
The concept of UNIX became licensed to several companies that
developed and maintained their own variant of UNIX. This included
Solaris/SUN OS (SUN Microsystems, nowadays owned by Oracle),
AIX (IBM), Scenix (Siemens), SCO UNIX, Xenix (Microsoft), as well
as HP-UX (Hewlett-Packard), NeXTSTEP, Mac OS (Apple) and
Android (Google).
Open-source implementations comprised of the Berkeley System
Distribution (BSD) with its variants: NetBSD, OpenBSD, and
FreeBSD. Today, Linux is the most popular free software among
open source developers. There is also a strong commercial support
for the systems mentioned above .
We will explain these commands and their usage in more detail later
on in the guide.
Non-specific Certifications
Linux Essentials
LPIC-1: Linux Server Professional Certification
LPIC-2: Linux Engineer
Linux Foundation Certified System Administrator (LFCS)
Linux Foundation Certified Engineer (LFCE)
CompTIA A+
CompTIA Network+
Distribution-specific Certifications
Ubuntu
Ubuntu is a free Linux distribution that is financed by the company
Canonical Ltd. It is based on Debian but focuses on beginners
instead. That’s why it contains just one tool per task. Also, the
Ubuntu team tries to incorporate brand new elements that lack
stability. The packages are made available in .deb format, and are
divided into categories according to their support from Canonical:
Linux Mint
Linux Mint is a non-commercial distribution that is based on Ubuntu
and follows its release scheme. The initial publication dates back to
the year 2006. As of 2014 there have been two releases per year
following the release from Ubuntu by one month. The code name for
the release is a female name that ends with an a , such as Felicia for
version 6. Linux Mint supports the two architectures IA-32 and
amd64. The target of the distribution is desktop users that can use it
easily.
Red Hat Enterprise Linux (RHEL)
RHEL is a commercial Linux distribution. It is based on the
combination of Red Hat Linux (available between 1995 and 2004)
plus Fedora 19 and 20. Its original release dates back to the year
2000. Its focus on business customers includes long-term support,
training, and a certification program (see Chapter 1). Red Hat’s
community project is called Fedora (see below).
The packages are made available in .rpm format (Red Hat Package
Manager). RHEL supports the architectures arm (64 bit), i386,
amd64, powerpc, as well as s390 and zSeries. The distribution
targets both servers and desktops. The code name for the release
looks rather random, as it does not follow a similar scheme as used
for Debian or Ubuntu.
Fedora
Fedora is a community Linux distribution, aimed mainly at desktop
usage. It is based on Red Hat Enterprise Linux (RHEL) and
sponsored by Red Hat. It was launched in 2003 at the time the
support for Red Hat Linux ended. As of 2018 it is available in the
following versions:
Workstation: for pc
Server: for servers
Atomic: for cloud computing
Fedora supports the architectures amd64, ArmHF, powerpc, mips,
s390 and RISC-V. The distribution has a rather short lifecycle where
a new release follows roughly every 6 months. The code name for a
release does not follow a fixed naming scheme but mostly consists
of city names.
CentOS
CentOS abbreviates from the name Community Enterprise Operating
System. As with Fedora it is based on Red Hat Enterprise Linux, and
compatible in terms of the binary packages. This allows the use of
software on CentOS that is initially offered and developed with RHEL
in mind. In contrast to Fedora it focuses on enterprise use for both
desktop and server, with long-term support. The initial release of
CentOS goes back to May 2004. The software packages come from
three different repositories:
openSUSE
The Linux distribution openSUSE has its roots in the distributions
SUSE Linux and the commercial SUSE Linux Professional that saw its
first release in 1994. The name SUSE is an abbreviation for the
original German owner named Gesellschaft für Software- und
Systementwicklung GmbH .
OpenSUSE is based on the structures of Red Hat Linux and
Slackware, and uses .rpm as a software archive format. It is
available for the architectures i586, x86-64 and ARM. The openSUSE
project aims to release a new version every eight months. As with
Fedora, the code name for a release does not follow a fixed naming
scheme.
Arch Linux
Arch Linux is a free Linux distribution that saw its first release in
2002. It follows the principle of a rolling release, which results in
monthly releases of the distribution. Currently the core team consists
of about 25 developers and is supported by a number of other
developers, called trusted users. Arch Linux uses Pacman as a
package management system. The single packages are held in four
software repositories:
Slackware
Slackware is the oldest active Linux distribution. The first release
dates back to 1992. Regular releases are available without a fixed
interval. It targets the professional user, and gives him/her as much
freedom as possible. Slackware uses compressed tar.gz archives as a
package format, and supports the four architectures i486, alpha,
sparc and arm. The distribution was also ported to architecture s390.
4. Setting up a Linux System
As mentioned in the previous chapter, we will be using Debian for
our demonstrations. To recap, Debian is a distribution that provides
great stability and scales up exceptionally well once your skills and
knowledge progress past the beginner stages. In this chapter we will
install and configure Debian, showing you every single step along
the way.
Language Selection
Next, choose the language you prefer to be used during the entire
installation process. The dialogs and messages are translated
accordingly. This selection does not determine irrevocably the
language your Linux system will have, you can always choose a
different language later.
The image below shows the dialog box. English is already pre-
selected, and so you just have to click the Continue button on the
lower-right corner of the dialog box to proceed.
Location Selection
Third, make a selection regarding your location (see image below).
Based on your language setting made before, the countries are
listed in which the chosen language is mainly spoken. This also
influences the locale settings like the time zone your computer is in.
In order to have a different setting choose the entry titled other
from the end of the list and go on from there. When you are done,
click the Continue button to proceed with step four.
Keyboard Selection
Fourth, choose your keyboard layout from the list (see image
below). For the United States the pre-selection is American English.
If you use a different keyboard layout select the right one from the
list. If done click the Continue button to proceed with step five.
Network Setup
Step five includes loading the installer components from the ISO
image, and the detection of the network hardware in order to load
the correct network driver. Then, the installer tries to connect to the
internet to retrieve an IP address via DHCP from your local network
server.
When done, you can set up the hostname of your computer (see
image below). Choose a unique name for your machine that consists
of a single name and does not exist yet in your local network
segment. It is common to use names of fruits, places, musical
instruments, composers and characters from movies. In this case we
choose the name debian95 that simply represents the Linux
distribution and its version number.
When you are done, click the Continue button to proceed with step
six to add a domain name like yourcompany.com (see image below).
In this case it is not needed. That’s why we leave the entry field
empty. Click the Continue button on the lower-right corner to
proceed with the installation.
Users and Roles
Our Linux system needs at least two users in order to be operated
properly. One is an administrative user that has a fixed name root
and the other is a regular user that we just give the name of User in
this case.
In the next two steps you set the password for the user root (see
image below) and both the full name and account name for the
regular user. For simplicity we use Debian User as the full name and
User as the account name. For both users, choose a password that
is dissimilar and that you can remember. You will need these
passwords later in order to log onto your computer.
Time Zone
Setting the correct time zone is of significant importance for
communication with other services, especially in a network. Choose
the value from the list as seen in the image below. The entries in the
list are based on the location you have selected before. When done,
click the Continue button to define the storage media and the
accompanying partitions.
Storage Media and Partitioning
A Linux system can be distributed across a number of different
storage media like hard disks and flash drives. Over and above, a
storage media can be separated into multiple disk partitions. In
order to do so, the setup program of Debian has the following
methods available (see image below):
From the list choose the entry Guided - use entire disk . The values
for partition sizes are chosen according to experience, implemented
as an algorithm. A manual calculation is not required. Click the
Continue button on the lower-right corner to proceed with the
installation .
Next, select the disk to partition. In our case we have only one disk
available (see image below). Later on in this guide the disk will be
referred to as /dev/sda for the 1st SCSI disk.
SPAULDING
SPAULDING
Prunus domestica
1. Lovett Cat. 41, Col. Pl. 1888. 2. Cornell Sta. Bul. 131:192. 1897. 3.
Mich. Sta. Bul. 169:243, 248. 1899. 4. Am. Pom. Soc. Cat. 39. 1899. 5.
Kan. Sta. Bul. 101:121, 122, Pl. V. 1901. 6. Waugh Plum Cult. 122. 1901.
7. Ohio Sta. Bul. 162:239. 1905.
STANTON
Prunus domestica
1. Gard. Mon. 29:116. 1887. 2. Mich. Hort. Soc. Rpt. 288. 1889. 3.
Cornell Sta. Bul. 131:192. 1897.
Stanton’s Seedling 2.
STODDARD
Prunus americana
1. Ia. Hort. Soc. Rpt. 78. 1892. 2. Am. Pom. Soc. Rpt. 88. 1895. 3. Am.
Pom. Soc. Cat. 38. 1899. 4. Ia. Sta. Bul. 46:289. 1900. 5. U. S. D. A. Rpt.
478, Pl. LXII. 1902.
Baker 2. Stoddart 1, 2.
STONELESS
Prunus insititia
1. Duhamel Trait. Arb. Fr. 2:110, Pl. 20 fig. 14. 1768. 2. Kraft Pom. Aust.
2:42, Tab. 194 fig. 2. 1796. 3. Mag. Hort. 9:165. 1843. 4. Poiteau Pom.
Franc. 1. 1846. 5. Mas Pom. Gen. 2:121, fig. 61. 1873. 6. Hogg Fruit Man.
726. 1884. 7. Mathieu Nom. Pom. 450. 1889.
Die Pflaume ohne Stein 2. Jean Morceau 3. Kirke’s Stoneless 6, 7.
Pflaume Ohne Steine 5. Pitless 5, 7. Prune Sans-Noyau 4. Sans-Noyau 1,
5. Sans Noyau 3, 6, 7. Steinlose Zwetsche 7. Stoneless 5, 7.
Fruit small, oval, dark purple, with thick bloom; flesh greenish-yellow,
harsh and strongly acid at first but assuming a more pleasant flavor as it
shrivels upon the tree.
SUGAR
SUGAR
Prunus domestica
1. Cal. State Bd. Hort. 47. 1897-98. 2. Burbank Cat. 5 fig. 1899. 3.
Waugh Plum Cult. 124. 1901. 4. U. S. D. A. Rpt. 275, Pl. XXXVI fig. 2.
1903.
Sugar Prune 1, 4.
SURPRISE
SURPRISE
1. Wis. Sta. Bul. 63:61 fig. 30. 1897. 2. Ia. Hort. Soc. Rpt. 112. 1899. 3.
Am. Pom. Soc. Cat. 38. 1899. 4. Wis. Hort. Soc. Rpt. 69. 1900. 5. Ia. Sta.
Bul. 46:289. 1900. 6. Wis. Sta. Bul. 87:18. 1901. 7. Waugh Plum Cult. 175.
1901. 8. Ia. Hort. Soc. Rpt. 228. 1904. 9. Ill. Hort. Soc. Rpt. 426. 1905. 10.
S. Dak. Sta. Bul. 93:39. 1905.
TENNANT
TENNANT
Prunus domestica
1. Bailey Ann. Hort. 133. 1893. 2. Oregon Sta. Bul. 45:32. 1897. 3. Am.
Pom. Soc. Cat. 40. 1899. 4. Can. Exp. Farm Bul. 2nd Ser. 3:57. 1900. 5.
Waugh Plum Cult. 124. 1901. 6. Budd-Hansen Am. Hort. Man. 326. 1903.
Tennant Prune 1. Tenant Prune 4.
TRAGEDY
TRAGEDY
Prunus domestica
1. Cal. State Bd. Hort. 236, Pl. II fig. 5, 237. 1890. 2. Ibid. 109 fig. 8.
1891. 3. Wickson Cal. Fruits 358. 1891. 4. N. Mex. Sta. Bul. 27:125. 1898.
5. Am. Pom. Soc. Cat. 40. 1899. 6. Waugh Plum. Cult. 124. 1901.
Tragedy Prune 1, 3, 4.
Tragedy is another western plum which, like the Tennant, has not
been well tested in the East. It is an older plum than the Tennant and
somewhat better known in New York but still the reports of it are not
sufficient in number or of great enough range to enable a fair opinion
to be given as to its merits. As the variety grows at Geneva the fruits
are very attractive in appearance—above medium size, a dark, rich
purple color, and having the full, rounded form much liked by
consumers in a dessert plum. The flesh is juicy, tender and sweet so
that the quality may be called good; possibly the flesh is a little too
soft for long shipping or long keeping as it grows here, though in one
of the California references it is spoken of as “valuable for eastern
shipment.” The trees are very satisfactory except that in New York
they are not quite as reliable in bearing as could be wished. A fault,
as the variety grows here and which may be local, is that a large
proportion of the pits are cracked and all are soft and granular. The
tree is reported by some as “scale proof” but unfortunately this
statement can neither be denied nor affirmed. A plum with the good
qualities possessed by Tragedy, should be better known in New
York.
The following history is contributed by Professor E. J. Wickson,
Berkeley, California. Tragedy originated as a chance seedling on the
farm of O. R. Runyon, near Courtland, Sacramento County,
California, probably in the late seventies. It was first offered to the
trade in dormant buds by W. R. Strong and Company of Sacramento
in 1887. Since the German Prune and Duane Purple grew on the
place of its origin and as it shows characters of both, it has been
noted as a probable cross of these varieties. The name Tragedy is
understood to have been given to the fruit by Mr. Runyon because
the plum was noted to be desirable on or about a day upon which a
certain event held to be tragical occurred in the neighborhood. In
1899, the American Pomological Society considered Tragedy worthy
a place in its list of fruits.
TRANSPARENT
Prunus domestica
1. Downing Fr. Trees Am. 395. 1857. 2. Flor. & Pom. 56, Col. Pl. fig.
1862. 3. Hogg Fruit Man. 383. 1866. 4. Downing Fr. Trees Am. 950. 1869.
5. Jour. Hort. N. S. 17:258. 1869. 6. Am. Pom. Soc. Rpt. 91. 1869. 7. Am.
Pom. Soc. Cat. 24. 1871. 8. Pom. France 7: No. 25. 1871. 9. Mas Pom.
Gen. 2:31, fig. 16. 1873. 10. Cat. Cong. Pom. France 365. 1887. 11.