Introduction to Linux
“Linux at the Command Line”
What is Linux?
Linux is a Unix clone written from scratch by
Linus Torvalds with assistance from a
loosely-knit team of hackers across the Net.
Unix is a multitasking, multi-user computer
operating system originally developed in
1969 by a group of AT&T employees at Bell
Labs.
64% of the world’s servers run some variant
of Unix or Linux. The Android phone and the
Kindle run Linux.
Linux Has Many Distributions
What is Linux?
Linux + GNU Utilities = Free
Unix
a set of small programs
Linux is an O/S core written by Richard
written by Linus Stallman and others. They
are the GNU utilities.
Torvalds and others
[Link]
AND
root
The root user is the master
Online Linux Terminal
[Link]
Basic Linux Commands-File System Navigation
and Listing
Command Description Example Use
Print Working Directory. Shows
pwd pwd
the current directory path.
List directory contents. Shows
ls files and folders in the current ls -l (for long listing format)
directory.
cd /home (absolute path)
Change Directory. Used to move cd .. (move up one level)
cd
between directories.
cd ~ (move to the home
directory)
12/01/2026 7
Basic Linux Commands-File and
Directory Management
Command Description Example Use
Make Directory. Creates a new
mkdir mkdir practice_dir
folder.
Creates an empty new file or
touch updates the timestamp of an touch [Link]
existing file.
cp Copy files or directories. cp [Link] [Link]
mv [Link] docs/ (move)
Move or rename files and
mv
directories.
mv [Link] renamed_file.txt
(rename)
rm Remove files. rm old_file.txt
Remove directory (only if it's
rmdir rmdir empty_folder
empty).
Recursively remove a directory
rm -r rm -r practice_dir
and all its contents.
12/01/2026 8
Basic Linux Commands-Viewing and Modifying
File Content
Command Description Example Use
Concatenate and print file
cat contents to the terminal. Best cat [Link]
for small files.
echo "Hello Linux" > new_file.txt
(overwrites)
Prints text to the terminal, often
echo
used to add content to a file.
echo "More text" >>
new_file.txt (appends)
Displays the head (first 10 lines)
head head [Link]
of a file.
Displays the tail (last 10 lines) of
tail tail [Link]
a file.
12/01/2026 9