Categories
IT @ Home Raspberry Pi

Raspberry Pi Basic Commands

Bellow some Basic Raspberry Pi Terminal Commands snippets.

In program for Unix-like computer operating systems sudo stands for Super User Do. Depending on the situation you may need it (due to laziness I just use it all the time).

Update your Raspberry Pi

sudo apt-get update
sudo apt-get upgrade

If you want automatic updates and upgrades.

sudo apt-get install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

If you want to know more go here https://www.elektronik-kompendium.de/sites/raspberry-pi/2002101.htm

Install / Uninstall an App

# Install an app
sudo apt install [package name]
sudo apt install hostapd

# Remove the package from use
sudo apt-get remove [package name]

# To completely remove the package from the system.
sudo apt-get purge [package name]

# To clean up the local repository
sudo apt-get clean [package name]

Modify Files as Admin

Nano is an easy to use command line text editor. It is especially helpful if you do adjustments in config files which you only can change as superuser.

sudo nano /etc/dhcpcd.conf

IP Configuration

ifconfig

If you need the IP only

hostname -I