SlideShare a Scribd company logo
Linux System Fundamentals
Lesson 1: Installation & Basics
Sadia Bashir
Contents
 Setting up Ubuntu 16.04 LTS Server/Desktop in a virtual machine
 What is Kernel?
 What is CLI?
 What is root (superuser)?
 Understanding and using “sudo”
 Understanding and using basic commands
 What is Linux Home Directory?
 Using auto-complete feature
 What are man pages?
Setting up Ubuntu 16.04 LTS Server/Desktop in a virtual
machine
 Installing Oracle VirtualBox
 Setting up Ubuntu Server 16.04 LTS Server/Desktop in a virtual
machine
 Installing putty
 Log into a Linux server and run simple updates and upgradation
What is Kernel?
 It is the core of a computer operating system that provides basic
services for all other parts of the operating system.
What is command-line?
 Command-line interface - CLI : tool which is used to type
text commands to perform specific tasks
 Shell : The application or user interface that accepts user’s
typed responses and displays the data on the screen
What is root (superuser)?
 A special user account used for system administration - has control over the entire
Linux system
 the user with a user identifier (UID) of zero
 the only user account with permission to modify the root directory of a Unix system
 It is capable of doing what normal users can’t, such as, changing ownership of files,
adding or removing files from system directories, installing new packages and many
others.
 “/” or “root” directory is different from “root” user.
Understanding and using “sudo” (super user do)
 sudo is a program for Unix-like computer operating systems that allow users to
run programs with the security privileges of another user, by default the
superuser.
 It prompts for personal password and confirms given request to execute a
command by checking a file, called sudoers, which the system administrator
configures.
 Usage:
- sudo su
- su -
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get update &sudo apt-get upgrade
Switch to “root” user
Use “sudo” to install packages
Understanding and using “sudo” (contd…)
Understanding and using basic commands
 What is Linux Home directory?
 Check present working directory - pwd
 Switch directories - cd
 View directory contents - ls
 View file contents - cat
 List logged-in users:
- users
- who
- whoami
- last
 Check ubuntu server version - lsb_release
 Search for files – locate
 Clear the terminal – clear
 Show command history - history
 Using auto-complete feature
 What are man pages?
What is Linux Home Directory?
 Linux is a multi-user operating system, which means that more than
one users can access the OS at the same time. Each user is assigned a
directory where he/she can store their personal files. This directory is
known as a user's home directory.
 Each user has complete control over his home directory as well as all
its sub-directories. He/She can freely perform operations like:
-create and delete files/directories
-install programs, and more, inside their home directory
 a user’s home directory has the same name as their login name.
 home directories are found under the home directory (/home).
Checking Present Working Directory (pwd)
 Whenever a user opens up a command line shell in Linux, it starts at
the user’s home directory by default. This is user’s present working
directory, which changes when he switches to some other directory.
 pwd command is used to check the complete path of user’s present
working directory at any point of time.
Switch directories (cd)
 command to navigate through the Linux filesystem
 this command requires either a directory name or its complete path
depending upon where the directory is present
 Usage:
-cd /path/to/ or
-cd directory_name
-cd ..
-cd -
-cd ~
-cd /
Switch immediately to home directory regardless of what present working directory is.
Switch back and forth between directories (toggling)
Switch to parent directory (single dot represents current directory)
Switch to root directory
View directory contents – ls
 lists the contents of a directory.
 the output of the ls command is color coded.
 different colors represent different types of files, making it easy to visually
identify them.
 Color codes:
- Blue (Directories),
- White (Text files),
- Red (Archives),
- Cyan (Links),
- Green (Executables),
- Pink (Images),
- Yellow (Device Files)
View directory contents – ls (contd…)
 Usage
-ls directoryName/directoryPath
-Options:
 -l : detailed listing
 -a : show hidden files
 -t : sort list based on timestamp
 -S : sort list by file size
 -r : reverse the sorting
 -d : list directories only, not their contents
 -h : print human readable sizes (e.g., 1K 234M 2G)
 use combination : -lShrt
View File Contents - cat
 Prints out file’s contents on standard output
 Command:
 cat FILE1.txt
 cat FILE1.txt FILE2.txt
 cat FILE1.txt - FILE2.txt : Output FILE1's contents, take input from user, and
then output FILE2's contents
 Options:
 -E : display $ at end of each line
 -n : number all output lines
List logged-in users
 Commands to check the complete list of logged in users either
current or all those attempts which have been made to connect user’s
machine by any user and the status of connection
 Users : prints user names of currently logged in users
 Last –a : displays a list of all users logged in (and out) since the OS is installed
 Who : shows currently logged in users with time details
 Whoami : prints the user name associated with the current effective user ID
Show command history – (history)
 history command shows a
list of all the recently used
commands
 up/down arrows are used
