SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 

Was ist angesagt? (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
 

Ähnlich wie Hands On: Linux survival skills

Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
Chander Pandey
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra Solutions
QUONTRASOLUTIONS
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
Priyadarshini648418
 
001 linux revision
001 linux revision001 linux revision
001 linux revision
Sherif Mousa
 
Hpux graduate enginnering trainning
Hpux graduate enginnering trainningHpux graduate enginnering trainning
Hpux graduate enginnering trainning
Radhe Garg
 

Ähnlich wie 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
 

Mehr von Adaryl "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 Spark
Adaryl "Bob" Wakefield, MBA
 

Mehr von 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
 

Kürzlich hochgeladen

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Kürzlich hochgeladen (20)

HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 

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)