Wednesday, January 27, 2016

Pi setup and basic commands

As soon as you connect your HDMI to the TV/monitor and insert your os installed MicroSD card into your pi you should see the following screen on your TV/monitor:

You can select the os of your choice and click on install. It takes few minutes to install and then the following screen appears:


The above screen is the graphic user interface, The default login for Raspbian is username pi with the password raspberry.
After logging in the following desktop screen appears:

You can click on the LXTerminal and type the following commands in console:
sudo apt-get install rpi-update
sudo rpi-update
sudo reboot


After rebooting, type the following commands in console:
apt-get update
apt-get upgrade

The following are some of the basic commands:
list files in current directory:                                                ls
list files (including hidden files) in current directory:           ls -a
change directory:                                                                cd
change to home directory:                                                  cd ~
change to root directory:                                                     cd /
change to different directory:                                              cd music
print working directory:                                                       pwd 
make directory:                                                                   mkdir
copy files:                                                                            cp 
move files:                                                                           mv 
remove files:                                                                        rm 
remove directory:                                                                 rmdir 
clear screen:                                                                        clear 
display a file:                                                                        cat 

No comments:

Post a Comment