SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Linux Fundamentals
“EXPERIENCE THE FUN IN LINUX”
by Deepak Upadhyay
What is Linux?
 Linux:
 Linux is an open-source operating system and has existed for decades and its system
base-UNIX is the foundation of both Microsoft Windows and Apple(Macintosh).
 Accounts on Linus are either Root or User and a user can enact permissions that are
based on root privileges.
 There are hundreds of Linux distributions and a distribution is a type of Linus platform
that has been created for a specific purpose or design that separates itself from other
distributions.
 Some of the most common types of Linux systems consist of Ubuntu, Debian, Fedora,
and Red Hat.
Why Use Linux?
 Linux uses less resources and computing power than other operating systems
such as Microsoft Windows.
 It will increase the ability to learn the use of other software and specifically,
information security tools.
 The open-source platform enables multiple systems to have an operating system
without limitations of product keys and licenses.
 Although Linux is still vulnerable to malware, the majority of present malware is
crafted to target Windows because it is still the most widely used operating
system.
Command Line Syntax
 The command line is made up of three components:
 Command
 Option
 File/Location
► Example: root@mint:Desktop/cat cybrary.txt
► The <cat> is the command that instructs the computer to read the contents of the
file, and <cybrary.txt> is the file itself.
► The location should be correct BEFORE executing the command because
otherwise the file will not be found, rendering the command ineffective.
Linux File and Folder Structure
 The layout of Linux resembles the design of Windows but there are some
variances.
 Linux begins with the root directory and it contains a </> slash
 Multiple folders are extensions from root and are: /home, /bin, /sbin, /usr,
/mnt, /etc, /dev
 /etc has sub folders: /etc/passwd & /etc/shadow
 The home directory contains all directories in home
 etc contains the passwords and files related to administrators. The shadow folder holds
the encrypted passwords.
 Dev (short for device) contains locations of storage and optical drives.
How to Use Linux: Terminal
 Terminal:
 The terminal is the command shell of Linux and it is the hub for the majority of the operations in Linux.
 Commands:
 ifconfig – Very similar to ipconfig in Windows. Displays network information.
 Passwd – Changes the password
 Clear – Clears the terminal (Helps when you have a full screen)
 Cat – Displays the contents of a file
 cd – Change the directory
 Cd.. – moves up one level in a directory tree
 ls – List files and directories
 Pwd – Displays path and name of current directory
 su – Become the root user.
 Sudo – Run command with root authority
 There are hundreds of commands in a Linux system yet I wanted to highlight some of the more common ones.
Linux In Action
Open Terminal in Kali Linux
Linux In Action
Kali Linux
► A file titled Cybrary-Note
was created.
► I changed the directory to
Desktop
► The ‘cat’ command was
used to read the file’s
contents.
Linux In Action
Kali Linux
► The directory was changed
to ‘dev’
► A ‘ls’ was executed to list
all in ‘dev’
Linux In Action
Kali Linux
► The file was read by using
cat and then a ‘mv’
command was done.
► ‘mv’ tells the system to
rename the file.
► Renaming files and other
things can be done by
using the terminal.
Linux In Action
Mint
Distribution
Mint is a popular Linux Distribution
Linux In Action
Mint
► The user “cybrary” was
added by using ‘sudo’
and ‘adduser’ Sudo
enables permissions
without being a root user.
► A UNIX password was
given to the user.
► Also a few fictional phone
#s for fun.
Linux In Action
Mint
► After changing the
directory to /etc , the
command to read the
shadow file was executed
/etc $ cat shadow
► Shadow contains the
encrypted passwords and
the screenshot shows how
the password to cybrary is
encrypted (Bottom of the
screenshot).
Linux Commands - Common
• cd – Change Directory
• Cd.. Move up one level in the directory
• Logout – Close the session
• Ls – List all files
• Mv – Rename file
• Rm – Delete the file
• Clear – Clear screen
• Kill – Kill the running process
• Su – Become root user
• Sudo – use root privileges
• Exit – Exit terminal
• Cat – Display contents of file
• ifconfig – Display network
configurations
• Open – open the application
• Apt-get update – update package
• passwd – change password
• pwd – Display the directory path and
name
• mkdir – make new directory
• locate – locate files with specific name
• chmod – modify permissions for files and
directories
Linux fundamentals

