In this video you’ll learn how to:
- Find a command that is not in your PATH.
- Find any file on a Linux system.
- Use the following commands: find, locate, type, which, grep, touch, updatedb, sudo, and ls.
In this video you’ll learn how to:
If you are looking to gain some experience as a Linux system administrator, check out the list of ideas below. For each project on the list you could do it on multiple Linux distributions. You could also start about by learning the bare minimum necessary to complete one of these projects, then take it to the next level by making it fault tolerant or learning how to scale it. Create a virtual machine for your projects or try them on your own server hosted at Digital Ocean.
Find a real need you have and fill it using a Linux based solution. This is one of the most rewarding ways to learn Linux. For example,
The next time you have a technical need and want to get some extra Linux practice, see if you can solve your problem with Linux.
LAMP stands for Linux Apache MySQL and PHP. It’s a very common architecture for web applications. If you think about the LAMP stack in broad terms you have an operating system (Linux), a web server (Apache), a database tier (MySQL), and a programming language (PHP). You can substitue different solutions for each component. Try configuring the LAMP stack on CentOS, then Ubuntu. Instead of using Apache you could use NGINX or lighttpd. For the database you could use PostgreSQL, MariaDB, or MongoDB. Instead of using PHP, why not try Python?
If you want to take it a step further and learn how to set up a highly available and scalable LAMP Stack, check out the High Availability for the LAMP Stack Course.
Find an application that you would be interested in using and deploy it. Even if you don’t end up using the application you’ll have gained the experience of setting it up.
Here are the most common top level directories that you need to be aware of and may interact with as a user of a Linux system.
|The directory called “root.” It is the starting point for the file system hierarchy. Note that this is not related to the root, or superuser, account.|
|Binaries and other executable programs.|
|System configuration files.|
|Optional or third party software.|
|Temporary space, typically cleared on reboot.|
|User related programs.|
|Variable data, most notably log files.|
The Linux directory structure is like a tree. The base of the Linux file system hierarchy begins at the root. Directories branch off the root, but everything starts at root.
The directory separator in Linux is the forward slash (/). When talking about directories and speaking directory paths, “forward slash” is abbreviated to “slash.” Often the root of the file system is referred to as “slash” since the full path to it is
/. If you hear someone say “look in slash” or “that file is in slash,” they are referring to the root directory.
/bin directory is where you will find binary or executable files. Programs are written in source code which is human readable text. Source code is then compiled into machine readable binaries. They are called binaries because machine code is a series of zeros and ones. The import thing to know is that commands, programs, and applications that you can use are sometimes located in
Configuration files live in the
/etc directory. Configuration files control how the operating system or applications behave. For example, there is a file in
/etc that tells the operating system whether to boot into a text mode or a graphical mode.
User home directories are located in
/home. If your account name is “pat” your home directory will be
/home/pat. Linux systems can and often do have multiple user accounts. Home directories allow each user to separate their data from the other users on the system. The
pat directory is knows as a subdirectory. A subdirectory is simply a directory that resides inside another directory.
/opt directory houses optional or third party software. Software that is not bundled with the operating system will often been installed in
/opt. For example, the Google Earth application is not part of the standard Linux operating system and gets installed in the
Temporary space is allocated in
/tmp. Most Linux distributions clear the contents of
/tmp at boot time. Be aware that if you put files in
/tmp and the Linux system reboots, your files will more than likely be gone. The
/tmp directory is a great place to store temporary files, but do not put anything in
/tmp that you want to keep long term.
/usr directory is called “user.” You will find user related binary programs and executables in the
Variable data such as log files reside in
/var. Specifically, the
/var/log directory contains logs generated by the operating system and other applications.
These are only the most commonly used directories. For a more comprehensive listing and details see the Filesystem Hierarchy Standard.