In compliance with high industry standards

Browse our Blog. You will find multiple applications, solutions, code examples. Navigate using the tag cloud or search using specific criteria

7 Raspberry Commands That Everyone Should Know

Raspberry Usage

INTRODUCTION

Raspberry Pi is a tiny, dual-display, desktop computer which can be really powerful as also robot brains, smart home hub, media center, networked AI core, factory controller and much more. 

The Raspberry PLC offers a wide range of possibilities for managing industrial environments as an open-source hardware.

Learn how to make the most of it with the most useful tools that you will find! 

RELATED LINKS

How to program Raspberry PLC

interrupt inputs with Python



Read >>

Raspberry PLC

family products



Read >>

TouchBerry Pi

family products



Read >>

How to program Raspberry PLC

interrupt inputs with Python



Read >>

Raspberry PLC

family products



Read >>

TouchBerry Pi

family products



Read >>

RASPBERRY COMMANDS

w and last

W command in Linux is used to show who is logged on and what they are doing. This command shows the information about the users currently on the machine and their processes. The header shows, in this order, the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5 and 15 minutes.


Display who is online connected to your raspberry:

w




With the last command, show last login on the system and get more information about who logged on the system to get more security

last






tree

APT keeps a list of software sources on your Pi in a file at /etc/apt/sources.list. Before installing software, you sould update your package list with apt update:

sudo apt update
sudo apt install tree -y

Type the command above to make tree available for the user and allowing the installation to occur automatically.


Tree is a tiny, cross-platform command-line program used to recursively list or display the content of a directory in a tree-like format.  Tree is a command-line tool which provides a visualisation of the structure of the current directory, and all its contents. JRemember to invoke sudo to run the tree in a directory that requires root user access permissions. Just type:

tree

to run the tree comand.




















For more information about tree command:

man tree




nmap

 The nmap command (Network Mapper) is a free and open-source tool for network discovery, available for Linux, macOS, and Windows. It is used for determining the hosts that are running and what services the hosts are running. Nmap can be a valuable diagnostic tool for network administrators.

Install it from your Raspberry PLC:

sudo apt install nmap


Now, type the following to discover which hosts are alive on your network using the -sn flag. This will just ping the hosts specified in the address range.

nmap -sn 192.168.1.0/24













pinout

The GPIO Pinout is a reference to the Raspberry Pi GPIO pins, and a guide to the Raspberry Pi's GPIO interfaces. Before we can use the pinout tool, we need to first update the package list by running the following command. Next, we can install the package that will provide us with the pinout tool.

sudo apt update
sudo apt install python3-gpiozero

With the package installed, all you need to do is run the following command to get the pinout of the Raspberry Pi you are running on.

pinout























 



Finally, what is on the calendar?

just type the commands below and discover:


  • What day is today in the calendar.

cal









  • What is on calendar :)

calendar -f /usr/share/calendar/calendar.lotr -A 365
























  • Check out for the Most Useful Raspberry Pi Commands READ >>>

 

Looking for your ideal PLC?

Take a look at this product comparison with other industrial controllers Arduino.

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC controller comparison >>

Do you want more information?

Just fill the form!

Tell me more!