- The linux command line a complete introduction
- What Readers Are Saying About The Linux Command Line!
- The Linux Command Line
- by William Shotts
- What Readers Are Saying About The Linux Command Line!
- The linux command line a complete introduction
- The Linux Command Line: A Complete Introduction
- Item Preview
- Share or Embed This Item
- Flag this item for
- The Linux Command Line: A Complete Introduction
- Shotts, The Linux Command Line, No Starch Press
- Configuration and the Environment
- A Gentle Introduction to VI
- infuerno.github.io
The linux command line a complete introduction
Designed for the new command line user, this 555-page volume covers the same material as LinuxCommand.org but in much greater detail. In addition to the basics of command line use and shell scripting, The Linux Command Line includes chapters on many common programs used on the command line, as well as more advanced topics. Released under a Creative Commons license, this book is available for free download in PDF format. Download it here. The book is available in printed form, published by No Starch Press. Copies may be purchased wherever fine books are sold. No Starch Press also offers electronic formats for popular e-readers. In addition to English, the printed book is also available in the following languages:
- ArabicTranslation by Abd Allatif Eymsh
- Spanish (in progress). Translation by Adriano Sánchez
- Portuguese (in progress). Translation by Matheus Sales
- Italian (in progress). Translation by Francesco Cargiuli
- Romanian (in progress). Translation by Vlad Paval
What Readers Are Saying About The Linux Command Line!
«I have been using Linux for a little over a year. Read as much as I could including Rute, and many others. I have learned more in the first 93 pages of your book than any others. «
«What a great help your book has been for me! I was looking for a book like yours, but I never was able to find one that really walks the reader through the Linux command line in a general sort of way. Do you know of any others? If I recall, there are a lot of books dedicated to shell scripting, but none that are geared to regular command-line use.»
«Fantastic book!! I have recently switched from the legacy OS to Linux and I have been trying to find a distro that mimics this legacy OS in fear of using the terminal. I ran across this book and opened the terminal for the first time. This book teaches you everything you need to know about the shell and does it with ease. It starts by giving you a solid foundation and builds from there. Its simplicity and informative structure is ideal for all new beginners switching to Linux. I am now always on the terminal even for the simplest things. Not only does this build love, but I also get to practice my shell scripting. Great book!!»
«I’ve been enjoying reading the book and have learned a lot from every chapter. Your writing is very clear, and I’ve enjoyed following along with your examples. I’ve skimmed a couple of Linux books before, but never had enough time to really get into them. From those experiences however, I think your book is much clearer and approachable for beginners.»
«WOW! What a great book. It will clearly provide a stepping stone for many people who want to wean themselves off of their GUI habit, or perhaps just «Make the difficult possible.»
«I think one of the greatest assets of the book that most others about Linux don’t have is the conversational tone. I feel like in almost every chapter, there are parts where you lead the reader to ask questions of the material that aren’t necessarily covered.»
© 2000-2020, William E. Shotts, Jr. Verbatim copying and distribution of this entire article is permitted in any medium, provided this copyright notice is preserved.
Linux® is a registered trademark of Linus Torvalds.
The Linux Command Line
by William Shotts
Fifth Internet Edition Available Now!
Designed for the new command line user, this 555-page volume covers the same material as LinuxCommand.org but in much greater detail. In addition to the basics of command line use and shell scripting, The Linux Command Line includes chapters on many common programs used on the command line, as well as more advanced topics.
Released under a Creative Commons license, this book is available for free download in PDF format. Download it here.
The book is available in printed form, published by No Starch Press. Copies may be purchased wherever fine books are sold. No Starch Press also offers electronic formats for popular e-readers.
In addition to English, the printed book is also available in the following languages:
Find The Linux Command Line at your local library.
Want to translate the Creative Commons version of The Linux Command Line? Please see the Community Translation Policy for details.
The following community translations are now available:
- ArabicTranslation by Abd Allatif Eymsh
- Spanish (in progress). Translation by Adriano Sánchez
- Portuguese (in progress). Translation by Matheus Sales
- Italian (in progress). Translation by Francesco Cargiuli
- Romanian (in progress). Translation by Vlad Paval
What Readers Are Saying About The Linux Command Line!
«I have been using Linux for a little over a year. Read as much as I could including Rute, and many others. I have learned more in the first 93 pages of your book than any others. «
«What a great help your book has been for me! I was looking for a book like yours, but I never was able to find one that really walks the reader through the Linux command line in a general sort of way. Do you know of any others? If I recall, there are a lot of books dedicated to shell scripting, but none that are geared to regular command-line use.»
«Fantastic book!! I have recently switched from the legacy OS to Linux and I have been trying to find a distro that mimics this legacy OS in fear of using the terminal. I ran across this book and opened the terminal for the first time. This book teaches you everything you need to know about the shell and does it with ease. It starts by giving you a solid foundation and builds from there. Its simplicity and informative structure is ideal for all new beginners switching to Linux. I am now always on the terminal even for the simplest things. Not only does this build love, but I also get to practice my shell scripting. Great book!!»
«I’ve been enjoying reading the book and have learned a lot from every chapter. Your writing is very clear, and I’ve enjoyed following along with your examples. I’ve skimmed a couple of Linux books before, but never had enough time to really get into them. From those experiences however, I think your book is much clearer and approachable for beginners.»
«WOW! What a great book. It will clearly provide a stepping stone for many people who want to wean themselves off of their GUI habit, or perhaps just «Make the difficult possible.»
«I think one of the greatest assets of the book that most others about Linux don’t have is the conversational tone. I feel like in almost every chapter, there are parts where you lead the reader to ask questions of the material that aren’t necessarily covered.»
© 2000-2020, William E. Shotts, Jr. Verbatim copying and distribution of this entire article is permitted in any medium, provided this copyright notice is preserved.
Linux® is a registered trademark of Linus Torvalds.
The linux command line a complete introduction
Автор: William E. Shotts Jr.
Название: The Linux Command Line: A Complete Introduction
Издательство: No Starch Press
Год: 2012
ISBN: 978-1593273897
Язык: English
Формат: pdf, epub
Размер: 13 mb
Страниц: 480
The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell. Along the way you’ll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more.
In addition to that practical knowledge, author William Shotts reveals the philosophy behind these tools and the rich heritage that your desktop Linux machine has inherited from Unix supercomputers of yore. As you make your way through the book’s short, easily-digestible chapters, you’ll learn how to: Create and delete files, directories, and symlinks Administer your system, including networking, package installation, and process management Use standard input and output, redirection, and pipelines Edit files with Vi, the world’s most popular text editor Write shell scripts to automate common or boring tasks Slice and dice text files with cut, paste, grep, patch, and sed Once you overcome your initial «shell shock,» you’ll find that the command line is a natural and expressive way to communicate with your computer. Just don’t be surprised if your mouse starts to gather dust.
The Linux Command Line: A Complete Introduction
Item Preview
Share or Embed This Item
Flag this item for
The Linux Command Line: A Complete Introduction
You’ve experienced the shiny, point-and-click surface of your Linux computer—now dive below and explore its depths with the power of the command line.
The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell. Along the way you’ll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more.
In addition to that practical knowledge, author William Shotts reveals the philosophy behind these tools and the rich heritage that your desktop Linux machine has inherited from Unix supercomputers of yore.
As you make your way through the book’s short, easily-digestible chapters, you’ll learn how to:
- Create and delete files, directories, and symlinks
- Administer your system, including networking, package installation, and process management
- Use standard input and output, redirection, and pipelines
- Edit files with Vi, the world’s most popular text editor
- Write shell scripts to automate common or boring tasks
- Slice and dice text files with cut, paste, grep, patch, and sed
Once you overcome your initial «shell shock,» you’ll find that the command line is a natural and expressive way to communicate with your computer. Just don’t be surprised if your mouse starts to gather dust.
This book has an editable web page on Open Library.
Shotts, The Linux Command Line, No Starch Press
stdout , stderr and stdin can be thought of as files where the output for stdout and stderr is by default connected to the screen and the input for stdin is, by default, connected to the keyboard. These can be redirected using I/O redirection.
- ls -l /usr/bin > ls-output.txt redirects stdout to a file (if any errors these still go to stderr, which by default is still printed to the screen — in this case the file will be created or truncated before the error happens since > replaces content rather than appending content)
- >> appends content e.g. ls -l /usr/bin >> ls-output.txt
- File descriptors can alternatively be used to redirect stdin, stdout and stderr (and is the only way to redirect stderr). These are 0, 1 and 2 respectively. 2> redirects stderr e.g. ls -l /usr/idontexist 2> ls-error.txt
- 2>&1 redirects stderr to file descriptor 1 i.e. stdout so ls -l /bin/usr > ls-output.txt 2>&1 will redirect stdout to a file and then stderr to the same destination i.e. also a file
- &> shorthand for 2>&1 (recent versions of bash only)
- 2> /dev/null to discard anything sent to stderr
- cat concatenates files and can be used with redirection to rejoin files which have been split e.g. cat movie.00* > movie.mp4 (crucially for this wildcards expand in sorted order)
- cat without any arguments uses stdin — ctrl-d (EOF) to terminate
- < redirects stdin e.g. cat < lazy-dog.txt redirects the file lazy-dog.txt to stdin with the result that cat prints the contents of the file ( cat uses stdin when no arguments are passed)
- | pipes the standard output of one command to the standard input of another command
- e.g. ls -l /usr/bin | less
- without arguments uses stdin (so often used at the end of a pipeline to count things)
- option -i ignores case
- option -v prints lines which DON’T match
- e.g. ls /usr/bin | tee ls.txt | grep zip will capture the output of ls /usr/bin to a file as well as passing it into grep zip
Configuration and the Environment
A Gentle Introduction to VI
- Most commands can be prefixed with a number e.g. 5j to move down 5 lines
- u undo
- a append after end of word
- A append to end of current line
- o open a line below the current line
- O open a line above the current line
- G go to the last line in the document
- dd cut the current line
- dw cut to start of next word
- d$ cut to end of line
- d0 cut to beginning of line
- p paste after current line
- P paste before current line
- yy ‘yank’ the current line (i.e. copy) — then similar combinations to cut
infuerno.github.io