element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog A Dummies Guide to Linux on a Raspberry Pi. - 1.0
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 29 Jul 2015 6:42 PM Date Created
  • Views 3631 views
  • Likes 17 likes
  • Comments 32 comments
Related
Recommended
  • raspberry-pi
  • computing_history
  • unix
  • sudo_open
  • operating_systems
  • introduction
  • linux
  • raspberry_pi_getting_started

A Dummies Guide to Linux on a Raspberry Pi. - 1.0

phoenixcomm
phoenixcomm
29 Jul 2015
You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Introduction:

    Linux you say what is Linux? Alright, I know how I will begin. A long time ago in the mid 70's at Bell Laboratories, Murry Hill, New Jersey, a two guys came up with Unix. They were: Denis Ritchie and Ken Thompson. Here is a little film which explains it.

 

This was the eureka moment for computing. At that time the world changed. You see everything up to then was done in what is known a fixed length records. You sat and punched you cards and then took them to the "Computer Room" and gave them your cards. Hopefully you did not have any errors, or you had to fix the problem, and then go back to the "Computer Room".  Unix is device independent. You know in Dos/Windows (1983/5) you used to have to install your printer through your program? And then to print your document you first have to open the program to get to the printer. Well, that's gone!So to print a document/file pick it up and drag it to your local printer icon (should be on your desktop), and it asks how many copies and which printer to print it on. This printer could be in your office out in the hall, or on the other side of the world. The reason is  Unix, programs write, read to Standard I/O. And all files are just that files there are no special files like the directories. There just normal files.

 

image

 

 

    Now you may be asking; what does Unix have to do with Linux? Well, Unix came first. If you wanted it you had to go to Bell Labs and get a license sometimes in source and build it yourself.  Unix was mostly in colleges and university's. Some folks like Sun Microsystems bought the source license and built SunOS (1981)  and then Solaris (1993). Richard Stallman (1981-85) Created GNU.  Berkley University came out with BSD. And a guy named Andrew S. Tanenbaum created MINIX at Vrije Universiteit in Amsterdam to exemplify the principles conveyed in his textbook, Operating Systems: Design and Implementation (1987). This book also contained abut 12k lines of source.

image

Now comes another guy (1991) a Finnish student Linus Torvalds created a new kernel and called it Linux. So in a way you could call Linux, a child and Unix the parent. This makes my head hurt, I'll let you strain you eyes and you head.

In the video, they said two things; small programs (utilities),  do the work and make life easier. Since they read and write to standard input and output. This means that one program's output to another program's input, you can chain as many programs as you like to get the job done. This is called a pipe ( | [symbol]). Unix and Linux are multi-treaded out of the box, the other feature is redirection in windows you might have used dir > filename, but in Unix/Linux we have standard I/O so you could do this: filename > program > filename.

In Windows you have shortcuts..  we have something much better, we have link & ulink lets say I use a directory that is not in my home directory what you can make a "Symbolic Link": ln -s target directory  local-name.  So link is ln and ulink is the unlink command.

