Unix-like systems [ KMI/UNIXS ]
The course introduces students with unix-like operating systems, their principles and specifics, gives an introduction to unix shell and basics of text processing.
In the first part, unix-like operating systems are introduced, with their user environments and systems of help, files and processes and students meet unix shell (primarily Bash) and basics of work in it. The second part of the course is devoted to the basics of text processing using essential software utilities bundled with unix-like operating systems and grep, sed and awk tools. Everything is intensively experienced in practices, with strong hands-on approach, in linux operating system and Bash shell, the lectures are supplementary.
Prerequisities: Basic knowledge and skills with operating systems on user level.
Lectures
- Introduction of unix-like operating systems: Operating system, Unix, GNU, Linux, distribution.
- User environments, help: Graphical (desktop and basic applications), textual (terminal), command line and interpreter (shell), manual pages and shell help.
- Basic principles, system of files: Files and directories, commands and programs for working with them, file contents, symbolic links, (traditional unix) access rights, directory structure.
- System of processes, introduction to shell: Processes and their manipulation. Job control in shell, file and directory names expansion, aliases, program input and output, pipe.
- Text editing: editors Vi and Emacs: (Plain) text. Text editing (insert, delete, copy), searching and replacing, working with files. Further editors.
- Text processing: basic utilities and grep: GNU Textutils: cat, head, tail, wc, sort, cut, paste, diff, …. Regular expressions and grep.
- Text processing: stream editor sed – basics: Editation process, edit command, selected functions.
- Text processing: programming language awk – základy: Line field, pattern and action, variables, operators.
Literature
- Vychodil V.: Linux: Příručka českého uživatele. Computer Press, 2003. ISBN 80-7226-333-1
- Ray D. S., Ray Eric J.: Unix: podrobný průvodce. Grada, 2009. ISBN 978-80-247-2125-5
- Cannon J.: Linux for Beginners: An Introduction to the Linux Operating System and Command Line. CreateSpace Independent Publishing, 2014
- Kameník P.: Příkazový řádek v Linuxu: praktická řešení. Computer Press, 2012. ISBN 978-80-251-2819-0
- Fox R.: Linux with operating system concepts. CRC Press, 2015. ISBN 978-1-4822-3589-0
- Herold H.: awk & sed: Příručka pro dávkové zpracování textu. Coputer Press, 2004. ISBN 9788025103098
- kolektiv: Linux: Dokumentační projekt, 4. aktualizované vydání. Computer Press, 2008. ISBN 9788025115251
- Sobell M. G., Helmke M.: A Practical Guide to Linux Commands, Editors, and Shell Programming (4nd Edition). Addison-Wesley, 2017
- Albing C., Vossen JP: bash Cookbook: Solutions and Examples for Bash Users (2nd edition). O'Reilly Media, 2017. ISBN 978-1-491-97533-6
- Blum R., Bresnahan C.: Linux Command Line and Shell Scripting Bible, 3rd Edition. Wiley, 2015
- Forst L.: Shell v příkladech aneb aby váš unix skvěle shell. Matfyzpress, 2010. ISBN 978-80-7378-152-1
- Sobell M. G.: Mistrovství v Linuxu: Příkazový řádek, shell, programování. Computer Press, 2007. ISBN 9788025117262