In unix filesystems, there are no C: D: drives at the root of the file paths. Instead, the filesystem just starts with a /
To list the contents of the root directory, type ls -al /
Each file or directory is listed with
ACCESS_RIGHTS X OWNER GROUP SIZE LAST_MODIFIED FILENAME
I'm not really sure what the number X is. I'm on linux now, so there may be some differences. The /users directory contains a directory for all users on the computer. To go here, type cd /users
List the contens of the current directory by ls -al
Another thing worth mentioning about the unix-like filesystems is that the physical drives and stations can be mounted virtually anywhere in this filesystem.
Some more handy commands:
ssh <host> (to log in on a remote host (running linux or unix/macosx))
ssh <user@host> (using a different username)
scp <file-path> <host:file-path> (to copy a file to a remote host)
scp <host:file-path> <file-path> (to copy a file from a remote host)
find <directory-path> (essentially lists all files in the directory recursively)
It can be very useful to use the output from one command as the input to another command. This is done with the | pipe sign.
find <dir> | grep <pattern> (will print out all lines from the find command that matches the given pattern)
cat <file> (will just dump the contents of a file)
cat <file> | grep <pattern> (will therefore print all lines from the cat command that matches)
cat <file> | less (dumps the contents of a file into the program 'less' which let's you scroll up and down in whatever it is displaying with arrow keys and page up/down. Type 'q' to quit 'less')
man <command-name> (gives a (somewhat cryptic) explanation of what a command does and which options it can take)
To redirect the output from a command to a file, use >
ls /users > myfile (puts the listing of files in the /users directory in a file name myfile)
cat myfile (shows the contents of the file you just created)