SlideShare a Scribd company logo
1 of 24
Linux Survival Skills
Bob Wakefield
Principal
bob@MassStreet.net
Twitter: @MassStreet
Who is Mass Street?
•Boutique data consultancy
•Hortonworks Partner
•Big data training
Bob’s Background
• IT professional 16 years
• Background is mostly Windows tech
• Education
• BS Business Admin (MIS) from KState
• MBA (finance concentration) from KU
• Coursework in Mathematics at Washburn
• Graduate certificate data science from Rockhurst
•Addicted to everything data
Administration
•The history of the group
•Day of the week will rotate
between Tues, Wed and Thurs
•Weekends for larger topics
•Location?
This evening’s objectives
•NOT to become masters of the
Linux OS
•Just be able to move around in
Linux
•Linux is the gateway drug to
big data
Where Can I Get More Info?
• Udemy!
•Linux for Beginners by Jason Cannon
•Whole series on Linux
•Stack Overflow (surprisingly)
Linux: A quick history
• Created by Linus Tovalds et al and
released to the wild in 1991. v1 released
in 1994.
•Not mini Unix!
•Linux 2002 = yuck
•Linux 2015 = pretty awesome
The Many Flavors of Linux
• There are many Linux distros and each one is a little (or a lot)
different.
• DistroWatch.com
• Popular Distros
• Ubuntu = Linux for the “home”
• Red Hat (RHEL) = Linux “pro”
• CentOS = Free RHEL
• Hadoop distros run on RHEL and CentOS (and Windows but
meh)
• Just say no to GUIs!
Getting Your VM Set Up
Package Managers
•Ubuntu = apt-git
•CentOS = yum
Let’s update and install some
software
•Yum update
•Yum install nano
Linux Shell Basics
•[user@server current directory] $|=
•$ = normal user
•= = super user
•Up and down arrows will show command
history
•No recycle bin! Changes are permanent.
Linux Shell Basics
•~ = this accounts home directory
•/ = root
Directory Structure
• / = “Root,” the top of the file system hierarchy.
• /bin = Binaries and other executable programs.
• /etc = System configuration files.
• /home = User Home directories (like Windows
documents)
• /opt = Optional or third party software.
• /tmp = Temporary space, typically cleared on reboot.
• /usr = User related programs.
• /var = Variable data, most notably log files.
Useful Linux Commands
• ls - Lists directory contents.
• cd - Changes the current directory.
• pwd - Displays the present working directory.
• man - Displays the online manual.
• exit/logout/ ctrl-d - Exits the shell or your current
session.
• clear - Clears the screen.
Useful Linux Commands
• ls - Lists directory contents.
• Ls – l – long listing
• cd - Changes the current directory.
• pwd - Displays the present working directory.
• man - Displays the online manual.
• exit/logout/ ctrl-d - Exits the shell or your current
session.
• clear - Clears the screen.
Navigation
• Cd (nothing) = go home
• CD . = this directory
• CD .. = parent directory
• CD - = previous directory
• CD /bob = change to the bob directory
File Operations
•Shhhh! I don’t use these.
•So why are we learning them?
•A lot of HDFS commands are the same as linux
commands
•You cannot interact with HDFS using WinSCP
or another FTP program
File Operations
• mkdir directory = Create a directory
• rm file = Remove (delete) file
• rm -r directory = Remove the directory and its contents
• recursively
• rm -f file = Force removal of file without prompting for
• confirmation
• rm -rf directory = Forcefully remove directory
recursively
• mv file1 file2 = Rename or move file1 to file2 . If file2 is
an existing directory, move file1 into directory file2
File Permissions
• Page 5 of cheat sheet
• Permissions
• R = read
• W = write
• X execute
• Permission Categories
• U = user that owns the file
• G = the users in that group
• O = other not the user and current user is not in group
File Permissions Decrypted
•rw-r--rwx
•User/Group/Other
•User has read write
•Group has read only
•Other has read write execute
Changing Permissions
•We’re going to learn the easy way.
•Covert symbolic to base 10
• Three categories UGO
• Three positions rwx
• rwx in binary = 111 (rw- = 110)
• 111 in base 10 = 7 (4 + 2 + 1) (110 = 6)
•rwxrwxrwx = 777 (don’t try this at home)
•Chmod 777 filename
Things We Didn’t Tackle
•Finding files
•Gzip (compression)
•Tar (archive)
•SCP (secure copy over network)
•Wget (download file from web)
•Sudo (act as a user)
•Ssh (connect securely to another machine)
On Your Own

