Search the Community
Showing results for tags 'tips'.
Found 1 result
So! You have received your Raspberry Pi or other Linux based computer and are now wondering what to do with itâ€¦ Well donâ€™t fret. I was thinking the same thing when I got mine. After I had visited the Raspberry Pi website and installed the Debian â€œWheezyâ€ Operating System (OS) onto my Class 10 8Gb SD card I was ready to goâ€¦ Or was I??? Being a hardened Windows user myself, I was a little daunted when faced with command lines. Here are some useful commands that have really helped me. To Update your Debian â€œWheezyâ€ or other Linux OS softwareâ€¦ sudo apt-get update sudo apt-get upgrade Start the graphical Interface (Linux version of Windows)â€¦ startx Find the IP (internet protocol) address of your Piâ€¦ Next to the wlan0 entry you will see inet addr. This is the IP address of your Piâ€¦ sudo ifconfig Make a file executable (means you can run it in a terminal window)â€¦ sudo chmod 755 /home/pi/path_to_file/file.sh Change the current directoryâ€¦ cd /home/pi/name_of_directory/ Open a file in a text editorâ€¦ nano /name_of_folder/name_of_file.txt Check how much free space you haveâ€¦ Check how much free space you haveâ€¦ List directories & files recursively to a .txt fileâ€¦ ls -1tr -l -R --group-directories-first | grep -v files > filedate.txt See how long your Pi has been on forâ€¦ uptime Search for text in files (recursively)â€¦ grep -ril "TEXT TO FIND" /path/to/search List all installed programs to a text fileâ€¦ dpkg --get-selections > installed_progs_04-05-2013.txt List all directories recursively to a fileâ€¦ ls -l -R | grep ^d > filedate.txt ï»¿