7 Raspberry Pi commands you need to know

Want to learn about additional commands you probably aren’t familiar with?
Want to add functionality to your RPI with just a few keystrokes?
Stay tuned and I will show you how

Internal commands
1. How long has raspberry pi been up
a. uptime
2. What is current time
a. date
3. Commands that have been entered on cli
a. history
b. history -c (clear all commands)
4. How to shut down rapsberry pi
a. sudo shutdown -h now
b. Wait for system halted message on screen or for activity light to cease for about 3 to 5 seconds
5. Look at last boot log
a. journalctl -b
b. Start with the end of the log but with additional details
i. journalctl -xe

Add-on commands
6. Test SD card
a. sudo apt install hdparm -y
b. sudo hdparm -t /dev/mmcblk0
7. How to add screen cmd to keep things running
a. sudo apt-get install screen
i. Install screen command to allow you to detach and still be running
b. screen bash
i. Start a screen session that you can disconnect from
c. screen -r
i. Reconnect to screen when you reconnect to rpi

⏱️TIMESTAMPS⏱️
0:00 – Intro
0:45 – What we will be covering
1:20 – Uptime
2:01 – Date
2:36 – History
4:05 – Shutdown
5:26 – hdparm
6:48 – screen
7:05 – top

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

RPI 2GB
CanaKit Raspberry Pi 4 Basic Kit (2GB RAM)
https://amzn.to/3vLHqjo

CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
https://amzn.to/3eWsDMR

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RaspberryPi