Fundamentals of Linux
eBook - ePub

Fundamentals of Linux

Explore the essentials of the Linux command line

Oliver Pelz

  1. 234 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Fundamentals of Linux

Explore the essentials of the Linux command line

Oliver Pelz

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Develop a solid understanding of the important command-line tools and utilities in LinuxAbout This Book• Delve into the fundamentals of Linux• Explore and work with virtualization, command lines, and Bash shell scripts• Use special file permission flags such as setuid and setgidWho This Book Is ForFundamentals of Linux is for individuals looking to work as a Linux system administrator.What You Will Learn• Explore basic and advanced command-line concepts• Install Linux, work with VirtualBox, and install CentOS 7 in VirtualBox• Work with the command line efficiently and learn how to navigate through the Linux filesystem• Create file and user group permissions and edit files• Use Sticky bit to secure your Linux filesystem• Define and remove ACL from Linux filesIn DetailLinux is a Unix-like operating system assembled under the model of free and open source software development and distribution. Fundamentals of Linux will help you learn all the essentials of the Linux command line required to get you started. The book will start by teaching you how to work with virtualization software and install CentOS 7 Linux as a VM. Then, you will get to grips with the workings of various command line operations, such as cursor movement, commands, options, and arguments. As you make your way through the chapters, the book will not only focus on the most essential Linux commands but also give an introduction to Bash shell scripting. Finally, you will explore advanced topics, such as networking and troubleshooting your system, and you will get familiar with the advanced file permissions: ACL, setuid, and setgid. Fundamentals of Linux includes real-world tasks, use cases, and problems that, as a system administrator, you might encounter in your day-to-day activities.Style and approachA step-by-step guide filled with real-world examples that will cover the fundamentals of Linux

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Fundamentals of Linux un PDF/ePUB en línea?
Sí, puedes acceder a Fundamentals of Linux de Oliver Pelz en formato PDF o ePUB, así como a otros libros populares de Computer Science y Operating Systems. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2018
ISBN
9781789537529
Edición
1
Categoría
Computer Science
Categoría
Operating Systems

More Advanced Command Lines and Concepts

In this chapter, we are going to take a look at the following:
  • Basic networking concepts
  • Installing new software and updating the system
  • Introduction to services
  • Basic system troubleshooting and firewalling
  • Introduction to ACL
  • setuid, setgid, and sticky bit

Basic networking concepts

In this section, you will learn the foundations of networking in Linux. Everything about networking is within the classic domain of Unix and Linux, and, in fact, the old Unix folks do say that Unix has been created for network communication. Linux is considered one of the best systems to use, learn, test, play, diagnose, and troubleshoot computer networks because a lot of great tools are available in Linux for free and come right out of the box, or just need a single command to install. There's a lot to learn about the subject of computer networks, and here we can only teach you the fundamentals of it using the CentOS 7 Linux operating system.
Now, let's learn about computer networks from 10,000 up. The two most fundamental concepts in networking are the network, or subnetwork, and the IP address. The three most important facts every Linux user needs to know are the network, or sometimes called the subnetwork, the IP address, and the rules of the network:
  • Rule 1: The network
Every network, or sometimes called subnetwork, has a so-called network address consisting of only numbers, which looks like this:
  • Rule 2: The IP address
Every computer needs an IP address for communication, which is part of a subnetwork's address. In our example, the first three numbers divided by dots are the same between the IP addresses and the network address:
  • Rule 3: The same network
The easiest way for network communication between two or multiple computers is to connect them physically (for example, by using network cables and a single switch), and then put them in the same network, which means choosing all of the computers' IP addresses from the same range as our subnetwork's network address. In our example, choose 10.0.2 as the first three digits for all our IP addresses. As you can see, only the last digit is variable. Every computer that wants to talk to another computer in the same network then only needs the correct IP address of the recipient. This is also the basic setup of almost all private networks you may have at home:
As we have just learned, for normal network communication, all participants need to be in the same network. If this was all there was to networking, we would have to stop here and modern communication and the World Wide Web would not exist. The reality is that there are millions of networks connected together around the globe, such as our own private one, which are all connected through routers. If you want to communicate with another machine in your network or any other network, your computer needs to have a so-called IP routing table that defines static routes or the next hop towards a particular destination. This IP routing table is part of every Linux operating system. For example, if we have a private network consisting of three subnetworks with the following IP network addresses, if you want to get into contact with another computer in your subnetwork, your routing table could work the following way. If there is an entry in the table that defines what to do if someone wants to access the IP address of the 10.0.2.0 subnetwork, for example, with the IP 10.0.2.15, there is a route entry in the table that defines that you should hop to the 10.0.2.0 network:
The same happens if you want to access the machine with the IP address 192.168.122. Because there is an entry in the table, the routing table will hop to the 192.168.1.0 network that this computer is part of:
For all the other IP addresses where there is no explicit rule, the so-called default route will be used. In most private networks, the default rule is the IP address of a real hardware router, which basically is the same as an IP routing table, but which can do more, as it is connected to other routers around the globe where it will find its way to the correct destination address:
This is also called dynamic routing, as the router or path between the source and the destination can vary depending on which routers it will use. Normally, each private network that most internet service providers offer has only one public IP address that connects to the public internet:
All machines from our private network need to go via this router, with its single public IP address, if they want to communicate with other computers in the public internet.
On the other hand, if an outside public machine from the internet wants to access the private computers from our subnetwork, the router needs to handle the correct delivery of messages to the correct recipient, which has an internal IP address only visible within our private network.
But how can you define an IP address for a computer? The IP address needs to be set on an OS level in the correct configuration location associated with a certain network interface:
But, as mentioned before, the IP addresses need to be unique in the same subnetwork; otherwise, the correct recipient for a network message cannot be found.
So, how can you take care of that? The first approach is to manually manage a list of computers and all free and reserved IP addresses available in this network. Here, we need to assign static IP addresses, which means every computer gets an IP address hardcoded into the system, which will not change and remain stable:
Often, important services in networks, such as a mail or web server, have a static IP because they must be reacha...

Índice

  1. Title Page
  2. Copyright and Credits
  3. Packt Upsell
  4. Contributor
  5. Preface
  6. Introduction to Linux
  7. The Linux Command Line
  8. The Linux Filesystem
  9. Working with the Command Line
  10. More Advanced Command Lines and Concepts
  11. Other Books You May Enjoy
Estilos de citas para Fundamentals of Linux

APA 6 Citation

Pelz, O. (2018). Fundamentals of Linux (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/771694/fundamentals-of-linux-explore-the-essentials-of-the-linux-command-line-pdf (Original work published 2018)

Chicago Citation

Pelz, Oliver. (2018) 2018. Fundamentals of Linux. 1st ed. Packt Publishing. https://www.perlego.com/book/771694/fundamentals-of-linux-explore-the-essentials-of-the-linux-command-line-pdf.

Harvard Citation

Pelz, O. (2018) Fundamentals of Linux. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/771694/fundamentals-of-linux-explore-the-essentials-of-the-linux-command-line-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Pelz, Oliver. Fundamentals of Linux. 1st ed. Packt Publishing, 2018. Web. 14 Oct. 2022.