Weitere ähnliche Inhalte

Was ist angesagt?

Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
IMRAN KHAN
 

Was ist angesagt? (20)

Introduction to Ubuntu
Introduction to UbuntuIntroduction to Ubuntu
Introduction to Ubuntu
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Ubuntu – Linux Useful Commands
Ubuntu – Linux Useful CommandsUbuntu – Linux Useful Commands
Ubuntu – Linux Useful Commands
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Linux
LinuxLinux
Linux
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in Detail
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
 
Linux file system
Linux file systemLinux file system
Linux file system
 
9. 10 distribuciones linux y sus caracteristicas
9. 10 distribuciones linux y sus caracteristicas9. 10 distribuciones linux y sus caracteristicas
9. 10 distribuciones linux y sus caracteristicas
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
 

Ähnlich wie Linux fundamentals

Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
Ravikumar Nandigam
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
Chander Pandey
 

Ähnlich wie Linux fundamentals (20)

Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
 
Module1
Module1Module1
Module1
 
Linux Basics Knowlage sharing.pptx
Linux Basics Knowlage sharing.pptxLinux Basics Knowlage sharing.pptx
Linux Basics Knowlage sharing.pptx
 
Get Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic KnowledgeGet Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic Knowledge
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUX
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Introduce to linux
Introduce to linuxIntroduce to linux
Introduce to linux
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
User administration concepts and mechanisms
User administration concepts and mechanismsUser administration concepts and mechanisms
User administration concepts and mechanisms
 
Linux basic
Linux basicLinux basic
Linux basic
 
Group project linux helix
Group project linux helixGroup project linux helix
Group project linux helix
 
INTRODUCTION TO LINUX
INTRODUCTION TO LINUXINTRODUCTION TO LINUX
INTRODUCTION TO LINUX
 
Linux
Linux Linux
Linux
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
linux-lecture1.ppt
linux-lecture1.pptlinux-lecture1.ppt
linux-lecture1.ppt
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 

Mehr von Deepak Upadhyay

Mehr von Deepak Upadhyay (10)

Power of positive attitude
Power of positive attitudePower of positive attitude
Power of positive attitude
 
EFFICIENT DATA EXTRACTION USING ARTIFICIAL INTELLIGENCE
EFFICIENT DATA EXTRACTION USING  ARTIFICIAL INTELLIGENCEEFFICIENT DATA EXTRACTION USING  ARTIFICIAL INTELLIGENCE
EFFICIENT DATA EXTRACTION USING ARTIFICIAL INTELLIGENCE
 
Holographic Data Storage
Holographic Data StorageHolographic Data Storage
Holographic Data Storage
 
Augmented Reality
Augmented RealityAugmented Reality
Augmented Reality
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 
Progressive web app
Progressive web appProgressive web app
Progressive web app
 
ADBMS (MySql) tiny project
ADBMS (MySql) tiny projectADBMS (MySql) tiny project
ADBMS (MySql) tiny project
 
Man in The Middle Attack
Man in The Middle AttackMan in The Middle Attack
Man in The Middle Attack
 
You Are Born To Blossom by Dr. APJ Abdul Kalam Book Review
You Are Born To Blossom by Dr. APJ Abdul Kalam Book ReviewYou Are Born To Blossom by Dr. APJ Abdul Kalam Book Review
You Are Born To Blossom by Dr. APJ Abdul Kalam Book Review
 
Online notice board
Online notice boardOnline notice board
Online notice board
 

Kürzlich hochgeladen

一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
F
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 

Kürzlich hochgeladen (20)

20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
call girls in Anand Vihar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理一比一原版田纳西大学毕业证如何办理
一比一原版田纳西大学毕业证如何办理
 
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 