to loop through them
 The Ctrl+R shortcut key
will start a search mode
where the first few
characters of a command
are typed to search
through recent history
Using auto-complete feature
 tab key is used to auto complete long names and paths easily
 In case of similar initial names, shell displays all the names that it can
use for auto completion
What are man pages?
 To learn more about
Linux commands, users
can head over to the
respective man (or
Manual) pages that
come preinstalled with
Linux.
 To open a man page,
man command
followed by the
command name is run.

More Related Content

PDF
Lesson 3 Working with Files in Linux
Sadia Bashir
 
PPTX
Unix Linux Commands Presentation 2013
Wave Digitech
 
ODP
Linux Introduction (Commands)
anandvaidya
 
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
raj upadhyay
 
PPT
Unix/Linux Basic Commands and Shell Script
sbmguys
 
PDF
Linux commands
debashis rout
 
PPT
Basic 50 linus command
MAGNA COLLEGE OF ENGINEERING
 
PPTX
Linux Command Suumary
mentorsnet
 
Lesson 3 Working with Files in Linux
Sadia Bashir
 
Unix Linux Commands Presentation 2013
Wave Digitech
 
Linux Introduction (Commands)
anandvaidya
 
Terminal Commands (Linux - ubuntu) (part-1)
raj upadhyay
 
Unix/Linux Basic Commands and Shell Script
sbmguys
 
Linux commands
debashis rout
 
Basic 50 linus command
MAGNA COLLEGE OF ENGINEERING
 
Linux Command Suumary
mentorsnet
 

What's hot (20)

PPT
A Quick Introduction to Linux
Tusharadri Sarkar
 
PPT
Linux Administration
Harish1983
 
PPT
Linux Commands
Ramasubbu .P
 
PDF
Basic linux commands
Shakeel Shafiq
 
PPT
Linux commands and file structure
Sreenatha Reddy K R
 
PDF
Basics of Linux
SaifUrRahman180
 
PDF
Linux Directory Structure
Kevin OBrien
 
PPTX
Linux command for beginners
SuKyeong Jang
 
PDF
Linux Getting Started
Angus Li
 
PPT
Linux
Hema Prasanth
 
PPT
Linux basic commands
MohanKumar Palanichamy
 
PDF
Quick Guide with Linux Command Line
Anuchit Chalothorn
 
PPT
Linux presentation
Nikhil Jain
 
PPTX
Basics of-linux
Singsys Pte Ltd
 
PDF
50 most frequently used unix linux commands (with examples)
Rodrigo Maia
 
PPTX
Linux basics part 1
Lilesh Pathe
 
DOCX
Linux basic commands tutorial
Teja Bheemanapally
 
PPTX
Unix OS & Commands
Mohit Belwal
 
PDF
Linux basic
Pragyagupta37
 
ODP
Linux commands
Balakumaran Arunachalam
 
A Quick Introduction to Linux
Tusharadri Sarkar
 
Linux Administration
Harish1983
 
Linux Commands
Ramasubbu .P
 
Basic linux commands
Shakeel Shafiq
 
Linux commands and file structure
Sreenatha Reddy K R
 
Basics of Linux
SaifUrRahman180
 
Linux Directory Structure
Kevin OBrien
 
Linux command for beginners
SuKyeong Jang
 
Linux Getting Started
Angus Li
 
Linux basic commands
MohanKumar Palanichamy
 
Quick Guide with Linux Command Line
Anuchit Chalothorn
 
Linux presentation
Nikhil Jain
 
Basics of-linux
Singsys Pte Ltd
 
50 most frequently used unix linux commands (with examples)
Rodrigo Maia
 
Linux basics part 1
Lilesh Pathe
 
Linux basic commands tutorial
Teja Bheemanapally
 
Unix OS & Commands
Mohit Belwal
 
Linux basic
Pragyagupta37
 
Linux commands
Balakumaran Arunachalam
 
Ad

Viewers also liked (20)

PPTX
Proteínas reguladoras del sistema de complemento
Joel Rivera Gaytán
 
PDF
Lesson 2 Understanding Linux File System
Sadia Bashir
 
PPTX
Karakteristikat e familje pishore
Ardian Kryeziu
 
PPTX
Análisis de un artefacto tecnológico
gabriela rosero
 
PPTX
Aprendamos los numeros del 1 al 5
eliestelicte
 
PDF
20170223 beaphar slo seminar
František Polda
 
PDF
Little cookies
Betina Astride
 
PPTX
Motilidad intestinal y control nervioso de la función
Joel Rivera Gaytán
 
PPTX
1843
Pelo Siro
 
PPTX
¿Qué es blarlo?
Blarlo Translators
 
PPTX
SafeTime® - "21st Century Scaffolding Inspections"
Aaron Dawson
 