More Related Content

What's hot

Unix files
Unix filesUnix files
Unix filesSunil Rm
 
File permissions
File permissionsFile permissions
File permissionsVarnnit Jain
 
06 users groups_and_permissions
06 users groups_and_permissions06 users groups_and_permissions
06 users groups_and_permissionsShay Cohen
 
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013Terminalfour
 
Sun NFS , Case study
Sun NFS , Case study Sun NFS , Case study
Sun NFS , Case study Shashwat Singh
 
SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience aniadkar
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed ComputingChandan Padalkar
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxnanocdac
 
OpenZFS - BSDcan 2014
OpenZFS - BSDcan 2014OpenZFS - BSDcan 2014
OpenZFS - BSDcan 2014Matthew Ahrens
 
RIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
RIO Distribution: Reconstructing the onion - Shyamsundar RanganathanRIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
RIO Distribution: Reconstructing the onion - Shyamsundar RanganathanGluster.org
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEMRoshan Kumar
 

What's hot (20)

Filepermissions in linux
Filepermissions in linuxFilepermissions in linux
Filepermissions in linux
 
Unix files
Unix filesUnix files
Unix files
 
File permissions
File permissionsFile permissions
File permissions
 
Lets talk dns
Lets talk dnsLets talk dns
Lets talk dns
 
06 users groups_and_permissions
06 users groups_and_permissions06 users groups_and_permissions
06 users groups_and_permissions
 
Zabi
ZabiZabi
Zabi
 
Nfs
NfsNfs
Nfs
 
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013
OECD policies & TERMINALFOUR as a policy for innovation:TERMINALFOUR t44u 2013
 
Sun NFS , Case study
Sun NFS , Case study Sun NFS , Case study
Sun NFS , Case study
 
Nfs
NfsNfs
Nfs
 
SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience
 
Nfs
NfsNfs
Nfs
 
Linux
LinuxLinux
Linux
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed Computing
 
Nfs
NfsNfs
Nfs
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
OpenZFS - BSDcan 2014
OpenZFS - BSDcan 2014OpenZFS - BSDcan 2014
OpenZFS - BSDcan 2014
 
RIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
RIO Distribution: Reconstructing the onion - Shyamsundar RanganathanRIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
RIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
 

Similar to Hands On: Linux survival skills

Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.pptVikrantSChohaan
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptxGuhanSenthil2
 
Linux: Basics OF Linux
Linux: Basics OF LinuxLinux: Basics OF Linux
Linux: Basics OF LinuxOmkar Walavalkar
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxHemantJadhao3
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsQUONTRASOLUTIONS
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in DetailDamian T. Gordon
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux trainingMichael Olafusi
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_bMohammad Reza Beygi
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPriyadarshini648418
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-serviceRohit Sansiya
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptxPriyadarshini648418
 
How to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNHow to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNGene Kartavtsev
 
File system discovery
File system discovery File system discovery
File system discovery DevMix
 
KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptxGanesh Bhosale
 
001 linux revision
001 linux revision001 linux revision
001 linux revisionSherif Mousa
 
Hpux graduate enginnering trainning
Hpux graduate enginnering trainningHpux graduate enginnering trainning
Hpux graduate enginnering trainningRadhe Garg
 

Similar to Hands On: Linux survival skills (20)

Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptx
 
Linux: Basics OF Linux
Linux: Basics OF LinuxLinux: Basics OF Linux
Linux: Basics OF Linux
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptx
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra Solutions
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in Detail
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
How to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNHow to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MN
 
File system discovery
File system discovery File system discovery
File system discovery
 
Unix/Linux
Unix/Linux Unix/Linux
Unix/Linux
 
KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptx
 
001 linux revision
001 linux revision001 linux revision
001 linux revision
 
Hpux graduate enginnering trainning
Hpux graduate enginnering trainningHpux graduate enginnering trainning
Hpux graduate enginnering trainning
 
Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 

More from Adaryl "Bob" Wakefield, MBA

