We are still actively working on the spam issue.
Difference between revisions of "GNU/Linux"
JDM0wWHDld8 (talk | contribs) (→How to make a bootable USB drive) |
(General clean up) |
||
Line 11: | Line 11: | ||
Most distros are at least somewhat similar with each other. The main differences are between the [[init system]], [[package manager]] (and the repositories it has access to), [[GNU/Linux_Ricing#Desktop_Environments|desktop environment]], (bloat) and default configurations. Most distros have their own little niche. Some are FSF compatible (or almost), for ricing, for getting shit done or just because you hate yourself or just love pain ([[Arch]]/[[Gentoo]]). | Most distros are at least somewhat similar with each other. The main differences are between the [[init system]], [[package manager]] (and the repositories it has access to), [[GNU/Linux_Ricing#Desktop_Environments|desktop environment]], (bloat) and default configurations. Most distros have their own little niche. Some are FSF compatible (or almost), for ricing, for getting shit done or just because you hate yourself or just love pain ([[Arch]]/[[Gentoo]]). | ||
− | Always at least try another distro before saying that you hate it. You will find that all of them have their own qualities | + | Always at least try another distro before saying that you hate it. You will find that all of them have their own qualities. |
When choosing a distro, keep some things in mind. Linux is about choise. There are stable and rolling distributions. Some stable distros can be made rolling by selecting the proper repositories and vice versa. Some are semi-rolling, they release snapshots of packages. Stable is best for beginners and rolling is best for developers and advanced users who want the latest and greatest. | When choosing a distro, keep some things in mind. Linux is about choise. There are stable and rolling distributions. Some stable distros can be made rolling by selecting the proper repositories and vice versa. Some are semi-rolling, they release snapshots of packages. Stable is best for beginners and rolling is best for developers and advanced users who want the latest and greatest. | ||
Line 21: | Line 21: | ||
[[File:ospicker.png|thumb|Pick your poison]] | [[File:ospicker.png|thumb|Pick your poison]] | ||
− | + | These are distros typically recommended by /g/. Refer to [http://distrowatch.com DistroWatch.com] for a more comprehensive list including less common distros. | |
===Easy to use and install=== | ===Easy to use and install=== | ||
Line 87: | Line 87: | ||
|} | |} | ||
− | ===Highly customizable | + | === Highly customizable === |
+ | Distros that are good for [[ricing]]. | ||
{| cellpadding="10" cellspacing="0" | {| cellpadding="10" cellspacing="0" | ||
|- | |- | ||
| style="text-align: center;" | [[File:Gentoo.png|frameless|100px|link=Gentoo]] | | style="text-align: center;" | [[File:Gentoo.png|frameless|100px|link=Gentoo]] | ||
|- valign="top" | |- valign="top" | ||
− | | [[Gentoo]] | + | | style="text-align: center;" | [[Gentoo]] |
| [https://www.gentoo.org/ Official Website] | | [https://www.gentoo.org/ Official Website] | ||
| | | | ||
Line 99: | Line 100: | ||
| style="text-align: center;" | [[File:Funtoo.png|frameless|100px|link=Gentoo#Funtoo_Linux|Funtoo]] | | style="text-align: center;" | [[File:Funtoo.png|frameless|100px|link=Gentoo#Funtoo_Linux|Funtoo]] | ||
|- valign="top" | |- valign="top" | ||
− | | [[Gentoo#Funtoo_Linux|Funtoo]] | + | | style="text-align: center;" | [[Gentoo#Funtoo_Linux|Funtoo]] |
| [http://www.funtoo.org/Welcome Official Website] | | [http://www.funtoo.org/Welcome Official Website] | ||
| | | | ||
Line 106: | Line 107: | ||
| style="text-align: center;" | [[File:Debian.png|frameless|100px|link=Debian]] | | style="text-align: center;" | [[File:Debian.png|frameless|100px|link=Debian]] | ||
|- valign="top" | |- valign="top" | ||
− | | [[Debian|Debian GNU+Linux]] | + | | style="text-align: center;" | [[Debian|Debian GNU+Linux]] |
| [https://www.debian.org/ Official Website] | | [https://www.debian.org/ Official Website] | ||
[http://live.debian.net/ Debian Live ISOs] | [http://live.debian.net/ Debian Live ISOs] | ||
Line 112: | Line 113: | ||
| style="text-align: center;" | [[File:Arch-linux-logo.png|frameless|100px|link=Arch]] | | style="text-align: center;" | [[File:Arch-linux-logo.png|frameless|100px|link=Arch]] | ||
|- valign="top" | |- valign="top" | ||
− | | [[Arch]] | + | | style="text-align: center;" | [[Arch]] |
| [https://www.archlinux.org/ Official Website] | | [https://www.archlinux.org/ Official Website] | ||
|- | |- | ||
| style="text-align: center;" | [[File:Lfs.png|frameless|100px|link=Linux From Scratch]] | | style="text-align: center;" | [[File:Lfs.png|frameless|100px|link=Linux From Scratch]] | ||
|- valign="top" | |- valign="top" | ||
− | | [[Linux From Scratch]] | + | | style="text-align: center;" | [[Linux From Scratch]] |
| [http://www.linuxfromscratch.org/ Official Website] | | [http://www.linuxfromscratch.org/ Official Website] | ||
| | | | ||
Line 126: | Line 127: | ||
{| cellpadding="10" cellspacing="0" | {| cellpadding="10" cellspacing="0" | ||
|- valign="top" | |- valign="top" | ||
− | | [[CrunchBang]] | + | | style="text-align: center;" | [[CrunchBang]] |
| [https://crunchbang.org/ Official Website] | | [https://crunchbang.org/ Official Website] | ||
| [[Debian]] pre-riced | | [[Debian]] pre-riced | ||
|- valign="top" | |- valign="top" | ||
− | | LinuxBBQ | + | | style="text-align: center;" | LinuxBBQ |
| [http://linuxbbq.org/ Official Website] | | [http://linuxbbq.org/ Official Website] | ||
| [[Debian]] for ricers | | [[Debian]] for ricers | ||
|- valign="top" | |- valign="top" | ||
− | | Aptosid | + | | style="text-align: center;" | Aptosid |
| [http://aptosid.com/ Official Website] | | [http://aptosid.com/ Official Website] | ||
| Fork of Debian Sid rolling branch | | Fork of Debian Sid rolling branch | ||
|- valign="top" | |- valign="top" | ||
− | | [[Arch#Forks|ArchBang]] | + | | style="text-align: center;" | [[Arch#Forks|ArchBang]] |
| [http://archbang.org/ Official Website] | | [http://archbang.org/ Official Website] | ||
| Arch + Openbox | | Arch + Openbox | ||
|- valign="top" | |- valign="top" | ||
− | | [[Arch#Forks|Manjaro]] | + | | style="text-align: center;" | [[Arch#Forks|Manjaro]] |
| [http://manjaro.org/ Official Website] | | [http://manjaro.org/ Official Website] | ||
| Arch made easy | | Arch made easy | ||
|- valign="top" | |- valign="top" | ||
− | | [[Gentoo#Sabayon]] | + | | style="text-align: center;" | [[Gentoo#Sabayon|Sabayon]] |
| [http://sabayon.org/ Official Website] | | [http://sabayon.org/ Official Website] | ||
| [[Gentoo]] for beginners | | [[Gentoo]] for beginners | ||
Line 155: | Line 156: | ||
{| cellpadding="10" cellspacing="0" | {| cellpadding="10" cellspacing="0" | ||
|- valign="top" | |- valign="top" | ||
− | | [[FSF|FSF Approved Distros]] | + | | style="text-align: center;" | [[FSF|FSF Approved Distros]] |
| [https://www.gnu.org/distros/free-distros GNU Distros Page] | | [https://www.gnu.org/distros/free-distros GNU Distros Page] | ||
|- valign="top" | |- valign="top" | ||
− | | Dragora GNU/Linux | + | | style="text-align: center;" | Dragora GNU/Linux |
| [http://www.dragora.org/ Official Website] | | [http://www.dragora.org/ Official Website] | ||
| Build from scratch on Freedom | | Build from scratch on Freedom | ||
Line 166: | Line 167: | ||
{| cellpadding="10" cellspacing="0" | {| cellpadding="10" cellspacing="0" | ||
|- valign="top" | |- valign="top" | ||
− | | Pentoo | + | | style="text-align: center;" | Pentoo |
| [http://pentoo.ch Official Website] | | [http://pentoo.ch Official Website] | ||
|- valign="top" | |- valign="top" | ||
− | | BlackArch | + | | style="text-align: center;" | BlackArch |
| [http://www.blackarch.org/ Official Website] | | [http://www.blackarch.org/ Official Website] | ||
|- valign="top" | |- valign="top" | ||
− | | Kali Linux | + | | style="text-align: center;" | Kali Linux |
| [http://www.kali.org/ Official Website] | | [http://www.kali.org/ Official Website] | ||
|- | |- | ||
|} | |} | ||
− | == Partially | + | === Partially Free === |
[[Ubuntu]] is a distro made without respecting completely software freedom. <i>The removal of Gnome with the heavy Unity UI may be enough to scare users away</i><small><sup> [<i>Citation needed</i>]</sup></small>. As well as that, the search tool built into their OS is linked to Amazon, which may make or break people who care about their software freedom. The website [https://fixubuntu.com Fix Ubuntu] offers a script to disable Amazon search along with other privacy issues. This OS is mostly for beginners. | [[Ubuntu]] is a distro made without respecting completely software freedom. <i>The removal of Gnome with the heavy Unity UI may be enough to scare users away</i><small><sup> [<i>Citation needed</i>]</sup></small>. As well as that, the search tool built into their OS is linked to Amazon, which may make or break people who care about their software freedom. The website [https://fixubuntu.com Fix Ubuntu] offers a script to disable Amazon search along with other privacy issues. This OS is mostly for beginners. | ||
Line 183: | Line 184: | ||
[[Linux Mint]] is a distribution made without respecting completely software freedom. Some distributions will offer to install closed-source drivers to get your hardware to work; Mint automatically installs any closed-source program its developers believe might be useful. This OS is based on Ubuntu and it is mostly for beginners. <i>The numerous closed-source browser plugins Mint ships with are a serious security risk, and (with the possible exception of Flash) largely obsolete on the modern web</i><small><sup> [<i>Citation needed</i>]</sup></small>. The primary reason it has any popularity on /g/ is that the project lead is quite open of his hatred for jews. [http://warped-mirror.com/2012/02/26/linux-mint-israel-and-me/] [https://jay4rest.wordpress.com/2011/03/02/linux-mint-founder-is-against-israel/] | [[Linux Mint]] is a distribution made without respecting completely software freedom. Some distributions will offer to install closed-source drivers to get your hardware to work; Mint automatically installs any closed-source program its developers believe might be useful. This OS is based on Ubuntu and it is mostly for beginners. <i>The numerous closed-source browser plugins Mint ships with are a serious security risk, and (with the possible exception of Flash) largely obsolete on the modern web</i><small><sup> [<i>Citation needed</i>]</sup></small>. The primary reason it has any popularity on /g/ is that the project lead is quite open of his hatred for jews. [http://warped-mirror.com/2012/02/26/linux-mint-israel-and-me/] [https://jay4rest.wordpress.com/2011/03/02/linux-mint-founder-is-against-israel/] | ||
− | == | + | == Installation == |
− | + | === Virtual Machines === | |
− | + | If you are not ready to commit to installing a GNU/Linux system, you may want to try one out in a virtual environment first. | |
− | == | + | * [https://www.virtualbox.org/ VirtualBox] |
− | |||
− | |||
− | |||
− | |||
− | + | === Making a Bootable USB Installer === | |
− | + | In addition to installing from CD, you can also install from a USB flash drive. A USB installer created using the following steps should work with both BIOS and UEFI systems. However, for UEFI systems you may need to disable "Secure Boot" in the UEFI configuration panel. | |
− | |||
− | |||
− | |||
− | |||
− | == | ||
− | |||
'''Note:''' For UEFI support your flash drive ''MUST'' be formatted as fat32 (also called vfat in GNU/Linux) when attempting to boot from it. | '''Note:''' For UEFI support your flash drive ''MUST'' be formatted as fat32 (also called vfat in GNU/Linux) when attempting to boot from it. | ||
− | === Windows Method === | + | ==== Windows Method ==== |
* Download the disk image of your chosen distribution. | * Download the disk image of your chosen distribution. | ||
* Download [http://www.linuxliveusb.com/ LiLi] and use it to copy the image to your USB-drive. | * Download [http://www.linuxliveusb.com/ LiLi] and use it to copy the image to your USB-drive. | ||
− | === GNU/Linux Method === | + | ==== GNU/Linux Method ==== |
− | + | '''Manually''' | |
− | + | ||
+ | ''This method is more reliable'' | ||
* Locate your USB drive using the command ''lsblk''. You should see the path for your USB drive, for example: /dev/sdb1. Through running this command, you should also see the size of the USB drive so you can be sure you are running your commands to the correct storage device. | * Locate your USB drive using the command ''lsblk''. You should see the path for your USB drive, for example: /dev/sdb1. Through running this command, you should also see the size of the USB drive so you can be sure you are running your commands to the correct storage device. | ||
*Next, use the command ''dd'' as '''root'''. The ''dd'' command has the following usage (where ''if'' is the source and ''of'' is the target): | *Next, use the command ''dd'' as '''root'''. The ''dd'' command has the following usage (where ''if'' is the source and ''of'' is the target): | ||
Line 226: | Line 218: | ||
* Last, wait patiently until the command has executed. You can check progress of a ''dd'' command by finding the process ID with ''ps aux | grep dd'' and issuing the ''kill -s USR1 <pid>'' command against it. Just don't forget the USR1 signal or you will terminate the process. | * Last, wait patiently until the command has executed. You can check progress of a ''dd'' command by finding the process ID with ''ps aux | grep dd'' and issuing the ''kill -s USR1 <pid>'' command against it. Just don't forget the USR1 signal or you will terminate the process. | ||
− | + | '''[http://unetbootin.sourceforge.net UNetBootin]''' | |
* Install UnetBootin from your distribution's repositories, or if they are unavailable there (unlikely) download a package or tarball from the project page. | * Install UnetBootin from your distribution's repositories, or if they are unavailable there (unlikely) download a package or tarball from the project page. | ||
* Launch UnetBootin with root privileges. (e.g. sudo unetbootin) | * Launch UnetBootin with root privileges. (e.g. sudo unetbootin) | ||
* Either have UnetBootin retrieve the installation image for a distribution automatically or specify the path to an image that you have already downloaded. | * Either have UnetBootin retrieve the installation image for a distribution automatically or specify the path to an image that you have already downloaded. | ||
* Select the location of the flash drive and press OK. | * Select the location of the flash drive and press OK. | ||
+ | |||
+ | ==GNU/Linux Naming Controversy== | ||
+ | |||
+ | The GNU/Linux naming controversy is a dispute regarding whether or not to refer to the operating system commonly known as Linux as GNU/Linux. GNU/Linux was a term originally created by the Free Software Foundation to refer to the combination of the GNU corelibs and the Linux Kernel, which they argued to form a functioning operating system. The Free Software Foundation recommends the term GNU/Linux because it argues the GNU project was part of a project to develop an operating system, from which the kernel was the last piece to complete (see GNU HURD). The Free Software Foundation suggests that the inclusion of the term GNU in the operating system’s name would recognize their contribution and their free software ideals ("Free Software as a Social Movement". ZNet.). Richard M. Stallman writes: | ||
+ | |||
+ | ''Today tens of millions of users are using an operating system that was developed so they could have freedom—but they don't know this, because they think the system is Linux and that it was developed by a student 'just for fun'.'' | ||
+ | |||
+ | On the opposite side of the argument, Linux supporters argue that the contribution of the Free Software Foundation is minimal (for example, GNU components make up only 8% of Ubuntu). Eric S. Raymond writes: | ||
+ | |||
+ | ''Some people object that the name "Linux" should be used to refer only to the kernel, not the entire operating system. This claim is a proxy for an underlying territorial dispute; people who insist on the term GNU/Linux want the FSF to get most of the credit for Linux because [Stallman] and friends wrote many of its user-level tools. Neither this theory nor the term GNU/Linux has gained more than minority acceptance.'' | ||
+ | |||
+ | Linux proponents also argue that since the operating system is often referred to as Linux by the mainstream media and most users, that it should be used as such, as opposed to GNU/Linux. | ||
+ | |||
+ | |||
==Let's Learn About GNU/Linux== | ==Let's Learn About GNU/Linux== | ||
Line 283: | Line 289: | ||
more < helloworld.txt | more < helloworld.txt | ||
+ | ==== Kernel ==== | ||
+ | The kernel is the central nervous system of an operating system. The linux kernel is luckily still maintained by [[Linus Torvalds]]. Find out about the version, kernel hacking and security on [https://www.kernel.org/ kernel.org]. | ||
'''Books''' | '''Books''' |
Revision as of 00:04, 7 February 2014
Linux at its core is a kernel, the central driving force of an operating system that allocates resources to other aspects of the system. Linux, along with the GNU system (which is closely associated with Free Software Foundation) are now collectively referred to as GNU/Linux, and make up a complete operating system which is widely used today by millions across the world. To read more about the history of the GNU project and Linux, see this article.
Contents
Why use GNU/Linux?
The free software philosophy is about an open and shared operating system which not only free as in money, but free as in freedom. The GNU/Linux system gives users more control over their computing experience than competing operating systems such as Windows, which could contain malicious features to them without the user's knowledge.
What's all this about distributions?
There are a lot of GNU/Linux distributions, also known as distros.
Most distros are at least somewhat similar with each other. The main differences are between the init system, package manager (and the repositories it has access to), desktop environment, (bloat) and default configurations. Most distros have their own little niche. Some are FSF compatible (or almost), for ricing, for getting shit done or just because you hate yourself or just love pain (Arch/Gentoo). Always at least try another distro before saying that you hate it. You will find that all of them have their own qualities.
When choosing a distro, keep some things in mind. Linux is about choise. There are stable and rolling distributions. Some stable distros can be made rolling by selecting the proper repositories and vice versa. Some are semi-rolling, they release snapshots of packages. Stable is best for beginners and rolling is best for developers and advanced users who want the latest and greatest.
Almost every distro can be riced by setting up the right DE and/or WM. DE's can be tiling or stacking.
Recommended distributions
These are distros typically recommended by /g/. Refer to DistroWatch.com for a more comprehensive list including less common distros.
Easy to use and install
Debian-based | |
100px | CrunchBang #!
|
Ubuntu-based | |
ElementaryOS
| |
Linux Mint |
Linux Mint
|
Ubuntu Flavors
| |
RHEL-based | |
Fedora Project
| |
CentOS
| |
Independent | |
openSUSE Website
| |
Maui Project |
Highly customizable
Distros that are good for ricing.
Gentoo | Official Website |
|
Funtoo | Official Website |
|
Debian GNU+Linux | Official Website | |
Arch | Official Website | |
Linux From Scratch | Official Website |
|
Easy installation
CrunchBang | Official Website | Debian pre-riced |
LinuxBBQ | Official Website | Debian for ricers |
Aptosid | Official Website | Fork of Debian Sid rolling branch |
ArchBang | Official Website | Arch + Openbox |
Manjaro | Official Website | Arch made easy |
Sabayon | Official Website | Gentoo for beginners |
Free as in Freedom
FSF Approved Distros | GNU Distros Page | |
Dragora GNU/Linux | Official Website | Build from scratch on Freedom |
Security
Pentoo | Official Website |
BlackArch | Official Website |
Kali Linux | Official Website |
Partially Free
Ubuntu is a distro made without respecting completely software freedom. The removal of Gnome with the heavy Unity UI may be enough to scare users away [Citation needed]. As well as that, the search tool built into their OS is linked to Amazon, which may make or break people who care about their software freedom. The website Fix Ubuntu offers a script to disable Amazon search along with other privacy issues. This OS is mostly for beginners.
Linux Mint is a distribution made without respecting completely software freedom. Some distributions will offer to install closed-source drivers to get your hardware to work; Mint automatically installs any closed-source program its developers believe might be useful. This OS is based on Ubuntu and it is mostly for beginners. The numerous closed-source browser plugins Mint ships with are a serious security risk, and (with the possible exception of Flash) largely obsolete on the modern web [Citation needed]. The primary reason it has any popularity on /g/ is that the project lead is quite open of his hatred for jews. [1] [2]
Installation
Virtual Machines
If you are not ready to commit to installing a GNU/Linux system, you may want to try one out in a virtual environment first.
Making a Bootable USB Installer
In addition to installing from CD, you can also install from a USB flash drive. A USB installer created using the following steps should work with both BIOS and UEFI systems. However, for UEFI systems you may need to disable "Secure Boot" in the UEFI configuration panel.
Note: For UEFI support your flash drive MUST be formatted as fat32 (also called vfat in GNU/Linux) when attempting to boot from it.
Windows Method
- Download the disk image of your chosen distribution.
- Download LiLi and use it to copy the image to your USB-drive.
GNU/Linux Method
Manually
This method is more reliable
- Locate your USB drive using the command lsblk. You should see the path for your USB drive, for example: /dev/sdb1. Through running this command, you should also see the size of the USB drive so you can be sure you are running your commands to the correct storage device.
- Next, use the command dd as root. The dd command has the following usage (where if is the source and of is the target):
dd if=/path/to/disc/image of=/path/to/usb/drive
An example of using the dd command could be:
dd if=/home/moot/Downloads/ubuntu12.04.iso of=/dev/sdc1 bs=4M
- Last, wait patiently until the command has executed. You can check progress of a dd command by finding the process ID with ps aux | grep dd and issuing the kill -s USR1 <pid> command against it. Just don't forget the USR1 signal or you will terminate the process.
- Install UnetBootin from your distribution's repositories, or if they are unavailable there (unlikely) download a package or tarball from the project page.
- Launch UnetBootin with root privileges. (e.g. sudo unetbootin)
- Either have UnetBootin retrieve the installation image for a distribution automatically or specify the path to an image that you have already downloaded.
- Select the location of the flash drive and press OK.
GNU/Linux Naming Controversy
The GNU/Linux naming controversy is a dispute regarding whether or not to refer to the operating system commonly known as Linux as GNU/Linux. GNU/Linux was a term originally created by the Free Software Foundation to refer to the combination of the GNU corelibs and the Linux Kernel, which they argued to form a functioning operating system. The Free Software Foundation recommends the term GNU/Linux because it argues the GNU project was part of a project to develop an operating system, from which the kernel was the last piece to complete (see GNU HURD). The Free Software Foundation suggests that the inclusion of the term GNU in the operating system’s name would recognize their contribution and their free software ideals ("Free Software as a Social Movement". ZNet.). Richard M. Stallman writes:
Today tens of millions of users are using an operating system that was developed so they could have freedom—but they don't know this, because they think the system is Linux and that it was developed by a student 'just for fun'.
On the opposite side of the argument, Linux supporters argue that the contribution of the Free Software Foundation is minimal (for example, GNU components make up only 8% of Ubuntu). Eric S. Raymond writes:
Some people object that the name "Linux" should be used to refer only to the kernel, not the entire operating system. This claim is a proxy for an underlying territorial dispute; people who insist on the term GNU/Linux want the FSF to get most of the credit for Linux because [Stallman] and friends wrote many of its user-level tools. Neither this theory nor the term GNU/Linux has gained more than minority acceptance.
Linux proponents also argue that since the operating system is often referred to as Linux by the mainstream media and most users, that it should be used as such, as opposed to GNU/Linux.
Let's Learn About GNU/Linux
The Terminal
The terminal, also know as the Command Line, Shell, or just cold, emotionless text on a black background, gives you access to the real power and beating heart of Linux. Linux by default uses BASH, or Bourne-Again Shell which is based on the shell program `sh' from UNIX, written by Steven Bourne of Bell Labs. Bash will be all of our terminal interaction.
To manage multiple user sessions on a single machine, Linux (and UNIX) uses what is called a TeleTYpeWriter (TTY) for each user to interface with the main kernel. Each tty is handled by its own special device file, located in the directory /dev. It also uses Pseudo Terminal Slave (pts) to handle other types of terminal interface, but this is beyond the scope of this guide.
You may be wondering what the difference between shell and TTY is. Shell is the command interpreter that runs everything you type in, and TTY is the connection that handles the data between Linux and the shell.
The shell uses files called stdout, stdin and stderr to handle text input and output to and from programs.
- stdin - Standard Input - All your typed text input goes into programs through here.
- stdout - Standard Output - All successful program output goes to here.
- stderr - Standard Error - All error messages and problem codes go to here.
You should get familiar with the man pages, which are essentially the manual, and will display help pages on almost all commands.
Usage: man COMMAND
Where COMMAND is replaced with whatever command you want help on. Press 'q' to exit a manual page. Alternatively, most commands will allow you to add --help on the end to get their own personal help pages.
Every key pressed ends a character to the terminal, and you can send different characters by holding down keys like [Ctrl] or [Alt]. This is how the shell can tell what key is pressed, and thus, allow shortcuts to be defined. Some of the more useful keyboard shortcuts are defined:
- Up arrow or Down arrow - Scroll through typed commands
- Shift + Page Up or Page Down - Scroll up or down through shell output
- Home or End - Move to the start or end of a line, respectively
- Tab - Autocomplete a file name, directory name or command name.
- Ctrl + C - End a running process
- Ctrl + D - End-Of-File (EOF) character (usually ends a process or signifies the end of input data)
- Ctrl + Z - Send the currently running process to the background
- Ctrl + L - Clear the screen, same as running the clear command
Piping and redirection
There are a number of little quirks that the shell has that gives it more functionality. Piping takes the stdout of the left program and connects it (i.e. pipes it) into stdin of the right program with the pipe operator.
For example:
# Count number of words in helloworld.txt cat helloworld.txt | wc -w
Redirection directs data in and out of files, i.e.
# Redirect stdout to file echo "Hello world" > helloworld.txt # Redirect stdout to the end of a file echo "world." >> hello.txt # Redirect a file to stdin more < helloworld.txt
Kernel
The kernel is the central nervous system of an operating system. The linux kernel is luckily still maintained by Linus Torvalds. Find out about the version, kernel hacking and security on kernel.org.
Books
Videos
CBT Nuggets - Linux In The Real World (Torrent)
CBT Nuggets - LPI-1_101 (Torrent)
CBT Nuggets - LPI-1_102 (Torrent)
CBT Nuggets - BackTrack and Kali Linux (Torrent)
Websites