Fri Jun 1 09:49:25 BST 2012
If you wish to change the date/time to June 21 13:45, you could use any of the following
commands (whichever is more suitable for you)
pi@raspberrypi:~$ sudo date 06211345
pi@raspberrypi:~$ sudo date –s “June 21 13:45”
pi@raspberrypi:~$ sudo date –s “21 June 13:45 2012”
pi@raspberrypi:~$ sudo date –s “13:45 June 21”
pi@raspberrypi:~$ sudo date –s “Jun 21 1:45pm”
pi@raspberrypi:~$ sudo date –s “Next Thursday 13:45”
Setub Time zone
sudo dpkg-reconfigure tzdata
startx ————————- If you are a bit nervous about the command line, this might be
your favourite. It gets you escape to a nice graphical interface.
free ————————— Show how much memory is available.
df / —————————- Show how much disk space is used.
hostname -I ——————Show your IP address. Try this command with your network cable
lsusb ————————— connected and disconnected to see the difference.
Show what is plugged into the USB port. Try this command with
your mouse connected and disconnected to see the difference.
(echo “Here is a list of your C
programs” ; sudo find / -name *.c ;
echo “End of list, have a nice day”) >
echo “There are ‘ls | wc -l’ files in
grep -l “buffer” ‘sudo find / -name *.c’ —- To show the usefulness of this method, here is a
command to search for any C program which contains the word “buffer”. This can be very useful if you want to find which file uses a particular variable or function.