The Marriage of the Data Lake and the Data Warehouse and Why You Need Both
The Marriage of the Data Lake and the Data Warehouse and Why You Need BothThe Marriage of the Data Lake and the Data Warehouse and Why You Need Both
The Marriage of the Data Lake and the Data Warehouse and Why You Need BothAdaryl "Bob" Wakefield, MBA
 
Big Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersBig Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersAdaryl "Bob" Wakefield, MBA
 
Perfecting Your Streaming Skills with Spark and Real World IoT Data
Perfecting Your Streaming Skills with Spark and Real World IoT DataPerfecting Your Streaming Skills with Spark and Real World IoT Data
Perfecting Your Streaming Skills with Spark and Real World IoT DataAdaryl "Bob" Wakefield, MBA
 
Reproducible Research with R, The Tidyverse, Notebooks, and Spark
Reproducible Research with R, The Tidyverse, Notebooks, and SparkReproducible Research with R, The Tidyverse, Notebooks, and Spark
Reproducible Research with R, The Tidyverse, Notebooks, and SparkAdaryl "Bob" Wakefield, MBA
 
Architecting Your First Big Data Implementation
Architecting Your First Big Data ImplementationArchitecting Your First Big Data Implementation
Architecting Your First Big Data ImplementationAdaryl "Bob" Wakefield, MBA
 
Hands On: Introduction to the Hadoop Ecosystem
Hands On: Introduction to the Hadoop EcosystemHands On: Introduction to the Hadoop Ecosystem
Hands On: Introduction to the Hadoop EcosystemAdaryl "Bob" Wakefield, MBA
 
In Memory Databases: A Real Time Analytics Solution
In Memory Databases: A Real Time Analytics SolutionIn Memory Databases: A Real Time Analytics Solution
In Memory Databases: A Real Time Analytics SolutionAdaryl "Bob" Wakefield, MBA
 
Not Just Another Overview of Apache Hadoop
Not Just Another Overview of Apache HadoopNot Just Another Overview of Apache Hadoop
Not Just Another Overview of Apache HadoopAdaryl "Bob" Wakefield, MBA
 

More from Adaryl "Bob" Wakefield, MBA (9)

The Marriage of the Data Lake and the Data Warehouse and Why You Need Both
The Marriage of the Data Lake and the Data Warehouse and Why You Need BothThe Marriage of the Data Lake and the Data Warehouse and Why You Need Both
The Marriage of the Data Lake and the Data Warehouse and Why You Need Both
 
Big Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R UsersBig Data Technologies and Why They Matter To R Users
Big Data Technologies and Why They Matter To R Users
 
Getting Started With Sparklyr
Getting Started With SparklyrGetting Started With Sparklyr
Getting Started With Sparklyr
 
Perfecting Your Streaming Skills with Spark and Real World IoT Data
Perfecting Your Streaming Skills with Spark and Real World IoT DataPerfecting Your Streaming Skills with Spark and Real World IoT Data
Perfecting Your Streaming Skills with Spark and Real World IoT Data
 
Reproducible Research with R, The Tidyverse, Notebooks, and Spark
Reproducible Research with R, The Tidyverse, Notebooks, and SparkReproducible Research with R, The Tidyverse, Notebooks, and Spark
Reproducible Research with R, The Tidyverse, Notebooks, and Spark
 
Architecting Your First Big Data Implementation
Architecting Your First Big Data ImplementationArchitecting Your First Big Data Implementation
Architecting Your First Big Data Implementation
 
Hands On: Introduction to the Hadoop Ecosystem
Hands On: Introduction to the Hadoop EcosystemHands On: Introduction to the Hadoop Ecosystem
Hands On: Introduction to the Hadoop Ecosystem
 
In Memory Databases: A Real Time Analytics Solution
In Memory Databases: A Real Time Analytics SolutionIn Memory Databases: A Real Time Analytics Solution
In Memory Databases: A Real Time Analytics Solution
 
Not Just Another Overview of Apache Hadoop
Not Just Another Overview of Apache HadoopNot Just Another Overview of Apache Hadoop
Not Just Another Overview of Apache Hadoop
 

Recently uploaded

cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 

Recently uploaded (20)

cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 

