Zyngalu: MXLinux | Terminal | Bash | Commands
Home | MXLinux | Raspberry Pi | Feed Back | Forums
Install Server
Terminal

Bash
Commands

Bash Commands

Here is a list of Commands I that I used in this project.

pwd
Print Working Directroy: Tells you where you are in the directory structure. Right now we are in the home Directory

pwd
/home/matthew

cd
Change Directory: Allows you to chance to another directory. Lets go to the top Directory

cd /
/

Now lets go back to the home Directroy.

cd ~
/home/matthew

We are back in the Home Directory.
pwd
/home/matthew

Now lets go find the directory where the files that make this site are kept. Normally when you install Apache your files are in the /var/www/html directory. But I'm a little different. I want to store my files on old USB drives. Secretly I want to see if I can actually burn one of these things out.

The first thing I need to do is ssh over to my Raspberry PI.

ssh pi@192.168.0.182
pi@192.168.0.182's password:

So where are we?

pwd
/home/pi

Now go to the files that make this site.

cd /mnt/usb/
/mnt/usb $

To see all these files type ls. You will see 3 roles.

ls
feedback.php
linux_terminal_bash_commands.php
point_usb_to_apache.txt
feedback_return.php

To see greater files details type ls -l. You will see only one role.

ls -l
-rwxrwxrwx 1 pi pi 2091 Aug 4 00:14 feedback.php
-rwxrwxrwx 1 pi pi 1103 Aug 4 04:25 feedback_return.php
-rwxrwx--x 1 pi pi 728 Mar 4 06:53 format_usb_drive.txt
drwxr-xr-x 18 pi pi 4096 Aug 2 20:24 forums

...