Linux for Beginners: Taking Your First Steps

Linux for beginners: with cloud-based use of the Linux OS growing exponentially, it might just be time for you to try it out for yourself

Don’t think you’ve ever been introduced to the Linux Operating System? You probably use it every day without even realizing it. After all, Linux servers run Google, Twitter, Facebook, and a whole pile of other major Internet sites.
Linux is virtually synonymous with the cloud. So if you plan on working with cloud-based projects, then it’s probably a good idea to pick up at least some Linux bare essentials. So that’s where we’re headed today: Linux for beginners.

By the way, Cloud Academy has a full introductory LPIC-1 101 Linux certification course to help you get started with Linux.

First, just for fun, here’s a short list of some stuff that runs on Linux:

  • Android phones and tablets.
  • 94% of the world’s supercomputers.
  • Air traffic control systems.
  • CERN, the world’s largest particle physics laboratory, relies upon Linux to power its huge particle accelerator.
  • The New York Stock Exchange.
  • Japanese high-speed rail.
  • In 2004, Lockheed Martin delivered a Red Hat Linux-powered nuclear submarine to the US Navy (bug-free I hope!).

Linux is everywhere. If you want to be anywhere, then I suppose you’ll need at least a passing familiarity.

The many flavors of Linux

While the basic system (or “kernel”) is the same, the look and feel and the software ecosystem driving one Linux distribution can be quite different from another.

My personal favorite, for my day-to-day desktop work at least, is Ubuntu, and that’s what we’ll use for this guide. But here are some others you may have heard of:

  • Fedora (Red Hat’s community edition)
  • Linux Mint
  • openSUSE
  • Debian

Those are by no means the only ones out there, or even necessarily the biggest. But they’re great places to begin a Linux for beginners test.

Linux for beginners (on your PC)

The best way to learn Linux is to use it. So why not just try it out on your PC without even needing to install it? If you like what you see, but you might possibly still need Windows from time to time, it is possible to install them both side-by-side as a dual boot. This means, that when your PC starts up, you get to choose whether to launch Windows or Linux.

Linux installation screen

Linux for beginners on AWS

Another way to try out Linux is by launching an Amazon EC2 instance and playing around with it there. This has the added benefit of not requiring that you make any scary changes to your own PC. You’ll be able to choose from a number of Linux distributions and, once you are finished, you can just delete the instance completely without consequence.

Linux distributions from the Amazon Machine Image menu


OK. I’ve got Linux Installed. Now what?

Assuming that you are at the “Linux for beginners” stage, let me walk you through some basic Linux commands to help you find your way around a little easier. When you log in to a Linux session, you will find yourself in your user’s home directory. Let’s start from there.

Note: The following commands were all executed on an Ubuntu machine installed on my personal PC.
pwd – Print Working Directory
Linux print working directory
Running pwd from the command line will show you exactly where you are in the system directory tree. As you can see from my example, I am in /home/mick – which is my user’s home directory. This can be useful if you’re ever unsure exactly “where” you are.

ls – List the contents of your current directory
Linux list current directory
cdChange Directory
Linux - change directory
The cd command lets you navigate from directory to directory on your system. In the example above,

cd Documents

changes my directory to ~/Documents. The “~” stands for my home directory, so the full path of my new directory is really /home/mick/Documents.

Following cd, I ran

ls -al

-al adds two parameters to the ls command, where ‘a’ shows all files – including any hidden files and folders, and ‘l’ displays a longer, more detailed directory list.
cp (copy)
Linux - copy code
Here, I copied the file keepass.key into /home/mick, then I ran

cd ..

Where the two dots mean move “up” one directory. This brings us back to /home/mick. The final ls command displays the keepass.key we’ve just copied.
top
Linux - top
top displays the currently running system processes that are taking up the most memory and compute resources.

Some common syntax you will find across most Linux distributions

  • The command comes first (before parameters and arguments).
  • In help documentation, parameters that are to be supplied by the user are displayed within <angle brackets> – with the text inside the brackets acting as a description.
  • Optional parameters are displayed within [square brackets].
  • If a parameter value must be chosen from a defined set, then the different options are separated by the pipe symbol, “|”, representing “or”.

Some other useful “Linux for beginners” Commands

  • find – Find a file on the filesystem.
  • man – Displays a command’s manual.
  • clear – clear the screen.
  • nano – a simple text editor.
  • sudo or su – execute a command as super-user.
  • rmRemoves one or more files.
  • rmdirRemove an empty directory.
  • mkdirMake a directory.
  • ps – Provides a list of currently running processes.
  • mvMove a file (this is also used to rename a file. “Moving” it from one file name to another).
  • grep – The global regular expression print program lets you search through a file or output of another program.