PDF
Prefabrication
Karl de Wet
 
PPTX
How to Reach Ideal Customers Using Search & Social Tactics - SMX West 2017 - ...
AdStage
 
DOCX
a successful man of the world
Agha A
 
PPTX
Geo am prezzie
Todd Barr
 
PDF
Linux Fundamental
Gong Haibing
 
PDF
Indústria Vinícola Perfinox
Manuel Corte Real Oliveira
 
PDF
Indústria Alimentar Perfinox
Manuel Corte Real Oliveira
 
PDF
Manual maestro constructor
Yoel Mamani
 
PPTX
Acne y lepra
Joel Rivera Gaytán
 
Proteínas reguladoras del sistema de complemento
Joel Rivera Gaytán
 
Lesson 2 Understanding Linux File System
Sadia Bashir
 
Karakteristikat e familje pishore
Ardian Kryeziu
 
Análisis de un artefacto tecnológico
gabriela rosero
 
Aprendamos los numeros del 1 al 5
eliestelicte
 
20170223 beaphar slo seminar
František Polda
 
Little cookies
Betina Astride
 
Motilidad intestinal y control nervioso de la función
Joel Rivera Gaytán
 
1843
Pelo Siro
 
¿Qué es blarlo?
Blarlo Translators
 
SafeTime® - "21st Century Scaffolding Inspections"
Aaron Dawson
 
Prefabrication
Karl de Wet
 
How to Reach Ideal Customers Using Search & Social Tactics - SMX West 2017 - ...
AdStage
 
a successful man of the world
Agha A
 
Geo am prezzie
Todd Barr
 
Linux Fundamental
Gong Haibing
 
Indústria Vinícola Perfinox
Manuel Corte Real Oliveira
 
Indústria Alimentar Perfinox
Manuel Corte Real Oliveira
 
Manual maestro constructor
Yoel Mamani
 
Acne y lepra
Joel Rivera Gaytán
 
Ad

Similar to Lesson 1 Linux System Fundamentals (20)

PPTX
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
PDF
Linux Notes-1.pdf
asif64436
 
PPT
Karkha unix shell scritping
chockit88
 
PDF
Basics of Linux Commands, Git and Github
Devang Garach
 
PDF
Linux Internals - Part I
Emertxe Information Technologies Pvt Ltd
 
ODP
Linux introduction-commands2338
Cam YP Co., Ltd
 
ODP
Linux introduction-commands2338
Cam YP Co., Ltd
 
ODP
Nguyễn Vũ Hưng: Basic Linux Power Tools
Vu Hung Nguyen
 
PPT
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
KesavanT10
 
PPT
cisco
edomaldo
 
PPT
3. intro
Harsh Shrimal
 
PPTX
Unix / Linux Operating System introduction.
poongothai11
 
ODP
Linuxppt
poornima sugumaran
 
PPTX
OS-Module 2 Linux Programming Important topics
JithinS34
 
PPTX
Unix_Introduction_BCA.pptx the very basi
Priyadarshini648418
 
PPTX
Linux week 2
Vinoth Sn
 
PPTX
Linux Presentation
Muhammad Qazi
 
PPT
User administration concepts and mechanisms
Duressa Teshome
 
PPTX
Unix Shell Script - 2 Days Session.pptx
Rajesh Kumar
 
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
Linux Notes-1.pdf
asif64436
 
Karkha unix shell scritping
chockit88
 
Basics of Linux Commands, Git and Github
Devang Garach
 
Linux introduction-commands2338
Cam YP Co., Ltd
 
Linux introduction-commands2338
Cam YP Co., Ltd
 
Nguyễn Vũ Hưng: Basic Linux Power Tools
Vu Hung Nguyen
 
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
KesavanT10
 
cisco
edomaldo
 
3. intro
Harsh Shrimal
 
Unix / Linux Operating System introduction.
poongothai11
 
OS-Module 2 Linux Programming Important topics
JithinS34
 
Unix_Introduction_BCA.pptx the very basi
Priyadarshini648418
 
Linux week 2
Vinoth Sn
 
Linux Presentation
Muhammad Qazi
 
User administration concepts and mechanisms
Duressa Teshome
 
Unix Shell Script - 2 Days Session.pptx
Rajesh Kumar
 

Recently uploaded (20)

PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Software Development Methodologies in 2025
KodekX
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 