One more thing Unix/Link we think of our hard drives (/dev/sda) separately from the data. If you had a second hard drive (/dev/sdb). One more thing a hard drive has partitions they are numbered 1, 2, 3 etc. So your drive would be  defined has /dev/sdb4 (second drive, fourth partition. 

Now to volumes, a volume is just a logical group of files, this can be more than one partition and multiple drives. Food For Thought:

 

(long version with both -al options)
harrison@Whirlwind
~ $ ls -al /mnt/MyData/user/harrison > /home/harrison/mnt_directory.txt
total 48
drwx------9harrisonharrison4096Jul 25 21:26.
drwxr-xr-x5rootroot4096Jul 25 20:58..
drwx------3harrisonharrison4096Apr  5 16:23export
drwxr-xr-x4harrisonharrison4096Jul 26 11:52home
drwx------2harrisonharrison4096Jul 28 14:12ISO
drwx------2rootroot16384Mar 14 10:00Lost+found
drwx------30harrisonharrison4096Jul 29 08:20public
drwx------4harrisonharrison4096Feb 13  2015SOFTWARE
drwx------7harrisonharrison4096Jun 28  2014Zotero_Data

 

(short version without arguments)
harrison@Whirlwind
~ $ ls

export  home  ISO  lost+found  public  SOFTWARE  Zotero_Data

Now after the first command was issued and you did a ls  here is what you will have:
harrison@Whirlwind
~ $ ls

export  home  ISO  lost+found  public  SOFTWARE  Zotero_Data mnt_directory.txt

The alphabet soup in front of the files are as follows:

  • d is directory if blank or - means it just a file
  • Then in groups of three of three: r  read, w write, execute.
  • The three groups are OWNER, GROUP, WORLD
  • There is one more it's not shown t or sticky bit (if you need it please look it up yourself)
  • number of links
  • OWNER
  • GROUP
  • File Size
  • Time/Date file was last modified.
  • File name or Directory name

 

 

 

 

 

 

Now I will take apart the long command piece by piece.

  1. Green  you have the username@machine_name.
  2. Blue you have the user prompt.
  3. The ls command with options (-al) a is all files, and l is long
  4. The commands target /mnt/MyData/user/harrison
  5. Redirect the output and create a new file.

 

OK, just one more thing while we are talking about the ls command. Unix/Linux always knows where the current directory is, so if you issue a ls without any options or target. It would list the current directory. So guess what when you get confused you can alway ask for it. This command is pwd or print working directory.

 

Stay Tuned More To Come

~~Cris H. image

 

  1. A Dummies Guide to Linux on a Raspberry Pi.
  2. A Dummies Guide to Linux on a Raspberry Pi. - 2.0 Distros
  3. TBA the reviews...
  • Sign in to reply

Top Comments

  • chris_b
    chris_b over 7 years ago +3
    Wow! This Chart wakes little nostalgic feelings in me. I touched, more or less every derivative on this Chart since 1988. Started my career with Sinix on MX500 Systems from Siemens, followed by Reliant…
  • dougw
    dougw over 7 years ago in reply to phoenixcomm +2
    Would that make android a grandchild of UNIX?
  • jomoenginer
    jomoenginer over 7 years ago +2
    Linus did not initially create the Linux kernel, he created a program using MINUX ( A Unix-like OS but not derived from Unix) and GNU C compiler to control hardware on his x386. He initially wanted to…
  • phoenixcomm
    phoenixcomm over 6 years ago in reply to phoenixcomm

    BTW it was published in 86 https://catalog.loc.gov/vwebv/holdingsInfo?searchId=22653&recCount=25&recPointer=1&bibId=2859937

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 6 years ago in reply to jomoenginer

    YES!! Great Book

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 6 years ago in reply to phoenixcomm

    Is this the Dragon book you were referring to?  This one is circa 1988.

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 6 years ago in reply to dubbie

    Paper Tape SUCKS! it rips! Punch Cards are cool its 80 columns right some of it is reserved to serial numbers. And we had a punch so you numbered your cards by tens, ie. 10, 20, 30. So If you need to add code between your cards you always have room.  And g-d help you if you dropped your stack. LOL, me I just ran the cards through the sorter. Fins.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 6 years ago in reply to dubbie

    Dubbi you got is sort of right and wrong. Denis Ritchie basically wrote C to overcome problems with B and BCPL. In 1969, Ken Thompson, Dennis Ritchie and others started work on what was to become UNIX on a "little-used PDP-7". This effort took almost 10 years. I believe the PDP-7 was ported to a VAX. It was then ported to an Interdata 8/32 Number 1, I helped with the assembly and delivery (1977,78) of this machine to Bell Labs in Murry Hill, NJ. This machine became the First Non-DEC Port of UNIX written mostly in C. Nuber 2 went to Gruman Aircraft where I later met Paul Zilber, one of my mentors, and a long friend. I wrote my first interpreter around 1985 called Pasplus, I still have it here somewhere if you wish to see it I will post it,  at Trenton State College, Dr. Charles Goldberg or "Charlie" was one of my other mentors,  who taught "Compiler Writing" with the Dragon Book in Pascal. I convinced him to write it in C and to be more C like (function calls and returns). I used a DeSmet C compiler, which had a bug in it which Paul and myself fixed after 3 days of grief.  And BTW you could not use YACC or LEX. Charlie's life was cut short by a car accident.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube