Programming - Linux Tips & Tricks
"The Command Line is where the Magic happens"
This is a page that will be used to post short Tips & Tricks... Quick "How To" activities to build a more robust repertoire of Linux skills. So that means it's a Mish-Mash of class material for the learning about Linux and the Linux Command line.
Let's get started... Its going to be a fun, awesome ride...
- Unit: Programming - Linux
- Module: Linux - Using the command line to control the world
- This is a LEARNING : Lesson / Lab
- Last Revised: June. 7, 2021 - Authored: Dec. 28, 2020
- Original Author: Jim Burnham - TopClown@STEAMClown.org
- Content License: Distributed as Open Source. See Rights & Usage
Sid Bar for Teachers: This Unit and lessons is really about how I run Lessons & Labs in my class. Many of the lessons might be specific to my class, but you could probably adjust them for your class. I'll try to make them a neutral as I can, so they can be used in any Mathematics, Physics, Computer Science, or any other Engineering / Technology class. Let me know how I can make that better. I'll try to keep this unit current and relevant. Please let me know if any resource links are broken or not accessible. Use this email link to let me know what is broken @ TopClown@STEAMClown.org
Overview and Introduction:
Author: Jim Burnham - TopClown@STEAMClown.org. License: Distributed as Open Source.
Sponsor Shout Out
I would like to thank NVIDIA for their generous support of my classroom and curriculum development. In 1999 sparked the growth of the PC gaming market, redefined modern computer graphics, and revolutionized parallel computing. More recently, GPU deep learning ignited modern AI — the next era of computing — with the GPU acting as the brain of computers, robots, and self-driving cars that can perceive and understand the world.
If you would like to sponsor other Curriculum Development, check out my "How To Help Page" or contact TopClown@STEAMClown.org
Learning Objective:
- Basic understanding of a command / console prompt
- PC, Laptop or Other device to access the LinkedIn application
- Each lesson will have specific items needed to complete the labs and tasks
Prerequisites:
No explicit prerequisite course work or coding knowledge is required, but students are expected to have a good understanding of basic computer principles & Linux command line / console prompts.
Caution & Safety Considerations:
Primer: "Aaron, I can imagine no way in which this thing could be considered anywhere remotely close to safe. All I know is I spent six hours in there and I'm still alive... You still want to do it?"
As with any activity, please make sure you are using appropriate safety equipment. If you are coding, writing, reading, or working a lab, make sure you stand up and stretch every hour or so, Please consider any safety issues connecting to a Raspberry Pi, Arduino, computers and other electronic equipment.
Linux Tips & Tricks
Text Books, Reference, Tutorials & Other Online Resources:
This is a text book you will be using in class. Many of the lectures and Lessons will contain material from this book. You will be assigned reading and coding assignments pulled from this resource.
Designed for the new command line user, this 555-page volume covers the same material as LinuxCommand.org but in much greater detail. In addition to the basics of command line use and shell scripting, The Linux Command Line includes chapters on many common programs used on the command line, as well as more advanced topics.
Linux - Lessons, Lectures, Labs
Linux - Launching A Text Editor From The Command Line
Launching a text editor from the command line is easy. But you need to have it installed. Navigate to the directory where your file is. You can check the ownership with the command
$ ls -la
If needed, you can change the ownership of a file. Be careful when you do this. In most cases, if you use the sudo prefix command, you will be able to open a s edit files that are "root" rather than $USER. The following command will change the ownership of a file.
$ sudo chown -R $USER <path_to_file>
$ sudo chown -R $USER /var/www/html
You can use the which command to find if you have a specific editor, program or app installed.
$ which vi
$ which nano
$ which mousepad
mousepad is the default graphical text editor on the Raaspbian Linux OS build. I know I should work on my vi, vim, nano skills, but I'm lazy sometimes.
$ sudo mousepad
This opens the file in sudo mode and you should be able to write to it and save your changes.
Programming - Linux Introduction
This Lesson is coming soon - click here to be notified when it's available
Linux - <topic> - 📖 Lesson Tutorial
Linux - <topic> - 📽️ Video / 🎧 Podcast
Linux - <topic> - 📰 Slide Presentation (Coming Soon... Really, I'm working on it...)
Linux - <topic> - LAB #1 - 🛠️ LAB Activity
Linux - <topic> - LAB #2 - 🛠️ LAB Activity
Linux - <topic> - LAB #3 - 🛠️ LAB Activity
License - "Be A Hero"... Distribute Your Content As Open Source... That Is What I'm Doing...
If you do use my material, and make changes, I would appreciate getting a copy... because if you are making changes, it means that you think there is a better way to teach this… and I would really appreciate understanding that. Please send me feedback on my Questions or Feedback form. Please don’t hesitate to ask questions or comment.
You also should keep and include my STEAM Clown Logo and Copyright in any derivative works you create. I would appreciate if you would include one of these images found on my Steam Clown License page and link it to www.steamclown.org
Reference & Resources:
Teachers - Unit, Module and Lesson Plans
If you are a teacher and want to connect and teach this LinkedIn module, discuss how I teach it, give me feedback, please contact me at TopClown@STEAMClown.org
To access this Lesson Plan and the Teacher collaboration area, you will have needed to connect with me so I can Share the content with you. Please go to the Teachers & Partner Page, check out my Licensing and fill out my Collaboration and Curriculum Request Form. I'll review and then grant you access to the requested areas and lesson plans if they exist.
If you have questions or feedback on how I can make a presentation, lesson, lab better please give use my Feedback Form.