Avatar

Written by

Michael Sheehy

I have been UNIX/Linux System Administrator for the past 15 years and am slowly moving those skills into the AWS Cloud arena. I am passionate about AWS and Cloud Technologies and the exciting future that it promises to bring.


Related Posts

Avatar
Vineet Badola
— February 11, 2016

Linux Containers with LXC: Some Best Practices

I am going to show you the best ways of using LXC to create Linux containers. You'll thank me. Hypervisor Virtualization and where Container Virtualization fits: Container virtualization (also known as Operating System Virtualization) is an important player among the many types of vi...

Read more
  • Cloud Computing
  • Linux
Avatar
Eugene Teo
— December 17, 2015

SELinux: improve the security of your EC2 servers

SELinux provides tools to more finely control the activities allowed to users, processes, and daemons to limit the potential damage from vulnerabilities. In the third and final part of our server security series, we will look at how we can enhance the security of Linux-based AWS EC2 in...

Read more
  • AWS
  • EC2
  • Linux
Avatar
Michael Sheehy
— October 5, 2015

This week’s Cloud Computing Jobs – AWS and Linux Administration

(Update March 2019) To get a definition of the roles needed to maximize your organization's investment in cloud, explore the latest skills in demand by job role with Cloud Academy's Cloud Roster™. Cloud Academy is always on the lookout for the most promising Cloud Computing opportuniti...

Read more
  • AWS
  • Cloud Computing
  • Linux
Avatar
David Clinton
— September 2, 2015

Updates to Cloud Academy Labs: This Week at Cloud Academy

Welcome to our weekly review of some of what’s new, interesting, and upcoming at Cloud Academy. Lab updates You talk. Cloud Academy listens. From the very beginning, Cloud Academy's hands-on labs have been a very popular resource. Being guided through a real-world cloud computing e...

Read more
  • Hands-on Labs
  • Lambda
  • Linux
Avatar
Nitheesh Poojary
— August 24, 2015

Linux Skills for Cloud Computing

IBM's 1981 release of its first Intel 8088 microprocessor-based computer sparked the PC revolution. Ever since, there's been a steady torrent of change, accompanied by near-constant upheavals in the tech job market - with nothing shaking up the business like virtualization and Cloud Com...

Read more
  • Cloud Computing
  • Linux
Avatar
David Clinton
— July 31, 2015

Machine Learning, Linux Administration, AWS Compute: This Week at Cloud Academy

Welcome to our weekly review of some of what’s new, interesting, and upcoming at Cloud Academy. New courses on Machine Learning, Linux Administration, and AWS Compute It's been an exciting week at Cloud Academy, with the content creation machine churning out three brand new courses! ...

Read more
  • AWS
  • Linux
  • Machine Learning
Avatar
David Clinton
— July 17, 2015

This Week at Cloud Academy

Welcome to our weekly review of some of what’s new, interesting, and upcoming at Cloud Academy. New course: Cloud Academy just released another course in its LPIC-1 Linux certification series. This one covers Linux display managers and desktop environments...but it also works through ...

Read more
  • Cloud Computing
  • Linux
Avatar
David Clinton
— June 26, 2015

This Week at Cloud Academy

Welcome to our weekly review of some of what’s new, interesting, and upcoming at Cloud Academy. New Course The fifth course in our Server Professional Linux certification series is now out, which means that you've got everything you need to prepare yourself for the first of the two LP...

Read more
  • Linux
Avatar
David Clinton
— June 25, 2015

The Linux Cloud on AWS: Use Linux Skills to Power Cloud Deployments

Why the Linux Cloud is a really big deal and what you have to know to start taking full advantage of it. The fact is, since they probably constitute only around 2% of the total consumer PC market, you may not see all that many desktop and laptop machines running Linux. But the connecte...

Read more
  • AWS
  • Linux
Avatar
David Clinton
— June 23, 2015

Linux Certification Courses: Prepare For the LPIC-1 Exams

Linux administration skills are worth gold these days. And the kind of skills that come with Linux certifications are even better. A new Linux certification training series As you might already have noticed, Cloud Academy has been busy producing a series of courses on Linux certificat...

Read more
  • Linux
Avatar
David Clinton
— June 12, 2015

This Week at Cloud Academy

Welcome to our weekly review of some of what's new, interesting, and just around the corner at your favorite cloud training source. We published two brand new courses in recent days: Amazon VPC: working with AWS networking (AWS261). This is the first course from the intermediate lev...

Read more
  • AWS
  • Linux
  • Security