Linux Guide Contents

Total Page:16

File Type:pdf, Size:1020Kb

Linux Guide Contents LINUX GUIDE CONTENTS 1. Introduction-of-Linux 2. Is Linux hard to learn ? 3. Difference between Unix and Linux ? 4. Features of Linux 5. Command line interface 6. Advantage or Disadvantage 7. Connect to Linux 8. Hardware information 9. Terminal shortcut 10. Basic command 11. Vim Editor 12. How to edit text documents using vi editor 13. User and group 14. File system 15. Disk Partitions 16. Formatting 17. Mounting a partition 18. Directory structure 19. File Type 20. File permissions 21. Files processing 22. Cut 23. Paste 24. Copy 25. Jion 26. Grep © CEHPOINT E-LEARNING 2020 ( 1 ) 27. Sed 28. Awk 29. Find 30. Locate 31. Archives 32. RegEx & Wildcards 33. Network configuration 34. Troubleshooting 35. Services 36. Package management 37. Yum & Rpm 38. Remote connection 39. FTP,NFS,SAMBA Contributors Abhinay Kumar, Gulam Rabbany(MrGr33n) © CEHPOINT E-LEARNING 2020 ( 2 ) Chapter 1 Introduction-of-Linux The architecture of Linux can be divided into four levels of functionality as shown in below figure. Hardware - It is a combination of all peripherals associated with the system. For example, RAM, CPU,Hard disk etc... Kernel - It is the core part of the operating system and manages the CPU, memory, and peripheral devices. The kernel is the "lowest" level of the OS. Linux kernel is written in the version of the C programming language. It is responsible for all major activities of this operating system.It manages the communication between devices and software, manages the system resources (like CPU time, memory, network...) and shields of the complexity of device programming from the developer as it provides an interface for the programmer to manipulate hardware. Shell - Shell acts as a user interface, interpreting user commands and starting an application. Users typically interact with a Linux shell using a terminal emulator, however, direct operation via serial hardware connections, or networking sessions, are common for server systems. System utilities - The system tools are built using the system libraries and enable administrators to administer the system, manage processes, navigate on the file system, execute other applications,configure the network etc.. The Linux OS is a collection of a number of components The Boot-loader - It is a program that loads the Linux kernel into the computer's main memory, by being executed by the computer when it is turned on and after the firmware initialization is performed. The kernel - It is the core part of the operating system and manages the CPU, memory, and peripheral devices. Daemons - These are background services that either startup during boot, or after you log into the desktop. The Shell - Shell is a command processor that allows you to control the computer via commands typed into a text interface. System Libraries - System libraries are special programs that help in accessing the kernel's features. Programmers have developed a standard library of procedures to communicate with the kernel. Each operating system supports these standards and then these are transferred to system calls for that operating system. Graphical Server - This is the sub-system that displays the graphics on your monitor. It is commonly referred to as the X server or just "X". © CEHPOINT E-LEARNING 2020 ( 3 ) System Tools- Linux OS has a set of utility tools which are usually simple commands. It is a software which GNU projects has written and published under their open source license so that software is freely available to everyone. What is Linux ? Like Windows and Mac OS, Linux is the best known and most used open source operating system. As an operating system, Linux manages the communication between your software and your hardware. Without the operating system, the software wouldn't function.Linux is a multi-tasking and multi-user operating system. Linux was originally developed for personal computers but due to its some fantastic features and robustness, it is used in with various hardware. Currently Linux is a very popular operating system for servers. Linux is the leading operating system on servers and mainframe computers, and is used on 99.6% of the TOP 500 super computers. Some mobile operating systems like Android are also built on Linux kernel.As Linux is an opensource version of Unix, Linux kernel code is freely available. You can download the Linux kernel code and modify it as per your business requirement and create your own operating system. Because of the dominance of Android on smartphones, Linux has the largest installed base of all general purpose operating systems. Difference between Unix and Linux ? Unix is an operating system developed in the 1970s at Bell Labs by Ken Thompson, Dennis Ritchie, and others. Unix and Linux are similar in many ways, and in fact, Linux was originally created to be similar to Unix. Both have similar tools for interfacing with the systems, programming tools, filesystem layouts, and other key components. However, Unix is not free. Over the years, a number of different operating systems have been created that attempted to be unix-like or unix-compatible, but Linux has been the most successful, far surpassing its predecessors in popularity. Is Linux hard to learn ? If you will take Linux as general operating system software then Linux is even easier than other operating systems. Linux is not only a powerful OS but it is easy to use and has lots of flexibility for user.Current there are lots of GUI (Graphics user interface) available in Linux. But still the command line interface of Linux is great. You can solve your all problems using a simple command line.Once you will start using Linux you will realize the biggest power of Linux as easy to use. Difference between Unix and Linux ? Unix is an operating system developed in the 1970s at Bell Labs by Ken Thompson, Dennis Ritchie, and others. Unix and Linux are similar in many ways, and in fact, Linux was originally created to be similar to Unix. Both have similar tools for interfacing with the systems, programming tools, filesystem layouts, and other key components. However, Unix is not free. Over the years, a number of different operating systems have been created that attempted to be unix-like or unix-compatible, but Linux has been the most successful, far surpassing its predecessors in popularity. © CEHPOINT E-LEARNING 2020 ( 4 ) Chapter 2 Is Linux hard to learn ? If you will take Linux as general operating system software then Linux is even easier than other operating systems. Linux is not only a powerful OS but it is easy to use and has lots of flexibility for user.Current there are lots of GUI (Graphics user interface) available in Linux. But still the command line interface of Linux is great. You can solve your all problems using a simple command line.Once you will start using Linux you will realize the biggest power of Linux as easy to use. © CEHPOINT E-LEARNING 2020 ( 5 ) Chapter 3 Difference between Unix and Linux ? Difference between Unix and Linux ? Unix is an operating system developed in the 1970s at Bell Labs by Ken Thompson, Dennis Ritchie, and others. Unix and Linux are similar in many ways, and in fact, Linux was originally created to be similar to Unix. Both have similar tools for interfacing with the systems, programming tools, filesystem layouts, and other key components. However, Unix is not free. Over the years, a number of different operating systems have been created that attempted to be unix-like or unix-compatible, but Linux has been the most successful, far surpassing its predecessors in popularity. © CEHPOINT E-LEARNING 2020 ( 6 ) Chapter 4 Features of Linux Multi-User :Multiple users can access system resources at the same time. Multi tasking :Multiple jobs can run at the same time. Multiprogramming :Linux is a multiprogramming system meaning multiple applications can run at same time. Open Source :Linux is an open source operating system, a freely distributed, cross-platform operating system based on Unix. Portable :All programs can run on different systems in the same functionality. Communication :Linux provides Electronic mail. The communication may be within the network of a single computer, or between two or more such computer networks. Hierarchical File System :Linux has the hierarchical file system. start from / (root) directory. Shell :It provides an interface to the users to run their programs. Security :Linux provides high security. users and passwords are strictly managed. In Linux no need for other anti-malware applications because itself provides high security. Help Facility :Linux provides manual pages for LINUX commands. Widely used Linux distributionsDebian : It is a non-commercial distribution and one of the earliest, maintained by a volunteer developer community with a strong commitment to free software principles and democratic project management. Knoppix: It is the first Live CD distribution derived from Debian to run completely from removable media without installation to a hard disk. Linux Mint Debian Edition (LMDE): It uses Debian packages directly. Ubuntu: It is a desktop and server distribution derived from Debian, maintained by British company Canonical Ltd.Kubuntu, the KDE version of Ubuntu.Linux Mint, a distribution based on and compatible with Ubuntu. Supports multiple desktop environments.Trisquel, an Ubuntu-based distribution based on Linux-libre kernel composed entirely of free software.Elementary OS, an Ubuntu-based distribution with a strong focus on the visual experience without sacrificing performance. Fedora :It is a commercial distribution sponsored by American company Red Hat. It aims to be a technology testbed for Red Hat's commercial Linux offering, where new open source software is prototyped, developed, and tested in a communal setting before maturing into Red Hat Enterprise Linux.Red Hat Enterprise Linux (RHEL): It is a derivative of Fedora, maintained and commercially © CEHPOINT E-LEARNING 2020 ( 7 ) supported by Red Hat.
Recommended publications
  • Linux Установка Linux ROSA Desktop
    Установка Linux ROSA Desktop FRESH R11 KDE Plasma и обзор дистрибутива https://info-comp.ru/drugieopersistemi/735-linux-rosa-desktop-fresh-r11.html Приветствую Вас на сайте Info-Comp.ru! Сегодня мы подробно рассмотрим процесс установки на компьютер дистрибутива операционной системы Linux ROSA Desktop FRESH R11 с графической оболочкой KDE Plasma , а также мы поговорим об особенностях данной версии дистрибутива. Содержание Linux ROSA Desktop FRESH R11 Особенности Linux ROSA FRESH R11 KDE Plasma – обзор нововведений Системные требования Linux ROSA FRESH R11 KDE Plasma Пошаговая установка Linux ROSA Desktop FRESH R11 KDE Plasma Шаг 1 – Скачивание установочного образа Шаг 2 – Создание установочного носителя Шаг 3 – Загрузка с установочного носителя Шаг 4 – Выбор языка Шаг 5 – Принятие условий лицензионного соглашения Шаг 6 – Выбор раскладки клавиатуры Шаг 7 – Выбор способа переключения между раскладками клавиатуры Шаг 8 – Выбор часового пояса Шаг 9 – Настройка даты и времени Шаг 10 – Разметка жесткого диска Шаг 11 – Установка (копирование файлов) Шаг 12 – Параметры загрузки Шаг 13 – Задаём пароль для администратора (root) Шаг 14 – Создание пользователя Шаг 15 – Задаем имя компьютера Шаг 16 – Выбор сервисов Шаг 17 – Завершение установки Скриншоты Linux ROSA Desktop FRESH R11 KDE Plasma Видео-инструкция по установке Linux ROSA Desktop FRESH R11 KDE Plasma Linux ROSA Desktop FRESH R11 ROSA Desktop FRESH – это бесплатный дистрибутив операционной системы Linux, предназначенный для домашних компьютеров. Его можно абсолютно свободно без каких-либо регистраций скачать и установить на домашний компьютер. Разработкой и поддержкой дистрибутива занимается Российская компания «РОСА» ( ООО «НТЦ ИТ РОСА» ), поэтому на этот дистрибутив точно стоит обратить внимание. На текущий момент актуальной версией дистрибутива является версия ROSA Desktop FRESH R11, она доступна с графическими оболочками : KDE 4, KDE Plasma 5, Xfce и LXQt.
    [Show full text]
  • Устанавливаем Одноранговую Сеть Zeronet В Linux Keepassxc
    Кастомизируем экран входа в Ubuntu 20.04 – 20.10 и Pop!_OS KeePassXC – Надежное решения для хранения паролей Устанавливаем одноранговую сеть ZeroNet в Linux В этом выпуске вы узнаете Устанавливаем одноранговую сеть ZeroNet в Linux Устанавливаем браузер Vivaldi в Linux Blender – программное обеспечение для компьютерной графики Rosa Linux – Установка российского дистрибутива KeePassXC – Надежное решения для хранения паролей Shodan – рассматриваем уязвимость роутеров Asus Убираем полосу от Dock-панели в графической оболочке XFCE Zim – Текстовый редактор для создания заметок Кастомизируем экран входа в Ubuntu 20.04 – 20.10 и Pop!_OS Устанавливаем одноранговую сеть ZeroNet в Linux ZeroNet – одноранговая сеть, которая не нуждается в серверах и работает по технологии BitTorrent, данная сеть не являетсся анонимной, но, способна работать с поддержкой использования сети совместно с Tor. На сайте уже упоминалось о других сетях, которые возможно вас заинтересуют, например сеть i2p, или сеть Yggdrasil. Сеть ZeroNet сильно распространена в Китае, за счет того, что позволяет обойти системы фильтрации интернет- контента. Имеется поддержка операционных систем Linux, Windows, OS X и Android. Что же касается сайтов в данной сети, то они не нуждаются в серверах, а поддерживается пирами, каждый из которых и является тем самым сервером. Благодаря такой модели, доступ к ресурсам не возможно запретить, и не возможно выключить или заблокировать ссервер. Установка ZeroNet Установку ZeroNet буду производить на Ubuntu 20.04, то точно так же вы сможете установить данную сеть и в других дистрибутивах, благодаря тому, что исходники мы будем скачивать с GitHub. По большому счету, в установке нет не чего сложно, но, вам необходимо убедиться в установленной утилите “wget”, в случае ее отсутствия, установите ее прежде чем двигаться дальше.
    [Show full text]
  • Search for Drivers
    Search for drivers There are often cases when a couple of devices does not work properly in your computer out of the box under Linux. The reason for this may be too new hardware (not yet implemented in the kernel), the absence of necessary Linux drivers (not provided by hardware vendors), too obsolete hardware, incompatible devices (e.g. storage controller and drive model, etc.) or a defect. According to data from the Linux-Hardware.org, at least 10% of Linux users encounter such problems. According to our statistics, the most problematic devices are: • WiFi cards • Bluetooth cards • Card readers • Fingerprint readers • Smart card readers • Printers • Scanners • Modems • Graphics cards • Webcams • DVB cards • Multimedia controllers If a device does not work, then this does not mean that it cannot be configured properly. Sometimes you can find a more suitable kernel or a third-party driver for a device on the Internet. To search for the required kernel, you can use the LKDDb database, where all Linux kernel versions are indexed for supported device drivers, or search for a solution on forums and similar resources. Today we are launching a new way to find drivers — by creating of hardware probes! If a driver was not loaded for some device in your computer probe, then the database engine will offer a suitable kernel version or known third-party drivers. The same information is presented on each PCI/USB device page in the database. A probe can be created by the following command (there is an AppImage for other Linux distributions): hw-probe -all -upload The drivers search is carried out on the basis of LKDDb database for kernels from 2.6.24 to the newest 5.0 version.
    [Show full text]
  • Debian-Paketmanagement
    Debian-Paketmanagement Axel Beckert und Frank Hofmann Onyx Neon Debian-Paketmanagement ii Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Axel Beckert, Frank Hofmann Das Buch "Debian-Paketmanagement" von Frank Hofmann und Axel Beckert ist lizenziert unter einer Creative Commons Na- mensnennung - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz. Debian-Paketmanagement iii VERSIONSGESCHICHTE NUMMER DATUM BESCHREIBUNG NAME debian/0_2021.03.01- 2021-09- 42-g5ca0d33 17T23:18:06+00:00 Debian-Paketmanagement iv Inhaltsverzeichnis I Konzepte 1 1 Willkommen im Linux-Dschungel! 2 1.1 Was ist Debian?....................................................2 1.2 Debian-Architekturen.................................................3 1.2.1 Debian-Ports-Projekt.............................................3 1.2.2 Pakete für alle Architekturen.........................................4 1.2.3 Multiarch: Mehrere Architekturen gleichzeitig auf einem System......................4 1.2.4 Bevor es Multiarch gab............................................5 1.3 Vom tar.gz zur Linux-Distribution........................................5 1.4 Debians Paketsystem.................................................5 1.5 Welche UNIX-artigen Betriebssysteme verwenden das Paketformat und das APT-Paketmanagement.......6 2 Software in Paketen organisieren 7 2.1 Was ist Paketmanagement...............................................7 2.2 Varianten und Formate für Softwarepakete......................................8 2.3 Softwarestapel und Ebenen..............................................9
    [Show full text]
  • Tv & Streaming
    Calibre: Ultimative E-Book-IDE QuiteRSS: Flexibler FeedreaderCOMMUNITY-EDITION Treecle: Informationen konvertiert in viele Formate S. 58 bändigt die Nachrichtenflut S. 44 sammeln mit System S. 49 Frei kopieren und beliebig weiter verteilen ! 04.2015 04.2015 Mediatheken und Mediaserver, IP-TV ohne Settop-Box, Chromecast für PCs V & STREAMING T TV & STREAMING • Kommerzielles IP-TV TV & STREAMING ohne Settop-Box S. 16 Mediatheken ohne S. 32 • Youtube fernsteuern Youtube • Browser durchstöbern • Treecle • Kompakter Mediaserver für das Heimnetz S. 36 • Rodent Kodi mit DVB-C-Repeater, Chromecast mit dem PC S. 23, 26 QuiteRSS Löchrige Software unkompliziert absichern S. 84 Wie Sie mit Firejail gefährdete Programme und Prozesse in abgeschottete Bereiche sperren und den Zugriff auf das Dateisystem strikt reglementieren Apps für Firefox-Handys S. 90 Komfort für Musiker S.72 • Firejail • Kali Linux • Firejail Eigene Anwendungen für Firefox OS im Mit dem Carla-Host beliebige Plugins Webbrowser entwickeln und austesten in jedes Audioprogramm einbinden Firefox OS Firefox Fernbedienung für Youtube S. 52 Dateiverwaltung mit Rodent S. 66 Verwirrspiel Dotslash S. 94 Videoclips auf dem Rechner Solider XFFM-Nachfolger mit Was es mit der mysteriösen • Carla vom Mobilgerät aus steuern flexiblem Funktionsumfang Kombination auf sich hat CALIBRE • CARLA • FIREJAIL • KALI • QUITERSS • TREECLE • TREECLE • QUITERSS FIREJAILKALICARLA • • • CALIBRE • EUR 5,95 EUR 6,70 sfr 11,90 EUR 7,00 EUR 7,95 EUR 7,95 Calibre Calibre 04 www.linux-user.de Deutschland Österreich Schweiz Benelux Spanien Italien 4 195111 005955 04 001-001_titel_LU_04.indd 1 05.03.15 10:00 Editorial Legale Sabotage Sehr geehrte Leserinnen und Leser, manche Missstände gibt es schon so Werbebranche, ungeachtet dessen, was lang, dass Sie uns kaum noch ins Be- das für den Anwender bedeutet – Haupt- wusstsein dringen.
    [Show full text]
  • Linux-Laptops Linux-Lap
    COMMUNITY-EDITIONHaiku: BeOS-Klon Usrmerge: Grundlegender bekommt Wandel im Dateibaum S. 94 Frei kopieren und beliebig weiter verteilen ! 08.2019 08.2019 Kompatible Notebooks und Komponenten, umsteigerfreundliche Mobilgeräte TOPS LINUX-LAPTOPS LINUX-LAP Crostini: Mehr Freiheit und Flexibilität für Chromebooks S. 40 Thunderbolt-Dock: Laden und erweitern an einer Leitung S. 26 Surface Pro 6: Stressfrei von Windows zu Linux wechseln S.34 Notebooks: Dauerläufer InfinityBook Pro 15 v4 und Kraftprotz Tuxedo Book XP1610 im Test S. 22, 30 Dubiose Tuning-Tipps auf dem Prüfstand S. 80 Spectre, Zombieload und Foreshadow: Wie sehr die Fixes gegen aktuelle CPU- Sicherheitslücken ein typisches Linux-Desktop-System tatsächlich ausbremsen Intuitiver Videoschnitt Drucker als Spionage-Tool Mit dem freien Editor Flowblade Wie moderne Geräte heimlich Seiten komplexe Projekte stemmen S. 50 markieren und was dagegen schützt S. 88 Top-Distris auf der Heft-DVD CPU-BUGS • DEDA-TOOLKIT • FOCUSWRITER • HIBISCUS • SEPTOR • SEPTOR • HIBISCUS • FOCUSWRITER • DEDA-TOOLKIT • CPU-BUGS EUR 8,50 EUR 9,35 sfr 17,00 EUR 10,85 EUR 11,05 EUR 11,05 08 www.linux-user.de Deutschland Österreich Schweiz Benelux Spanien Italien 4 196067 008502 08 08 Mit kraftvollen Komponenten und 30 einem ungewöhnlichen Formfak- Laden und erweitern an einem tor zielt Tuxedo beim XP1610 auf den mo- Hibiscus bietet sicheren Zugriff 26 Kabel – das Thunderbolt-Dock bilen Desktop. Wir testen in dieser Ausgabe, 66 auf die üblichen Online-Banking- ermöglicht den Anschluss von Peripherie wie sich der Core-i7-Bolide bei typischen Funktionen und hilft außerdem dabei, die und versorgt den Laptop mit Strom. Aufgaben im Alltag schlägt.
    [Show full text]
  • INSIDE! Double-Sided DVD Double-Sided
    COLLABORATIVE LINUX LINUX PRO MAGAZINE FREE LIBREBOOT and the DVD OFFICE SUITES: 4 Keep your team in sync liberation of firmware ISSUE ISSUE 210 Double-Sided DVD MAY 2018 MAY 2018 MAY INSIDE! FREE BOOT! Free Boot! Libreboot and the liberation of firmware Electron Collaboration Suites Electron BorgBackup Ghost KNIME Countdown Web programming meets the desktop KNIME Powerful data analysis platform for non-programmers Ghost CMS Is this free blogging tool better than WordPress? Bash Tricks Manipulating binary data Raspberry Pi Slideshow Beam out your message Issue 210 FOSSPicks May 2018 US$ 15.99 • e MenuLibr CAN$ 17.99 0 Jasonette NitroShare Nootka • Flameshot 74820 58049 • Chomper • NitroShare: Easy cross-platform file exchange • Nootka: Cool learning tool for teaching guitarists classical notation Tutorial Build your own 3 • Jasonette: Create Android apps with 05 minimal coding GPS app WWW.LINUXPROMAGAZINE.COM EDITORIAL Welcome HATS OFF TO LARRY Dear Reader, We all loved it when Microsoft finally embraced Linux after was already working on its cloud portfolio, and they have a history of attacking it. Some of those outrageous sound labored systematically since then to transform their busi- bites like “Linux is a cancer…” got played back in trium- ness around cloud services (just like everyone else is phant retrospective as we all marked the passing of an era doing). If you were an observer from another planet, and remarked on the how far we’d come. watching the behavior of Oracle the way Jane Goodall Should we be doing the same thing now with Oracle and the watched the behavior of wild chimpanzees, you would cloud? Oracle founder Larry Ellison made headlines back in never have guessed that these people who were artfully 2008 with some very theatrical denunciations of the cloud in- executing this methodical entry into the enterprise cloud dustry.
    [Show full text]