Lesson 1 Linux System Fundamentals

  • 1. Linux System Fundamentals Lesson 1: Installation & Basics Sadia Bashir
  • 2. Contents  Setting up Ubuntu 16.04 LTS Server/Desktop in a virtual machine  What is Kernel?  What is CLI?  What is root (superuser)?  Understanding and using “sudo”  Understanding and using basic commands  What is Linux Home Directory?  Using auto-complete feature  What are man pages?
  • 3. Setting up Ubuntu 16.04 LTS Server/Desktop in a virtual machine  Installing Oracle VirtualBox  Setting up Ubuntu Server 16.04 LTS Server/Desktop in a virtual machine  Installing putty  Log into a Linux server and run simple updates and upgradation
  • 4. What is Kernel?  It is the core of a computer operating system that provides basic services for all other parts of the operating system. What is command-line?  Command-line interface - CLI : tool which is used to type text commands to perform specific tasks  Shell : The application or user interface that accepts user’s typed responses and displays the data on the screen
  • 5. What is root (superuser)?  A special user account used for system administration - has control over the entire Linux system  the user with a user identifier (UID) of zero  the only user account with permission to modify the root directory of a Unix system  It is capable of doing what normal users can’t, such as, changing ownership of files, adding or removing files from system directories, installing new packages and many others.  “/” or “root” directory is different from “root” user.
  • 6. Understanding and using “sudo” (super user do)  sudo is a program for Unix-like computer operating systems that allow users to run programs with the security privileges of another user, by default the superuser.  It prompts for personal password and confirms given request to execute a command by checking a file, called sudoers, which the system administrator configures.  Usage: - sudo su - su - - sudo apt-get update - sudo apt-get upgrade - sudo apt-get update &sudo apt-get upgrade Switch to “root” user Use “sudo” to install packages
  • 7. Understanding and using “sudo” (contd…)
  • 8. Understanding and using basic commands  What is Linux Home directory?  Check present working directory - pwd  Switch directories - cd  View directory contents - ls  View file contents - cat  List logged-in users: - users - who - whoami - last  Check ubuntu server version - lsb_release  Search for files – locate  Clear the terminal – clear  Show command history - history  Using auto-complete feature  What are man pages?
  • 9. What is Linux Home Directory?  Linux is a multi-user operating system, which means that more than one users can access the OS at the same time. Each user is assigned a directory where he/she can store their personal files. This directory is known as a user's home directory.  Each user has complete control over his home directory as well as all its sub-directories. He/She can freely perform operations like: -create and delete files/directories -install programs, and more, inside their home directory  a user’s home directory has the same name as their login name.  home directories are found under the home directory (/home).
  • 10. Checking Present Working Directory (pwd)  Whenever a user opens up a command line shell in Linux, it starts at the user’s home directory by default. This is user’s present working directory, which changes when he switches to some other directory.  pwd command is used to check the complete path of user’s present working directory at any point of time.
  • 11. Switch directories (cd)  command to navigate through the Linux filesystem  this command requires either a directory name or its complete path depending upon where the directory is present  Usage: -cd /path/to/ or -cd directory_name -cd .. -cd - -cd ~ -cd / Switch immediately to home directory regardless of what present working directory is. Switch back and forth between directories (toggling) Switch to parent directory (single dot represents current directory) Switch to root directory
  • 12. View directory contents – ls  lists the contents of a directory.  the output of the ls command is color coded.  different colors represent different types of files, making it easy to visually identify them.  Color codes: - Blue (Directories), - White (Text files), - Red (Archives), - Cyan (Links), - Green (Executables), - Pink (Images), - Yellow (Device Files)
  • 13. View directory contents – ls (contd…)  Usage -ls directoryName/directoryPath -Options:  -l : detailed listing  -a : show hidden files  -t : sort list based on timestamp  -S : sort list by file size  -r : reverse the sorting  -d : list directories only, not their contents  -h : print human readable sizes (e.g., 1K 234M 2G)  use combination : -lShrt
  • 14. View File Contents - cat  Prints out file’s contents on standard output  Command:  cat FILE1.txt  cat FILE1.txt FILE2.txt  cat FILE1.txt - FILE2.txt : Output FILE1's contents, take input from user, and then output FILE2's contents  Options:  -E : display $ at end of each line  -n : number all output lines
  • 15. List logged-in users  Commands to check the complete list of logged in users either current or all those attempts which have been made to connect user’s machine by any user and the status of connection  Users : prints user names of currently logged in users  Last –a : displays a list of all users logged in (and out) since the OS is installed  Who : shows currently logged in users with time details  Whoami : prints the user name associated with the current effective user ID
  • 16. Show command history – (history)  history command shows a list of all the recently used commands  up/down arrows are used to loop through them  The Ctrl+R shortcut key will start a search mode where the first few characters of a command are typed to search through recent history
  • 17. Using auto-complete feature  tab key is used to auto complete long names and paths easily  In case of similar initial names, shell displays all the names that it can use for auto completion
  • 18. What are man pages?  To learn more about Linux commands, users can head over to the respective man (or Manual) pages that come preinstalled with Linux.  To open a man page, man command followed by the command name is run.