element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 4443 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 8 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 8 years ago in reply to phoenixcomm +2
    Would that make android a grandchild of UNIX?
  • jomoenginer
    jomoenginer over 8 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…
  • shabaz
    shabaz over 7 years ago in reply to jomoenginer

    I loved Solaris. It was awesome for developers, and I'd got used to it initially at uni, and then afterwards my first C++ job was to create an application that ran on Solaris (on UltraSPARC and then eventually x86), and the application and the Sun server were sold together (or the customer could purchase the software separately, provided they ran it on the specified hardware). It had its own configuration/installer, so the customers didn't need to be scared that it was an OS they may not have used before. It was a perfect combination of excellent OS, and awesome hardware where we could throw as much RAM as desired at the problem, there seemed to be 1-4RU Sun boxes that scaled to support vast amounts of memory. I used Sun desktop machines too, since Solaris was so cool. Work supplied a huge 4k-res Sun monitor that too was ahead of its time..

    Sun's own compiler was not bad (eventually we moved to the free GCC). Also Solaris felt so ahead of other OS's, with fancy stuff like DTrace. Also it was fun deciphering core-dumps with a processor that had register windows : ) Eventually we ported the code to Linux (Red Hat). And it was a sad day when Oracle acquired Sun : (

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

    I had to go to a Cisco facility in the Bay Area for HP in mid 2000 due to an issue they were having with the HP Storage Array and the entire Cisco site was all Sun Solaris (both Sparc and x86). Since the HP Storage box had a Windows based Laptop for the config platform, it was not allowed on the Cisco network.  The field person had to run a cable from a cube outside of the Lab through the ceiling tiles to the Lab for a private network to the HP Storage Array.  That was interesting.

     

    I've had to test with x86 Solaris 10 with VMWare for a bit and it seemed fine; it just did not have the full app support that Sparc had.  I even had a Solaris x86 VM running at home through VMWare ESXi but lost interest after a bit especially once I was out of HP.  I ended up working with Solaris again but its more moving environments over to Red Hat.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 7 years ago in reply to jomoenginer

    Sun purchased source code licenses from both AT&T & Berkey Systems very early on.on  I believe prior to OS4. The original Sunboxs 1 and 2  used a 68000 on an Intel Multibus chassis. Solaris and SunOS are to very different products, they both had X on them. I still to this day prefer OpenLook Desktop. Solaris 1 i have no idea which OS it was cloned from was, in fact, a BUST!  Solaris 2 was the first good release, followed by 2.2, 4, 7, 8 (here is where you started to have to PAY for security patches!), 9(bust), and 10. The evil empire released 11 (buggy). Then there was Solaris x, x86 (what a nightmare), The last OS I installed was 8.x on two UltraSparc 2 boxes. I have also used OpenSolaris but found it to be a bit much. when on the first attempt, I could not get the damn ethernet ports up. (a stupid trick from Linux, it wants to see the port with a cable in it. DUH)

     

    Its really funny  Sun was Sparc and when away! Now everybody loves ARM very similar. go figure. And the world spins. Now the evil empire is Oracle before it was Microsoft!  BTW M$ couldn't get their browsers to ever work so now they heisted Chromium and rebranded it. 

     

    In away, you are right about my old ISP in Dallas. We were almost 100% Sun & Cisco,  with PC's on the desks that were NFS, to the servers. I think the only PC on the backend was my Document Server which was a PC connected to a tower of CDs. Before the Ultra 2's I had the big VME boxes. The last config was

    1. Ultra Sparc 2 -- Web Server, & MySQL Server
    2. Ultra Sparc 2 -- Sendmail: Grone
    3. Sparc Lunchbox - Network Time -TICK
    4. " TOCK
    5. " Box: for remote permissions for dial-in clients. (can't remember the name for  the protocol)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 7 years ago in reply to phoenixcomm

    Android is based on a Linux kernel and not Unix but Google did make some changes to it so it is not like other Linux derivatives.  It is considered a Linux distro by the Linux Foundation.

     

    Solaris (or SunOS 5) is a product of a collaboration between AT&T and Sun where they merged BSD, (which SunOS 4 and it's predecessors are based on), UNIX System V and Xenix to form System V Release 4 (SRVR4).  The Solaris releases then became Solaris 2.x (such as Solaris 2.6 incorporates SunOS 5.6 and so on) until Solaris 7 when the 2.x was dropped and it became Solaris 7 and now Oracle Solaris after Oracle bought Sun. Solaris 11 is a much different beast causing many folks to move over to a Linux distro such as Red Hat. I'm still surprised with the number of Solaris installs I still see, but these are mainly being replaced by Linux now.

     

    My first job at HP was Back-line HP-UX support for HP's High End customers and kernel debug.  I then later moved to the HP Storage Org where I was responsible for the support and certification of HP-UX and then Solaris with HP Storage and Servers (Solaris x86 on HP Servers).  When Compaq bought HP with HP's money and the powers that be attempted to merge Compaq not so True64 with HP-UX, that was pretty much the beginning of the end of HP-UX; that and that Carly did not understand Unix and tried to kill off HP-UX.

    HP-UX was initially based on UNIX System V and with version 10 moved to System V Release 4 which was fun to see. I'm not sure where HP-UX stands now as it has seemed to have died on the vine. What HPE will do with Cray Super Computers is going to be interesting though.

     

    HP-UX and Solaris each have their own quirks as well as issues, but Solaris did have better support for Oracle databases.   Solaris folks were like Mac users, in that they only used Solaris and did not want to see anything else touch their environments.

     

    I think AIX is really the only major player in the UNIX space these days; maybe some left over Oracle Solaris users exist though.  But with IBM's purchase of Red Hat, I suspect much of the AIX installs will eventually move to Red Hat.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 7 years ago

    I always thought it was fascinating that these two people also invented C in order to help them write Unix. I still find that difficult to comprehend.

     

    Dubbie

     

    PS I still remember punch cards. I was sad when my University took me from punch card to online terminals without going to paper tape as I had been looking forward to using paper tape for three years.

    • Cancel
    • Vote Up +1 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube