Just Enough Linux
Just Enough Linux
Learning about Linux one command at a time
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!
Bundles that include this book
Table of Contents
-
Introduction
- Welcome!
- Who is this book for?
-
Other Useful Resources
- The Linux Information Project (linfo.org)
- linuxconfig.org
- raspberrypi.org
- howtovmlinux.com
- techmint.com: Linux Howto’s Guide
-
Linux Concepts
- What is Linux?
-
Executing Commands in Linux
- The Command
- Commands
-
Wildcards
- Examples
-
Regular Expressions
-
Match a defined single character with square brackets (
[]
) -
Match at the beginning of a string (
^
) -
Match at the end of a string (
$
) -
Match any single character (
.
) -
Match when the preceding character occurs 0 or 1 times only (
?
) -
Match when the preceding character occurs 0 or more times (
*
) -
Match when the preceding character occurs 1 or more times (
+
) -
Group parts of a search expression together (
()
) -
Find one group of values or another (
|
) - Extended Regular Expressions
-
Match a defined single character with square brackets (
-
Pipes (
|
) -
Linux Directory Structure
-
/
-
/bin
-
/boot
-
/dev
-
/etc
-
/etc/cron.d
-
/etc/rc?.d
-
/home
-
/lib
-
/lost+found
-
/media
-
/mnt
-
/opt
-
/proc
-
/root
-
/sbin
-
/srv
-
/tmp
-
/usr
-
/usr/bin
-
/usr/lib
-
/usr/local
-
/usr/sbin
-
/var
-
/var/lib
-
/var/log
-
/var/spool
-
/var/tmp
-
-
Absolute and Relative Path Name Addressing
- Pathnames
- Absolute Path Name Addressing
- Relative Path Name Addressing
- The ‘home’ short-cut
-
Everything is a file in Linux
- Traditional Files
- Directories
- System Information
- Devices
-
Linux files and inodes
- The file name
- The inode
-
links
- Soft Links (aka symbolic links, aka symlinks)
- Hard Links
- Links Compared
-
File Editing
- The nano Editor
-
Scripting
- Writing our Script
- Make the script executable
- Place the script somewhere that the shell can find it
-
Linux Commands
-
File Administration
-
cd
-
chgrp
-
chmod
-
chown
-
cp
-
find
-
gzip
-
ln
-
ls
-
mkdir
-
mv
-
pwd
-
rm
-
rmdir
-
tar
-
-
Accessing File Contents
-
cat
-
cut
-
diff
-
grep
-
head
-
less
-
more
-
tail
-
-
File Systems
-
fdisk
-
mkfs
-
mount
-
umount
-
-
System Information
-
date
-
df
-
du
-
free
-
-
Processes
- crontab
-
kill
-
killall
-
ps
-
top
-
Network
-
curl
-
host
-
ifconfig
-
ip
-
netstat
-
ping
-
scp
-
sftp
-
ssh
-
traceroute
-
wget
-
-
Miscellaneous
-
apt-get
-
clear
-
echo
-
groupadd
-
man
-
modprobe
-
passwd
-
shutdown
-
su
-
sudo
-
useradd
-
usermod
-
who
-
whoami
-
-
File Administration
- Command Cheat Sheet
- Directory Structure Cheat Sheet
- Regular Expression Cheat Sheet
- `find’ Cheat Sheet
Other books by this author
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 earnedover $13 millionwriting, 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