Fundamentals of Linux

Total Page:16

File Type:pdf, Size:1020Kb

Fundamentals of Linux Fundamentals of Linux Student Workbook Fundamentals of Linux Fundamentals of Linux Jeff Howell Published by ITCourseware, LLC., 7245 South Havana Street, Suite 100, Centennial, CO 80112 Contributing Authors: Mark Copley, Rob Roselius Editor: Rick Sussenbach Assistant Editor: Jan Waleri Special thanks to: Many instructors whose ideas and careful review have contributed to the quality of this workbook, including Larry Burley and Richard Raab, and the many students who have offered comments, suggestions, criticisms, and insights. Copyright © 2008 by ITCourseware, LLC. All rights reserved. No part of this book may be reproduced or utilized in any form or by any means, electronic or mechanical, including photo-copying, recording, or by an information storage retrieval system, without permission in writing from the publisher. Inquiries should be addressed to ITCourseware, LLC., 7245 South Havana Street, Suite 100, Centennial, Colorado, 80112. (303) 302-5280. All brand names, product names, trademarks, and registered trademarks are the property of their respective owners. Page ii Rev 3.1.2 © 2008 ITCourseware, LLC Fundamentals of Linux Contents Chapter 1 - Course Introduction ........................................................................................................... 11 Course Objectives .......................................................................................................................... 12 Course Overview ........................................................................................................................... 14 Using the Workbook ...................................................................................................................... 15 Suggested References ..................................................................................................................... 16 Chapter 2 - Getting Started ................................................................................................................... 19 What is UNIX? .............................................................................................................................. 20 A Brief History of UNIX ................................................................................................................. 22 Linux .............................................................................................................................................. 24 The Toolkit Philosophy ................................................................................................................... 26 Linux Distributions .......................................................................................................................... 28 Free Software and Open Source Movements .................................................................................. 30 Logging In ...................................................................................................................................... 32 Logging Out ................................................................................................................................... 34 Try a Few More Commands ........................................................................................................... 36 Changing Your Password ................................................................................................................ 38 Online Documentation - man Pages ................................................................................................. 40 Online Documentation - info Pages .................................................................................................. 42 Labs ............................................................................................................................................... 44 Chapter 3 - The File System - Files ....................................................................................................... 47 What is a File? ................................................................................................................................48 The ls Command ............................................................................................................................ 50 The cat Command .......................................................................................................................... 52 The more and less Commands ........................................................................................................ 54 The head and tail Commands .......................................................................................................... 56 Copy, Rename, and Delete: cp, mv, rm ............................................................................................ 58 File Names ..................................................................................................................................... 60 Working with MS-DOS disks: mtools ............................................................................................. 62 Labs ............................................................................................................................................... 64 © 2008 ITCourseware, LLC Rev 3.1.2 Page iii Fundamentals of Linux Chapter 4 - The File System - Directories ............................................................................................. 67 Hierarchical File System .................................................................................................................. 68 Pathnames ...................................................................................................................................... 70 pwd and cd - Navigating Directories ............................................................................................... 72 mkdir and rmdir - Managing Directories .......................................................................................... 74 The cp Command (again) - Copy Files ............................................................................................ 76 Two Useful Directory Names - . and .. ............................................................................................ 78 Labs ............................................................................................................................................... 80 Chapter 5 - Text Editors ....................................................................................................................... 83 Linux Text Editors ........................................................................................................................... 84 The pico Editor ............................................................................................................................... 86 The Nedit Editor ............................................................................................................................. 88 The Emacs Text Editor .................................................................................................................... 90 The vi Text Editor Family ................................................................................................................ 92 Labs ............................................................................................................................................... 94 Chapter 6 - Editing With vi .................................................................................................................... 97 What is vi? ..................................................................................................................................... 98 Getting Started - vi Buffering ......................................................................................................... 100 Command Mode and Insert Mode ................................................................................................ 102 Getting Started ............................................................................................................................. 104 Moving the Cursor Around ........................................................................................................... 106 Inserting Text ................................................................................................................................ 108 Deleting a Character or Line ......................................................................................................... 110 Undo Last Command ................................................................................................................... 112 Opening a New Line ..................................................................................................................... 114 Save Your Work or Abort the Session ........................................................................................... 116 Review of vi Commands ............................................................................................................... 118 Labs ............................................................................................................................................. 120 Chapter 7 - Personal Utilities .............................................................................................................. 123 The date Utility ............................................................................................................................
Recommended publications
  • Veusz Documentation Release 3.0
    Veusz Documentation Release 3.0 Jeremy Sanders Jun 09, 2018 CONTENTS 1 Introduction 3 1.1 Veusz...................................................3 1.2 Installation................................................3 1.3 Getting started..............................................3 1.4 Terminology...............................................3 1.4.1 Widget.............................................3 1.4.2 Settings: properties and formatting...............................6 1.4.3 Datasets.............................................7 1.4.4 Text...............................................7 1.4.5 Measurements..........................................8 1.4.6 Color theme...........................................8 1.4.7 Axis numeric scales.......................................8 1.4.8 Three dimensional (3D) plots..................................9 1.5 The main window............................................ 10 1.6 My first plot............................................... 11 2 Reading data 13 2.1 Standard text import........................................... 13 2.1.1 Data types in text import.................................... 14 2.1.2 Descriptors........................................... 14 2.1.3 Descriptor examples...................................... 15 2.2 CSV files................................................. 15 2.3 HDF5 files................................................ 16 2.3.1 Error bars............................................ 16 2.3.2 Slices.............................................. 16 2.3.3 2D data ranges........................................
    [Show full text]
  • Mobile Phones and Cloud Computing
    Mobile phones and cloud computing A quantitative research paper on mobile phone application offloading by cloud computing utilization Oskar Hamrén Department of informatics Human Computer Interaction Master’s programme Master thesis 2-year level, 30 credits SPM 2012.07 Abstract The development of the mobile phone has been rapid. From being a device mainly used for phone calls and writing text messages the mobile phone of today, or commonly referred to as the smartphone, has become a multi-purpose device. Because of its size and thermal constraints there are certain limitations in areas of battery life and computational capabilities. Some say that cloud computing is just another buzzword, a way to sell already existing technology. Others claim that it has the potential to transform the whole IT-industry. This thesis is covering the intersection of these two fields by investigating if it is possible to increase the speed of mobile phones by offloading computational heavy mobile phone application functions by using cloud computing. A mobile phone application was developed that conducts three computational heavy tests. The tests were run twice, by not using cloud computing offloading and by using it. The time taken to carry out the tests were saved and later compared to see if it is faster to use cloud computing in comparison to not use it. The results showed that it is not beneficial to use cloud computing to carry out these types of tasks; it is faster to use the mobile phone. 1 Table of Contents Abstract ..................................................................................................................................... 1 Table of Contents ..................................................................................................................... 2 1. Introduction .......................................................................................................................... 5 1.1 Previous research ........................................................................................................................
    [Show full text]
  • Lightweight Distros on Test
    GROUP TEST LIGHTWEIGHT DISTROS LIGHTWEIGHT DISTROS GROUP TEST Mayank Sharma is on the lookout for distros tailor made to infuse life into his ageing computers. On Test Lightweight distros here has always been a some text editing, and watch some Linux Lite demand for lightweight videos. These users don’t need URL www.linuxliteos.com Talternatives both for the latest multi-core machines VERSION 2.0 individual apps and for complete loaded with several gigabytes of DESKTOP Xfce distributions. But the recent advent RAM or even a dedicated graphics Does the second version of the distro of feature-rich resource-hungry card. However, chances are their does enough to justify its title? software has reinvigorated efforts hardware isn’t supported by the to put those old, otherwise obsolete latest kernel, which keeps dropping WattOS machines to good use. support for older hardware that is URL www.planetwatt.com For a long time the primary no longer in vogue, such as dial-up VERSION R8 migrators to Linux were people modems. Back in 2012, support DESKTOP LXDE, Mate, Openbox who had fallen prey to the easily for the i386 chip was dropped from Has switching the base distro from exploitable nature of proprietary the kernel and some distros, like Ubuntu to Debian made any difference? operating systems. Of late though CentOS, have gone one step ahead we’re getting a whole new set of and dropped support for the 32-bit SparkyLinux users who come along with their architecture entirely. healthy and functional computers URL www.sparkylinux.org that just can’t power the newer VERSION 3.5 New life DESKTOP LXDE, Mate, Xfce and others release of Windows.
    [Show full text]
  • Installation Minimale De Debian Avec Serveur X Installation Minimale De Debian Avec Serveur X
    27/09/2021 06:52 1/6 Installation minimale de Debian avec serveur X Installation minimale de Debian avec serveur X Objet : Méthode d'installation minimale de Debian Niveau requis : débutant, avisé Commentaires : Il peut être intéressant d'installer les programmes séparément en partant d'un système minimal pour gagner en réactivité, pour avoir un système configuré selon ses besoins ou simplement pour en connaître un peu plus sur le fonctionnement de Debian. Débutant, à savoir : Utiliser GNU/Linux en ligne de commande, tout commence là !. Suivi : Création par smolski le 14/05/2010 Testé par paskal le 26-10-2013 Commentaires sur le forum : Lien vers le forum concernant ce tuto1) Pourquoi ? L'installation par défaut de Debian permet à l'utilisateur d'avoir un système complet et utilisable dès le premier démarrage : bureautique, Internet, jeux, multimédia, infographie… Néanmoins, il peut être intéressant d'installer les programmes séparément en partant d'un système minimal 1. pour gagner en réactivité, 2. pour avoir un système configuré selon ses besoins 3. ou simplement pour en connaître un peu plus sur le fonctionnement de Debian. Pré requis La procédure n'est pas compliquée. Je pars du principe que vous savez effectuer une installation par défaut de Debian de bout en bout et ne reviendrai que très peu sur cette partie. Je vous conseille également d'avoir un peu de bouteille sous Debian ou les systèmes GNU/Linux en général et d'être relativement à l'aise avec le terminal, une partie de l'installation ne se fera pas en mode graphique. Ceci étant dit, allons-y ! Installation du système Debian minimal Le début de la procédure est identique à l'installation par défaut, démarrez sur un CD ou USB netinstall et suivez les instructions.
    [Show full text]
  • BU KİTABI ÇALIN ~ Bu Kitabı Çalın
    ~ BU KİTABI ÇALIN ~ Bu Kitabı Çalın Ocak 2014 3 İçindekiler Teşekkür...............................................................................................4 Giriş......................................................................................................5 1. EXIF ve GPS.....................................................................................6 2. Sosyal Medyada Açık Hesaplar......................................................13 3. Ünlü Olmak....................................................................................17 4. Budala Son Kullanıcı......................................................................18 5. Twitter'ın Karanlık Yüzü.................................................................20 6. PGP Kullanın..................................................................................23 7. Google Hesabı Silmek....................................................................31 8. Big Brother = Usta.........................................................................36 9. Kimyasal Silah Kullanımı ve Amerika............................................39 10. Arka Kapı......................................................................................44 11. AKP, Baskı ve Polis Devleti...........................................................47 12. Online Kripto Araçları..................................................................50 13. CV Rekabetçiliği...........................................................................53 14. SteamOS'un Düşündürdükleri.....................................................56
    [Show full text]
  • Libreoffice Spreadsheet Cell Will Not Calculate
    Libreoffice Spreadsheet Cell Will Not Calculate Deryl systematized remittently if cosier Thom kaolinises or points. Drumlier Bart hawsed no upgrader confutes conqueringly after Grove tartarize magisterially, quite agglutinate. Vadose Otho bulged some stereochromy after Anglo-Saxon Prentiss cocainizes thinkingly. Excepteur sint occaecat cupidatat non consecutive list numbers, spreadsheets allowed if you did know what spreadsheet cells that we will select a particular document contains an exchange online or. Calc makes a: once with text, little until you. Now if not academically more about spreadsheets more non consecutive list or not cause of spreadsheet will distribute normally distributed measurements are designing spreadsheets more information. The squirrel is to duke a particular column case is based on different comparison of the butterfly in the. Complete they have not run around with. Let us begin with not as needed! And will understand how often do i could not calculating percentage of a calculation times, spreadsheets include a cyclic or. Note that will not change formula then run at some of spreadsheet with. - If i edit each cell provide the writer document the spreadsheet is not updated neither allow other cells are re-calculated on the writer document 2- The. How had you smell in LibreOffice Calc? Terex sales value will not visible on rails software. Libreoffice calc define range Botas Rudel. Column so I discovered OpenOffice sum function not working- before is. The apostrophe will best appear why the dough and many number but be formatted as attorney If apostrophe is not removed calculation operations will not be include. You may contain several empty cells window and final dialog boxes or products were trying but x data? LibreOffice Calc Calculations and the Formula Bar Ahuka.
    [Show full text]
  • Spreadsheet-Based Complex Data Transformation
    Spreadsheet-based complex data transformation Hung Thanh Vu Dissertation submitted in fulfilment of the requirements for the degree of Doctor of Philosophy School of Computer Science and Engineering University of New South Wales Sydney, NSW 2052, Australia March 2011 Supervisor: Prof. Boualem Benatallah i Acknowledgements I am very grateful to Professor Boualem for his exceptional unconditional support and limitless patience. He was the first person who taught me how to do research; how to write and present a complex research problem. He has always been there for me when I have any difficulties in research. He is one of the best supervisors I have ever worked with. Without his support, this thesis would never be completed. My sincere thanks go to Dr Regis Saint-Paul for his fruitful collaborations and providing me invaluable research skills. I also wish to express my gratitude to the members of the SOC group, who spent a lot of time discussing with me on the research issues and giving me helpful advice. I would like to thank Dr Paolo Papotti for insightful discussions on data exchange as well as mapping tools Clio, Clip, and +Spicy; Assisstant Professor Christopher Scaffidi for answering my questions on Topes; Associate Professor Wang-Chiew Tan and Dr Bogdan Alexe for helping me understand STBenchmark; Dr Wei Wang for helpful discussions on similarity join and its related algorithms; and some members of XQuery WG and XSLT WG including Daniela Florescu, Jerome Simeon, and Michael Kay for giving me advice on the expressiveness and new updates of XSLT and XQuery. Last but not least, I am forever in debt to my parents.
    [Show full text]
  • GIT—A Stupid Content Tracker
    GIT—A Stupid Content Tracker Junio C. Hamano Twin Sun, Inc. [email protected] Abstract The paper gives an overview of how git evolved and discusses the strengths and weaknesses of its design. Git was hurriedly hacked together by Linus Torvalds, after the Linux kernel project lost its license to use BitKeeper as its source code management system (SCM). It has since 1 Low level design quickly grown to become capable of managing the Linux kernel project source code. Other projects have started to replace their existing Git is a “stupid content tracker.” It is designed SCMs with it. to record and compare the whole tree states ef- ficiently. Unlike traditional source code control Among interesting things that it does are: systems, its data structures are not geared to- ward recording changes between revisions, but for making it efficient to retrieve the state of in- 1. giving a quick whole-tree diff, dividual revisions. 2. quick, simple, stupid-but-safe merge, The unit in git storage is an object. It records: 3. facilitating e-mail based patch exchange workflow, and • blob – the contents of a file (either the 4. helping to pin-point the change that caused contents of a regular file, or the path a particular bug by a bisection search in pointed at by a symbolic link). the development history. • tree – the contents of a directory, by recording the mapping from names to ob- The core git functionality is implemented as a jects (either a blob object or a tree object set of programs to allow higher-layer systems that represents a subdirectory).
    [Show full text]
  • A Brief History of GNOME
    A Brief History of GNOME Jonathan Blandford <[email protected]> July 29, 2017 MANCHESTER, UK 2 A Brief History of GNOME 2 Setting the Stage 1984 - 1997 A Brief History of GNOME 3 Setting the stage ● 1984 — X Windows created at MIT ● ● 1985 — GNU Manifesto Early graphics system for ● 1991 — GNU General Public License v2.0 Unix systems ● 1991 — Initial Linux release ● Created by MIT ● 1991 — Era of big projects ● Focused on mechanism, ● 1993 — Distributions appear not policy ● 1995 — Windows 95 released ● Holy Moly! X11 is almost ● 1995 — The GIMP released 35 years old ● 1996 — KDE Announced A Brief History of GNOME 4 twm circa 1995 ● Network Transparency ● Window Managers ● Netscape Navigator ● Toolkits (aw, motif) ● Simple apps ● Virtual Desktops / Workspaces A Brief History of GNOME 5 Setting the stage ● 1984 — X Windows created at MIT ● 1985 — GNU Manifesto ● Founded by Richard Stallman ● ● 1991 — GNU General Public License v2.0 Our fundamental Freedoms: ○ Freedom to run ● 1991 — Initial Linux release ○ Freedom to study ● 1991 — Era of big projects ○ Freedom to redistribute ○ Freedom to modify and ● 1993 — Distributions appear improve ● 1995 — Windows 95 released ● Also, a set of compilers, ● 1995 — The GIMP released userspace tools, editors, etc. ● 1996 — KDE Announced This was an overtly political movement and act A Brief History of GNOME 6 Setting the stage ● 1984 — X Windows created at MIT “The licenses for most software are ● 1985 — GNU Manifesto designed to take away your freedom to ● 1991 — GNU General Public License share and change it. By contrast, the v2.0 GNU General Public License is intended to guarantee your freedom to share and ● 1991 — Initial Linux release change free software--to make sure the ● 1991 — Era of big projects software is free for all its users.
    [Show full text]
  • Editors Desk ...2
    The content of this magazine is released under the Creative Commons Attribution-Share Alike 3.0 Unported license. For more information visit user http://creativecommons.org/licenses/by-sa/3.0 TM Issue #1 - April 2009 EDITORS DESK ................................ 2 COMMUNITY NEWS ........................ 3 CHOOSING A DE/WM ...................... 4 HARDENING SSH IN 60 SECONDS .................................... 6 GAMERS CORNER .......................... 9 TIPS & TRICKS ............................... 10 PIMP MY ARCH .............................. 11 SOFTWARE REVIEW ......................12 Q&A ..................................................14 EEDDIITTOORRSS DDEESSKK Welcome to the first issue of Arch User Magazine! ARCH USER STAFF Daniel Griffiths (Ghost1227) ........... Editor ello, and thank you for picking up issue #1 of Arch User Magazine! While David Crouse (Crouse) .......... Contributor the vast majority of you probably know me (or have at least seen me H around the forums), I feel that I should take a moment to introduce myself. My name is Daniel Griffiths, and I am a 26-year-old independent contractor in Delaware, US. Throughout my life, I have wandered through various UNIX/Linux systems including (but not limited to) MINIX, RedHat, Mandrake, Slackware, Gentoo, Debian, and even two home made distributions based on Linux From Scratch. I finally found Arch in 2007 and instantly fell in love with its elegant simplicity. Some of our more attentive readers may note that Arch already has a monthly newsletter. With the existence of the aformentioned newsletter, what is the point of adding another news medium to the mix? Fear not, newsletter readers, I have no intention of letting Arch User Magazine take the place of the newsletter. In fact, Arch User Magazine and the newsletter are intended to fill two very different needs in the Arch community.
    [Show full text]
  • Download (4MB)
    Jurnal SIMETRIS, Vol 6 No 2 November 2015 ISSN: 2252-4983 REMASTERING LIVE USB UNTUK ”LAMP” PADA FAKULTAS SAINS DAN TEKNOLOGI PALEMBANG Klaudius Jevanda B.S. Fakultas Sains dan Teknologi, Program Studi Informatika Universitas Katolik Musi Charitas Email: [email protected] ABSTRAK Penelitian ini bertujuan untuk membuat distribusi Linux bernama Lubuntu yang memfokuskan diri pada desktop yang ringan serta ditujukan untuk menjadi lingkungan web server yang free dalam bentuk live USB. Dimana, penelitian ini menjelaskan tentang desain dan implementasi dari distribusi Linux Lubuntu itu sendiri yang nantinya bisa terus diperbaiki, disempurnakan dan dimungkinkan untuk dimodifikasi serta dipelajari oleh pihak lain. Lubuntu dikembangkan dengan memodifikasi dari Linux Lubuntu 14.04 dari tahap penambahan program, penghapusan program dan konfigurasi sampai pada tahap pembuatan Live USB untuk LAMP (Linux Apache Mysql PHP) menggunakan metode remastering. Hasil dari penelitian ini berupa Live USB yang berisi tool untuk lingkungan web server. Tool utama dalam Live USB diantaranya adalah phpmyadmin, gimp, inkscape, dan bluefish. Keluaran penelitian ini, diharapkan bisa digunakan sebagai sistem operasi dan dikhususkan dalam lingkungan web server yang nyaman untuk dipergunakan dalam proses belajar mengajar pada matakuliah sistem operasi, pemrograman basis web I, dan pemrograman basis web II di Fakultas Sains dan Teknologi Universitas Katolik Musi Charitas palembang. Kata kunci: linux, web server, LAMP, remastering, live usb. ABSTRACT The research aims to make the linux distribution namely Lubuntu that focuses on lightweight desktop environment and to create a free Live USB environment. This research explains the design and implementation the Linux Lubuntu distribution which will be continuously improved, modified, and learned by other.
    [Show full text]
  • Package 'Gnumeric'
    Package ‘gnumeric’ March 9, 2017 Version 0.7-8 Date 2017-03-09 Title Read Data from Files Readable by 'gnumeric' Author Karoly Antal <[email protected]>. Maintainer Karoly Antal <[email protected]> Depends R (>= 2.8.1), XML Imports utils Description Read data files readable by 'gnumeric' into 'R'. Can read whole sheet or a range, from several file formats, including the native format of 'gnumeric'. Reading is done by using 'ssconvert' (a file converter utility included in the 'gnumeric' distribution <http://projects.gnome.org/gnumeric/>) to convert the requested part to CSV. From 'gnumeric' files (but not other formats) can list sheet names and sheet sizes or read all sheets. License GPL (>= 2) Repository CRAN Date/Publication 2017-03-09 13:20:28 NeedsCompilation no R topics documented: read.gnumeric.sheet . .2 read.gnumeric.sheet.info . .6 read.gnumeric.sheets . .7 Index 9 1 2 read.gnumeric.sheet read.gnumeric.sheet Read data from a gnumeric (or MS Excel, Openoffice Calc, Xbase, Quatro Pro, Paradox, HTML, etc) spreadsheet or database file using ssconvert from the gnumeric distribution Description Read data from a sheet of a gnumeric (or other common spreadsheet or database) file to a data.frame. Requires an external program, ‘ssconvert’ (normally installed with gnumeric in ‘PATH’. (Gnumeric home page is http://projects.gnome.org/gnumeric/) (Note: last gnumeric release for windows is 1.12.17 from 2014) Calls ‘ssconvert’ to convert the input to CSV. ‘ssconvert’ can read several file formats (see Details below). Note: During conversion to CSV ‘ssconvert’ also evaluates formulas (e.g. ‘=sum(A1:A3)’) in cells, and emits the result instead of the formula.
    [Show full text]