Hands On: Linux survival skills

  • 1. Linux Survival Skills Bob Wakefield Principal bob@MassStreet.net Twitter: @MassStreet
  • 2. Who is Mass Street? •Boutique data consultancy •Hortonworks Partner •Big data training
  • 3. Bob’s Background • IT professional 16 years • Background is mostly Windows tech • Education • BS Business Admin (MIS) from KState • MBA (finance concentration) from KU • Coursework in Mathematics at Washburn • Graduate certificate data science from Rockhurst •Addicted to everything data
  • 4. Administration •The history of the group •Day of the week will rotate between Tues, Wed and Thurs •Weekends for larger topics •Location?
  • 5. This evening’s objectives •NOT to become masters of the Linux OS •Just be able to move around in Linux •Linux is the gateway drug to big data
  • 6. Where Can I Get More Info? • Udemy! •Linux for Beginners by Jason Cannon •Whole series on Linux •Stack Overflow (surprisingly)
  • 7. Linux: A quick history • Created by Linus Tovalds et al and released to the wild in 1991. v1 released in 1994. •Not mini Unix! •Linux 2002 = yuck •Linux 2015 = pretty awesome
  • 8. The Many Flavors of Linux • There are many Linux distros and each one is a little (or a lot) different. • DistroWatch.com • Popular Distros • Ubuntu = Linux for the “home” • Red Hat (RHEL) = Linux “pro” • CentOS = Free RHEL • Hadoop distros run on RHEL and CentOS (and Windows but meh) • Just say no to GUIs!
  • 10. Package Managers •Ubuntu = apt-git •CentOS = yum
  • 11. Let’s update and install some software •Yum update •Yum install nano
  • 12. Linux Shell Basics •[user@server current directory] $|= •$ = normal user •= = super user •Up and down arrows will show command history •No recycle bin! Changes are permanent.
  • 13. Linux Shell Basics •~ = this accounts home directory •/ = root
  • 14. Directory Structure • / = “Root,” the top of the file system hierarchy. • /bin = Binaries and other executable programs. • /etc = System configuration files. • /home = User Home directories (like Windows documents) • /opt = Optional or third party software. • /tmp = Temporary space, typically cleared on reboot. • /usr = User related programs. • /var = Variable data, most notably log files.
  • 15. Useful Linux Commands • ls - Lists directory contents. • cd - Changes the current directory. • pwd - Displays the present working directory. • man - Displays the online manual. • exit/logout/ ctrl-d - Exits the shell or your current session. • clear - Clears the screen.
  • 16. Useful Linux Commands • ls - Lists directory contents. • Ls – l – long listing • cd - Changes the current directory. • pwd - Displays the present working directory. • man - Displays the online manual. • exit/logout/ ctrl-d - Exits the shell or your current session. • clear - Clears the screen.
  • 17. Navigation • Cd (nothing) = go home • CD . = this directory • CD .. = parent directory • CD - = previous directory • CD /bob = change to the bob directory
  • 18. File Operations •Shhhh! I don’t use these. •So why are we learning them? •A lot of HDFS commands are the same as linux commands •You cannot interact with HDFS using WinSCP or another FTP program
  • 19. File Operations • mkdir directory = Create a directory • rm file = Remove (delete) file • rm -r directory = Remove the directory and its contents • recursively • rm -f file = Force removal of file without prompting for • confirmation • rm -rf directory = Forcefully remove directory recursively • mv file1 file2 = Rename or move file1 to file2 . If file2 is an existing directory, move file1 into directory file2
  • 20. File Permissions • Page 5 of cheat sheet • Permissions • R = read • W = write • X execute • Permission Categories • U = user that owns the file • G = the users in that group • O = other not the user and current user is not in group
  • 21. File Permissions Decrypted •rw-r--rwx •User/Group/Other •User has read write •Group has read only •Other has read write execute
  • 22. Changing Permissions •We’re going to learn the easy way. •Covert symbolic to base 10 • Three categories UGO • Three positions rwx • rwx in binary = 111 (rw- = 110) • 111 in base 10 = 7 (4 + 2 + 1) (110 = 6) •rwxrwxrwx = 777 (don’t try this at home) •Chmod 777 filename
  • 23. Things We Didn’t Tackle •Finding files •Gzip (compression) •Tar (archive) •SCP (secure copy over network) •Wget (download file from web) •Sudo (act as a user) •Ssh (connect securely to another machine)