Linux fundamentals

  • 1. Linux Fundamentals “EXPERIENCE THE FUN IN LINUX” by Deepak Upadhyay
  • 2. What is Linux?  Linux:  Linux is an open-source operating system and has existed for decades and its system base-UNIX is the foundation of both Microsoft Windows and Apple(Macintosh).  Accounts on Linus are either Root or User and a user can enact permissions that are based on root privileges.  There are hundreds of Linux distributions and a distribution is a type of Linus platform that has been created for a specific purpose or design that separates itself from other distributions.  Some of the most common types of Linux systems consist of Ubuntu, Debian, Fedora, and Red Hat.
  • 3. Why Use Linux?  Linux uses less resources and computing power than other operating systems such as Microsoft Windows.  It will increase the ability to learn the use of other software and specifically, information security tools.  The open-source platform enables multiple systems to have an operating system without limitations of product keys and licenses.  Although Linux is still vulnerable to malware, the majority of present malware is crafted to target Windows because it is still the most widely used operating system.
  • 4. Command Line Syntax  The command line is made up of three components:  Command  Option  File/Location ► Example: root@mint:Desktop/cat cybrary.txt ► The <cat> is the command that instructs the computer to read the contents of the file, and <cybrary.txt> is the file itself. ► The location should be correct BEFORE executing the command because otherwise the file will not be found, rendering the command ineffective.
  • 5. Linux File and Folder Structure  The layout of Linux resembles the design of Windows but there are some variances.  Linux begins with the root directory and it contains a </> slash  Multiple folders are extensions from root and are: /home, /bin, /sbin, /usr, /mnt, /etc, /dev  /etc has sub folders: /etc/passwd & /etc/shadow  The home directory contains all directories in home  etc contains the passwords and files related to administrators. The shadow folder holds the encrypted passwords.  Dev (short for device) contains locations of storage and optical drives.
  • 6. How to Use Linux: Terminal  Terminal:  The terminal is the command shell of Linux and it is the hub for the majority of the operations in Linux.  Commands:  ifconfig – Very similar to ipconfig in Windows. Displays network information.  Passwd – Changes the password  Clear – Clears the terminal (Helps when you have a full screen)  Cat – Displays the contents of a file  cd – Change the directory  Cd.. – moves up one level in a directory tree  ls – List files and directories  Pwd – Displays path and name of current directory  su – Become the root user.  Sudo – Run command with root authority  There are hundreds of commands in a Linux system yet I wanted to highlight some of the more common ones.
  • 7. Linux In Action Open Terminal in Kali Linux
  • 8. Linux In Action Kali Linux ► A file titled Cybrary-Note was created. ► I changed the directory to Desktop ► The ‘cat’ command was used to read the file’s contents.
  • 9. Linux In Action Kali Linux ► The directory was changed to ‘dev’ ► A ‘ls’ was executed to list all in ‘dev’
  • 10. Linux In Action Kali Linux ► The file was read by using cat and then a ‘mv’ command was done. ► ‘mv’ tells the system to rename the file. ► Renaming files and other things can be done by using the terminal.
  • 11. Linux In Action Mint Distribution Mint is a popular Linux Distribution
  • 12. Linux In Action Mint ► The user “cybrary” was added by using ‘sudo’ and ‘adduser’ Sudo enables permissions without being a root user. ► A UNIX password was given to the user. ► Also a few fictional phone #s for fun.
  • 13. Linux In Action Mint ► After changing the directory to /etc , the command to read the shadow file was executed /etc $ cat shadow ► Shadow contains the encrypted passwords and the screenshot shows how the password to cybrary is encrypted (Bottom of the screenshot).
  • 14. Linux Commands - Common • cd – Change Directory • Cd.. Move up one level in the directory • Logout – Close the session • Ls – List all files • Mv – Rename file • Rm – Delete the file • Clear – Clear screen • Kill – Kill the running process • Su – Become root user • Sudo – use root privileges • Exit – Exit terminal • Cat – Display contents of file • ifconfig – Display network configurations • Open – open the application • Apt-get update – update package • passwd – change password • pwd – Display the directory path and name • mkdir – make new directory • locate – locate files with specific name • chmod – modify permissions for files and directories