Leanpub Header

Skip to main content

Just Enough Linux

Learning about Linux one command at a time

Just Enough Linux aims at getting you comfortable with some of the commands used in Linux and to hopefully help you 'get' Linux.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
2,603
Readers
264
Pages
About

About

About the Book

Just Enough Linux...

... to be dangerous.

If you've toyed with Linux and never really caught on to what's happening or have used a graphical interface without really touching the command line this book is for you.

How will it help me?

The idea is to get you started on the process of using some of the commands available in Linux so that you;

  • Feel comfortable running commands
  • You understand a little more about what Linux is about and
  • Most importantly, you start to get Linux.

Is this book for you?

It's not written for experts. It's put together as a guide to get you started if you're unsure about how to make the first move. Although it's examples are centered around using Linux with a Raspberry Pi, the commands you learn here will translate to an industrial server running Linux.

Why is Just Enough Linux being written?

Because in the process of learning things, it's a great way to remember them if you write them down :-).

As a result, writing about how to do cool stuff with Linux means that we're accumulating ways to help ourselves out when the going gets tricky. Making a book out of the information is a no-brainer since that way more people benifit from the process.

So here we are! A collection of Linux commands and (hopefully) helpful information written for people who might consider that they're at the start of a fascinating journey :-).

The awesome that is Leanpub.

I've tried to pitch the book in sections so that if you find something interesting, you can read parts in isolation. I expect there to be additions and corrections to the content over time, so I'm hoping that publishing using Leanpub will allow readers to get easy notification of when updates and improvements are made.

Read the whole book online just to try it out!

I'm making the book content available to read online because I think it's a great way to give something back to the community as a whole, but if you want to download a copy of the PDF, ePub or Mobi version, I'm happy to take a donation to encourage further development of this and other books.

Enjoy.

So I hope you get something out of the book, please excuse the sometimes light-hearted conversational manner in which I've approached the topic and enjoy Linux!

Share this book

Categories

License

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License

Price

Pick Your Price...

Minimum price

Free!

$0.99

You pay

$0.00

Author earns

$0.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 0)

0
The author will earn $0.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Malcolm Maclean

I have a passion for knowledge and I realise that part of the responsibility of gathering knowledge is being able to advance the state of the human condition in some way.

My aims in writing these books are to play with software, achieve personal goals and try something new for fun. It also helps that I think Open Source, technology, the visual representation of data and information rock in serious ways.

The books that I write are a mechanism to support my own learning, so the way I explain things is focused on trying to impart understanding in a simple but functional way.

I'm totally in awe of the Open Source community that has made this type of work possible. If you feel that you would like to support continued development of this content, feel free to donate when you download.

If you're looking for a hard copy version of any of these publications, they will be available through Amazon (not all will be available sorry).

Contents

Table of Contents

Introduction

  1. Welcome!
  2. Who is this book for?
  3. Other Useful Resources
  4. The Linux Information Project (linfo.org)
  5. linuxconfig.org
  6. raspberrypi.org
  7. howtovmlinux.com
  8. techmint.com: Linux Howto’s Guide

Linux Concepts

  1. What is Linux?
  2. Executing Commands in Linux
  3. The Command
  4. Commands
  5. Wildcards
  6. Examples
  7. Regular Expressions
  8. Match a defined single character with square brackets ([])
  9. Match at the beginning of a string (^)
  10. Match at the end of a string ($)
  11. Match any single character (.)
  12. Match when the preceding character occurs 0 or 1 times only (?)
  13. Match when the preceding character occurs 0 or more times (*)
  14. Match when the preceding character occurs 1 or more times (+)
  15. Group parts of a search expression together (())
  16. Find one group of values or another (|)
  17. Extended Regular Expressions
  18. Pipes (|)
  19. Linux Directory Structure
  20. /
  21. /bin
  22. /boot
  23. /dev
  24. /etc
  25. /etc/cron.d
  26. /etc/rc?.d
  27. /home
  28. /lib
  29. /lost+found
  30. /media
  31. /mnt
  32. /opt
  33. /proc
  34. /root
  35. /sbin
  36. /srv
  37. /tmp
  38. /usr
  39. /usr/bin
  40. /usr/lib
  41. /usr/local
  42. /usr/sbin
  43. /var
  44. /var/lib
  45. /var/log
  46. /var/spool
  47. /var/tmp
  48. Absolute and Relative Path Name Addressing
  49. Pathnames
  50. Absolute Path Name Addressing
  51. Relative Path Name Addressing
  52. The ‘home’ short-cut
  53. Everything is a file in Linux
  54. Traditional Files
  55. Directories
  56. System Information
  57. Devices
  58. Linux files and inodes
  59. The file name
  60. The inode
  61. links
  62. Soft Links (aka symbolic links, aka symlinks)
  63. Hard Links
  64. Links Compared
  65. File Editing
  66. The nano Editor
  67. Scripting
  68. Writing our Script
  69. Make the script executable
  70. Place the script somewhere that the shell can find it

Linux Commands

  1. File Administration
  2. cd
  3. chgrp
  4. chmod
  5. chown
  6. cp
  7. find
  8. gzip
  9. ln
  10. ls
  11. mkdir
  12. mv
  13. pwd
  14. rm
  15. rmdir
  16. tar
  17. Accessing File Contents
  18. cat
  19. cut
  20. diff
  21. grep
  22. head
  23. less
  24. more
  25. tail
  26. File Systems
  27. fdisk
  28. mkfs
  29. mount
  30. umount
  31. System Information
  32. date
  33. df
  34. du
  35. free
  36. Processes
  37. crontab
  38. kill
  39. killall
  40. ps
  41. top
  42. Network
  43. curl
  44. host
  45. ifconfig
  46. ip
  47. netstat
  48. ping
  49. scp
  50. sftp
  51. ssh
  52. traceroute
  53. wget
  54. Miscellaneous
  55. apt-get
  56. clear
  57. echo
  58. groupadd
  59. man
  60. modprobe
  61. passwd
  62. shutdown
  63. su
  64. sudo
  65. useradd
  66. usermod
  67. who
  68. whoami

Command Cheat Sheet

Directory Structure Cheat Sheet

Regular Expression Cheat Sheet

`find’ Cheat Sheet

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub