ArticlesRaspberry Pi Projects

75+ Most Useful Raspberry Pi Commands


For Beginners If you’re just getting started with your Raspberry Pi, you might be wondering what all the terminal commands are about. Here’s a beginner’s guide to some of the most common commands.

you have a Raspberry Pi, you can use it to control various devices or perform various tasks. In order to do so, you will need to know some basic commands. This guide will teach you some of the most basic Raspberry Pi commands.

Raspberry Pi is a credit card-sized computer that can be used for various purposes. It is a versatile device that can be used for both home and industrial applications. Raspberry Pi has many capabilities and can be used as a regular computer for browsing the Internet, playing media, and even gaming. It can also be used for more advanced applications such as monitoring environmental data or controlling robots. the Raspberry Pi can do it all. What is Raspberry Pi? A Basic Overview & Introduction

This reader overviews some of the most commonly used Raspberry Pi commands for beginners. These commands can be used to perform various tasks on the device, including opening and closing programs, viewing files, and changing settings. With a little practice, anyone can become proficient in using these commands to get the most out of their Raspberry Pi

Enhancing Your Command-Line Talent

For those who are new to Raspberry Pi and Linux. This first post will cover the main pages and keyboard shortcuts. In the following post, I will Raspberry Pi commands and their functions.

Keyboard Shortcuts

Keyboard shortcuts are everywhere in Linux. Below are a few I discover especially useful:

  • Ctrl-A goes to the beginning of the line.
  • Ctrl-E goes to the end of the line.
  • Ctrl-r reverse search your history for a command.
  • cd move to your home directory.
  • cd – go to the last directory (especially useful when jumping back and forth between a pair of directories.
  • Ctrl-l clears the screen (the same as clear).
  • sudo !! run the last command with sudo.
  • Tab auto-complete command, file and folder names
  • Up arrow previous command (walk back through the command history).
  • Down arrow walk forward via the command history.

Best Raspberry Pi Commands

Most Useful Raspberry Pi Commands

Here, we have had both basic and advanced commands for Raspberry Pi. Based on your expertise rank, go via the list and put these commands to the right use.

A Quick Reference Guide In this guide, we’ll show you a quick reference of useful Raspberry Pi commands. The Raspberry Pi is a great little device with a wide range of uses. From a basic computer to a gaming console, the Raspberry Pi can do it all. And with the right commands, you can get the most out of your Raspberry Pi.

Looking at the terminal we observe the following information that we explain below:

  • pi: indicates the user connected to the terminal
  • @: means “in”
  • raspberry pi: indicates the name of the machine to which we are connected
  • ~: indicates the path in which we are, in this case, the default home path
  • $: indicator to start typing new orders or commands

As an example, we could say that we are connected to the raspberry pi device with the raushan user, who is inside the /Zeba/www folder and is executing the command to list all the files showing all their properties:

Basic Raspberry Pi Commands

Raspberry Pi Commands 2 e1666336875302

1. Raspberry Pi Configuration Command

2. Update Raspberry Pi Command

sudo apt get update

3. Command used to install and update packages

apt get 2

4. List Files and Directories

ls 1 e1666762754350

5. Show files in sub-directories as well

ls R

6. Show hidden files as well

7. Show files and directories with detailed information like permissions, size etc.

ls al

8. Navigate to the HOME directory

9. Move one level up

10. Move to the root directory

11. Creates a new file

12. Displays the file content

13. Deletes a directory

Raspberry Pi File Permission commands

  1. To show file type and access permission

2. Read the permission

3. write permission

4. execute permission

5. No permission

Raspberry Pi Networking command

  1. Network Configuration Details


2. Login into a remote Pi machine using SSH


3. Show files in the current directory of a remote computer

4. change the directory to “dirname” on a remote computer

5. upload ‘file’ from a local to a remote computer

6. Download ‘file’ from the remote to the local computer

7. Logout

Raspberry Pi Process command

  1. Change the Password of the Raspberry Pi

2. Upgrade Raspberry Pi OS Distribution

3. Remove a Package

4. Now Shutdown the machine

5. Schedule a machine shutdown

6. Cancel a scheduled shutdown

7. Restart Your Raspberry Pi

8. Reboot the machine

9. Log out user

10. Close the terminal

11. Details on all Active Processes

12. To send a process to the background

13. To run a stopped process in the foreground

14. Give the status of processes running for a user

15. Shows free RAM on your system.

16. Show free hard disk space on your system

17. Kills a process

Raspberry Pi System information commands

  1. Displays The Cpu Temperature

2. Details on all Active Processes

3. Shows The Architecture Of The Machine Command

4. Shows The Name Of The Operating System Command

5. Show Active Processes

6. View Connected USB Devices

7. Shows The History Of Entered Commands

8. Displays The System Date

9. Shows Current Directory

10. Open the File and Edit a Text File


11. Find a File

12. Run a Script

13. View Background Tasks

14. Install a Program

15. Find the IP Address of the Raspberry Pi

16. Download a File

17. Check the Raspberry OS Version

18. Check Hardware Information

19. Create a Directory

20. Delete Files or Folder

21. Extract Files

22. Extract TAR Files

23. Access the directory that follows

24. Opens the GUI (Graphical User Interface).

25. Show the contents of the file example.txt

26. Deletes the file example.txt.

27. Take an image with a camera

28. Set image width

29. Set image height

30. Take a Video with a camera

How to install a Program

Type the following command in the terminal to install the program.

  1. Install a Program

2. How to Install Python 3 on Raspberry Pi

3. How to install Python IDLE 3 on Raspberry Pi

4. Shows the version of Python you currently have installed


Cheat Sheet The Raspberry Pi commands cheat sheet covers the most important and basic commands used to operate a Raspberry Pi. These include basic Linux commands, file management, and some hardware-specific commands. This cheat sheet will help you get started with the Raspberry Pi and make the most of its capabilities.

I hope you like this guide. Share it with a friend that will find it useful!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker