<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tryder</id>
	<title>ITCwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tryder"/>
	<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/w/Special:Contributions/Tryder"/>
	<updated>2026-04-30T16:37:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5143</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5143"/>
		<updated>2012-02-02T19:16:14Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Search files for regular expressions using grep   (Global Regular Expressions) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
&lt;br /&gt;
==Comparison of Windows v. Linux filesystems==&lt;br /&gt;
====Windows File System Attributes====&lt;br /&gt;
*Directory structure - volume  based, drive letters assigned at boot&lt;br /&gt;
*Can not natievly read linux file system&lt;br /&gt;
*c:\ is root directory&lt;br /&gt;
*&amp;quot;\&amp;quot; is the file seperator = c:\logman.exe&lt;br /&gt;
*file names are not case sensitive&lt;br /&gt;
* have hidden files&lt;br /&gt;
====Linux File System Attributes====&lt;br /&gt;
*unified directory structure - single rood directory&lt;br /&gt;
*every directory is a sub-directory of /&lt;br /&gt;
*Drives and directories must be mounted to be seen&lt;br /&gt;
*Can read FAT, NTFS, EXT2,3,4 SQUASHFS, lsofs, sysfs, procfs file systems&lt;br /&gt;
*&amp;quot;/&amp;quot; is the file separator = /home/randy/documents/test.txt&lt;br /&gt;
*file names are case sensitive&lt;br /&gt;
*hidden files start with &amp;quot;.&amp;quot;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
====Supported File Systems====&lt;br /&gt;
 Linux supports numerous file system types&lt;br /&gt;
Ext2: This is like UNIX file system. It has the concepts of blocks, inodes and directories.&lt;br /&gt;
Ext3: It is ext2 filesystem enhanced with journaling capabilities. Journaling allows fast file system recovery. Supports POSIX ACL (Access Control Lists).&lt;br /&gt;
Isofs (iso9660): Used by CDROM file system.&lt;br /&gt;
Sysfs: It is a ram-based filesystem initially based on ramfs. It is use to exporting kernel objects so that end user can use it easily.&lt;br /&gt;
Procfs: The proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime using sysctl command. For example you can find out cpuinfo with following command:&lt;br /&gt;
=== Hierarchical File system===&lt;br /&gt;
Often referred to as the &amp;quot;FHS&amp;quot;&lt;br /&gt;
At the very top or the beginning is your / (forward slash) which represents your root directory.&lt;br /&gt;
1. / – Root&lt;br /&gt;
Every single file and directory starts from the root directory.&lt;br /&gt;
Only root user has write privilege under this directory.&lt;br /&gt;
Please note that /root is root user’s home directory, which is not same as /.&lt;br /&gt;
&lt;br /&gt;
2. /bin – User Binaries&lt;br /&gt;
Contains binary executables.&lt;br /&gt;
Common linux commands you need to use in single-user modes are located under this directory.&lt;br /&gt;
Commands used by all the users of the system are located here.&lt;br /&gt;
For example: ps, ls, ping, grep, cp.&lt;br /&gt;
&lt;br /&gt;
3. /sbin – System Binaries&lt;br /&gt;
Just like /bin, /sbin also contains binary executables.&lt;br /&gt;
But, the linux commands located under this directory are used typically by system aministrator, for system maintenance purpose.&lt;br /&gt;
For example: iptables, reboot, fdisk, ifconfig, swapon&lt;br /&gt;
&lt;br /&gt;
4. /etc – Configuration Files&lt;br /&gt;
Contains configuration files required by all programs.&lt;br /&gt;
This also contains startup and shutdown shell scripts used to start/stop individual programs.&lt;br /&gt;
For example: /etc/resolv.conf, /etc/logrotate.conf&lt;br /&gt;
&lt;br /&gt;
5. /dev – Device Files&lt;br /&gt;
Contains device files.&lt;br /&gt;
These include terminal devices, usb, or any device attached to the system.&lt;br /&gt;
For example: /dev/tty1, /dev/usbmon0&lt;br /&gt;
&lt;br /&gt;
6. /proc – Process Information&lt;br /&gt;
Contains information about system process.&lt;br /&gt;
This is a pseudo filesystem contains information about running process. For example: /proc/{pid} directory contains information about the process with that particular pid.&lt;br /&gt;
This is a virtual filesystem with text information about system resources. For example: /proc/uptime&lt;br /&gt;
&lt;br /&gt;
7. /var – Variable Files&lt;br /&gt;
var stands for variable files.&lt;br /&gt;
Content of the files that are expected to grow can be found under this directory.&lt;br /&gt;
This includes — system log files (/var/log); packages and database files (/var/lib); emails (/var/mail); print queues (/var/spool); lock files (/var/lock); temp files needed across reboots (/var/tmp);&lt;br /&gt;
&lt;br /&gt;
8. /tmp – Temporary Files&lt;br /&gt;
Directory that contains temporary files created by system and users.&lt;br /&gt;
Files under this directory are deleted when system is rebooted.&lt;br /&gt;
&lt;br /&gt;
9. /usr – User Programs&lt;br /&gt;
Contains binaries, libraries, documentation, and source-code for second level programs.&lt;br /&gt;
/usr/bin contains binary files for user programs. If you can’t find a user binary under /bin, look under /usr/bin. For example: at, awk, cc, less, scp&lt;br /&gt;
/usr/sbin contains binary files for system administrators. If you can’t find a system binary under /sbin, look under /usr/sbin. For example: atd, cron, sshd, useradd, userdel&lt;br /&gt;
/usr/lib contains libraries for /usr/bin and /usr/sbin&lt;br /&gt;
/usr/local contains users programs that you install from source. For example, when you install apache from source, it goes under /usr/local/apache2&lt;br /&gt;
10. /home – Home Directories&lt;br /&gt;
&lt;br /&gt;
Home directories for all users to store their personal files.&lt;br /&gt;
For example: /home/john, /home/nikita&lt;br /&gt;
&lt;br /&gt;
11. /boot – Boot Loader Files&lt;br /&gt;
Contains boot loader related files.&lt;br /&gt;
Kernel initrd, vmlinux, grub files are located under /boot&lt;br /&gt;
For example: initrd.img-2.6.32-24-generic, vmlinuz-2.6.32-24-generic&lt;br /&gt;
&lt;br /&gt;
12. /lib – System Libraries&lt;br /&gt;
Contains library files that supports the binaries located under /bin and /sbin&lt;br /&gt;
Library filenames are either ld* or lib*.so.*&lt;br /&gt;
For example: ld-2.11.1.so, libncurses.so.5.7&lt;br /&gt;
&lt;br /&gt;
13. /opt – Optional add-on Applications&lt;br /&gt;
opt stands for optional.&lt;br /&gt;
Contains add-on applications from individual vendors.&lt;br /&gt;
add-on applications should be installed under either /opt/ or /opt/ sub-directory.&lt;br /&gt;
&lt;br /&gt;
14. /mnt – Mount Directory&lt;br /&gt;
Temporary mount directory where sysadmins can mount filesystems.&lt;br /&gt;
&lt;br /&gt;
15. /media – Removable Media Devices&lt;br /&gt;
&lt;br /&gt;
Temporary mount directory for removable devices.&lt;br /&gt;
For examples, /media/cdrom for CD-ROM; /media/floppy for floppy drives; /media/cdrecorder for CD writer&lt;br /&gt;
&lt;br /&gt;
16. /srv – Service Data&lt;br /&gt;
srv stands for service.&lt;br /&gt;
Contains server specific services related data.&lt;br /&gt;
===Types of files used by Linux===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
&lt;br /&gt;
===Links for Additional Info on File Extension===&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
p*wd - Show current directory&lt;br /&gt;
&lt;br /&gt;
*pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
*ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
====listing including file permissions, ownership and date/time stamp.====&lt;br /&gt;
&lt;br /&gt;
*Executable files: Green&lt;br /&gt;
&lt;br /&gt;
*Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
*Directory: Blue&lt;br /&gt;
&lt;br /&gt;
*Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
*Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
*Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
*Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
*Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
*Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
*Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
*Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
*Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
* use ls to list file and directories&lt;br /&gt;
		*  ls /etc/bob = command argument&lt;br /&gt;
			* Different file types are color coded&lt;br /&gt;
			*  ls = pwd &lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
===== All ls Options=====&lt;br /&gt;
&lt;br /&gt;
 * -a =Lists all filenames&lt;br /&gt;
 * -A = Lists most filenames - excludes hidden and special files&lt;br /&gt;
 * -C = Lists filenames in column format&lt;br /&gt;
 * --color=n =Lists filenames without color&lt;br /&gt;
 * -d =Lists directory names instead of their contents&lt;br /&gt;
 * -f = Lists all filenames without sorting&lt;br /&gt;
 * -F = Lists filenames classified by file type&lt;br /&gt;
 * --full-time = Lists filenames in long format and displays the full modification time&lt;br /&gt;
 * -l = Lists filenames in long format&lt;br /&gt;
 * -lh = Lists filenames in long format in easy-to-read file sizes&lt;br /&gt;
 * -lG, -l, -o  = Lists filenames in long format but omits group info&lt;br /&gt;
 * -r = Lists filenames in reverse sorted order&lt;br /&gt;
 * -R = Lists filenames in the specified directory and all subdirectories&lt;br /&gt;
 * -s = Lists filenames with file sizes in KB&lt;br /&gt;
 * -S = Lists filenames by size&lt;br /&gt;
 * -t = Lists filenames sorted by modification time&lt;br /&gt;
 * -U = Lists filenames without sorting&lt;br /&gt;
 * -x = Lists filenames in rows &lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
*file command = Gives file analysis info, type&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Other Attributes listing Options====&lt;br /&gt;
&lt;br /&gt;
* Perms&lt;br /&gt;
* Hard link count&lt;br /&gt;
* Owner, group, &lt;br /&gt;
* Size&lt;br /&gt;
* Mod. Time&lt;br /&gt;
&lt;br /&gt;
===Wildcard Metacharacters===&lt;br /&gt;
&lt;br /&gt;
==Display contents of files==&lt;br /&gt;
*vi - editing a file&lt;br /&gt;
*emas - alternative to vi &lt;br /&gt;
*cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
*tac - reverse concatenation - types file in reverse&lt;br /&gt;
*head - displays the top ten lines of a file&lt;br /&gt;
*tail - displays the bottom ten lines of a file&lt;br /&gt;
*more - displays file page by page&lt;br /&gt;
*less - similar to more but allow line by line manipulation&lt;br /&gt;
&lt;br /&gt;
==Display contents of Binary files==&lt;br /&gt;
* strings = searches binary file for text&lt;br /&gt;
* od = displays file in octal format&lt;br /&gt;
* od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
==Key Terms== &lt;br /&gt;
 &lt;br /&gt;
The tab completion feature is something your really going to like, it makes life much easier for you, rather than typing every single command you type the first character or two and hit the tab key and it finishes it for you.&lt;br /&gt;
*~ metacharacter = represent user&#039;s home dir&lt;br /&gt;
*Absolute pathname - full path to a file or starting from /&lt;br /&gt;
*Binary data file - contains machine language (1 or 0)&lt;br /&gt;
*cat - display file contents&lt;br /&gt;
*cd - change directory&lt;br /&gt;
*Command mode - vi mode for text editing&lt;br /&gt;
*Concatenation - joining of text&lt;br /&gt;
*egrep = grep -E&lt;br /&gt;
*emacas = ediotr macros editor, think of as word pad&lt;br /&gt;
*fgrep = grep -F&lt;br /&gt;
*Gedit = GUI text editor&lt;br /&gt;
*Head - displays first 10 lines, can specify # of lines&lt;br /&gt;
*Insert mode - vi mode only allows text into file, no other options&lt;br /&gt;
*less command - display file pg. by pg. cursor navigation&lt;br /&gt;
*Linked file - file that represents another file&lt;br /&gt;
*ll command = ls -l&lt;br /&gt;
*more command = displays file pg. by pg. &amp;amp; line by line&lt;br /&gt;
*Named pipe file - temp connection that sends info from 1 cmd or process in memory to another, *can represent a file&lt;br /&gt;
*Nano editor - terminal text editor, uses ctrl keys for functions and navigation&lt;br /&gt;
*od command - displays file contents in octal format&lt;br /&gt;
*Parent dir - one dir level up&lt;br /&gt;
*Regular expressions - special metacharacters&lt;br /&gt;
*Relative pathname - path to a folder relative to the pwd &lt;br /&gt;
*Socket file = named pipe between 2 computers&lt;br /&gt;
*Special device file - files to identify hardware&lt;br /&gt;
*Strings command - search &amp;amp; display text in a bin file&lt;br /&gt;
*Tab-completion - press tab to complete path in the shell&lt;br /&gt;
*tac command = cat backwards&lt;br /&gt;
*Tail cmd = display last 10 lines&lt;br /&gt;
*Text tools = program to create, modify, &amp;amp; search txt files&lt;br /&gt;
*Wildcard metacharacters = used to match certain characters &lt;br /&gt;
&lt;br /&gt;
==Key Commands==&lt;br /&gt;
&lt;br /&gt;
We have some of the key commands listed alphabetically here but the cat command   is much like the tac command  where cat is used to display the entire contents of a text file the tac command  begins with the last line of a file and ends with the the first line of the file. (Just like the word cat backwards is tac)&lt;br /&gt;
 	The &amp;quot; global regular expression print&amp;quot; or grep command searches files for patterns of characters using regular expressions.  The egrep &amp;amp; fgrep   are other variants of grep that we will talk about later.&lt;br /&gt;
	The print working directory is a useful command to see where you are in a current directory in the tree. &lt;br /&gt;
	And ls command is another useful used for listing files in a given directory.&lt;br /&gt;
	&lt;br /&gt;
*cat  &lt;br /&gt;
*cd (change directory) &lt;br /&gt;
*egrep &lt;br /&gt;
*grep &lt;br /&gt;
*file &lt;br /&gt;
*grep &lt;br /&gt;
*head &lt;br /&gt;
*less &lt;br /&gt;
*ls &lt;br /&gt;
*more &lt;br /&gt;
*pwd (print working directory) &lt;br /&gt;
*strings &lt;br /&gt;
*tac &lt;br /&gt;
*tail&lt;br /&gt;
==Search files for regular expressions using grep==&lt;br /&gt;
==Use vi to modify text files==&lt;br /&gt;
====source: http://www.cs.colostate.edu/helpdocs/vi.html====&lt;br /&gt;
===What is vi?===&lt;br /&gt;
The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.]&lt;br /&gt;
The UNIX vi editor is a full screen editor and has two modes of operation:&lt;br /&gt;
Command mode commands which cause action to be taken on the file, and&lt;br /&gt;
Insert mode in which entered text is inserted into the file.&lt;br /&gt;
In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the &amp;lt;Esc&amp;gt; (Escape) key turns off the Insert mode.&lt;br /&gt;
While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. The most basic and useful commands are marked with an asterisk (* or star) in the tables below. With practice, these commands should become automatic.&lt;br /&gt;
NOTE: Both UNIX and vi are case-sensitive. Be sure not to use a capital letter in place of a lowercase letter; the results will not be what you expect.&lt;br /&gt;
&lt;br /&gt;
===To Get Into and Out Of vi===&lt;br /&gt;
&lt;br /&gt;
To Start vi&lt;br /&gt;
&lt;br /&gt;
To use vi on a file, type in vi filename. If the file named filename exists, then the first page (or screen) of the file will be displayed; if the file does not exist, then an empty file and screen are created into which you may enter text.&lt;br /&gt;
*	vi filename	edit filename starting at line 1&lt;br /&gt;
 	vi -r filename	recover filename that was being edited when system crashed&lt;br /&gt;
To Exit vi&lt;br /&gt;
&lt;br /&gt;
Usually the new or modified file is saved when you leave vi. However, it is also possible to quit vi without saving the file.&lt;br /&gt;
Note: The cursor moves to bottom of screen whenever a colon (:) is typed. This type of command is completed by hitting the &amp;lt;Return&amp;gt; (or &amp;lt;Enter&amp;gt;) key.&lt;br /&gt;
*	:x&amp;lt;Return&amp;gt;	quit vi, writing out modified file to file named in original invocation&lt;br /&gt;
 	:wq&amp;lt;Return&amp;gt;	quit vi, writing out modified file to file named in original invocation&lt;br /&gt;
 	:q&amp;lt;Return&amp;gt;	quit (or exit) vi&lt;br /&gt;
*	:q!&amp;lt;Return&amp;gt;	quit vi even though latest changes have not been saved for this vi call&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Moving the Cursor===&lt;br /&gt;
&lt;br /&gt;
Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided.&lt;br /&gt;
If you go back and forth between a PC environment and a UNIX environment, you may find that this dissimilarity in methods for cursor movement is the most frustrating difference between the two.&lt;br /&gt;
In the table below, the symbol ^ before a letter means that the &amp;lt;Ctrl&amp;gt; key should be held down while the letter key is pressed.&lt;br /&gt;
*	j or &amp;lt;Return&amp;gt; &lt;br /&gt;
  [or down-arrow]	move cursor down one line&lt;br /&gt;
*	k [or up-arrow]	move cursor up one line&lt;br /&gt;
*	h or &amp;lt;Backspace&amp;gt; &lt;br /&gt;
  [or left-arrow]	move cursor left one character&lt;br /&gt;
*	l or &amp;lt;Space&amp;gt; &lt;br /&gt;
  [or right-arrow]	move cursor right one character&lt;br /&gt;
*	0 (zero)	move cursor to start of current line (the one with the cursor)&lt;br /&gt;
*	$	move cursor to end of current line&lt;br /&gt;
 	w	move cursor to beginning of next word&lt;br /&gt;
 	b	move cursor back to beginning of preceding word&lt;br /&gt;
 	:0&amp;lt;Return&amp;gt; or 1G	move cursor to first line in file&lt;br /&gt;
 	:n&amp;lt;Return&amp;gt; or nG	move cursor to line n&lt;br /&gt;
 	:$&amp;lt;Return&amp;gt; or G	 move cursor to last line in file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Screen Manipulation===&lt;br /&gt;
&lt;br /&gt;
The following commands allow the vi editor screen (or window) to move up or down several lines and to be refreshed.&lt;br /&gt;
 	^f	move forward one screen&lt;br /&gt;
 	^b	move backward one screen&lt;br /&gt;
 	^d	move down (forward) one half screen&lt;br /&gt;
 	^u	move up (back) one half screen&lt;br /&gt;
 	^l	redraws the screen&lt;br /&gt;
 	^r	redraws the screen, removing deleted lines&lt;br /&gt;
&lt;br /&gt;
===Adding, Changing, and Deleting Text===&lt;br /&gt;
&lt;br /&gt;
Unlike PC editors, you cannot replace or delete text by highlighting it with the mouse. Instead use the commands in the following tables.&lt;br /&gt;
Perhaps the most important command is the one that allows you to back up and undo your last action. Unfortunately, this command acts like a toggle, undoing and redoing your most recent action. You cannot go back more than one step.&lt;br /&gt;
*	u	UNDO WHATEVER YOU JUST DID; a simple toggle&lt;br /&gt;
The main purpose of an editor is to create, add, or modify text for a file.&lt;br /&gt;
Inserting or Adding Text&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to insert and add text. Each of these commands puts the vi editor into insert mode; thus, the &amp;lt;Esc&amp;gt; key must be pressed to terminate the entry of text and to put the vi editor back into command mode.&lt;br /&gt;
*	i	insert text before cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	I	insert text at beginning of current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	a	append text after cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	A	append text to end of current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	o	open and put text in a new line below current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	O	open and put text in a new line above current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
===Changing Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to modify text.&lt;br /&gt;
*	r	 replace single character under cursor (no &amp;lt;Esc&amp;gt; needed)&lt;br /&gt;
 	R	replace characters, starting with current cursor position, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cw	change the current word with new text, &lt;br /&gt;
starting with the character under cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cNw	change N words beginning with character under cursor, until &amp;lt;Esc&amp;gt; hit; &lt;br /&gt;
  e.g., c5w changes 5 words&lt;br /&gt;
 	C	change (replace) the characters in the current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cc	change (replace) the entire current line, stopping when &amp;lt;Esc&amp;gt; is hit&lt;br /&gt;
 	Ncc or cNc	change (replace) the next N lines, starting with the current line,&lt;br /&gt;
stopping when &amp;lt;Esc&amp;gt; is hit&lt;br /&gt;
===Deleting Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to delete text.&lt;br /&gt;
*	x	delete single character under cursor&lt;br /&gt;
 	Nx	delete N characters, starting with character under cursor&lt;br /&gt;
 	dw	delete the single word beginning with character under cursor&lt;br /&gt;
 	dNw	delete N words beginning with character under cursor; &lt;br /&gt;
  e.g., d5w deletes 5 words&lt;br /&gt;
 	D	delete the remainder of the line, starting with current cursor position&lt;br /&gt;
*	dd	delete entire current line&lt;br /&gt;
 	Ndd or dNd	delete N lines, beginning with the current line; &lt;br /&gt;
  e.g., 5dd deletes 5 lines&lt;br /&gt;
===Cutting and Pasting Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to copy and paste text.&lt;br /&gt;
 	yy	copy (yank, cut) the current line into the buffer&lt;br /&gt;
 	Nyy or yNy	copy (yank, cut) the next N lines, including the current line, into the buffer&lt;br /&gt;
 	p	put (paste) the line(s) in the buffer into the text after the current line&lt;br /&gt;
===Other Commands===&lt;br /&gt;
&lt;br /&gt;
====Searching Text====&lt;br /&gt;
&lt;br /&gt;
A common occurrence in text editing is to replace one word or phase by another. To locate instances of particular sets of characters (or strings), use the following commands.&lt;br /&gt;
 	/string	 search forward for occurrence of string in text&lt;br /&gt;
 	?string	 search backward for occurrence of string in text&lt;br /&gt;
 	n	 move to next occurrence of search string&lt;br /&gt;
 	N	 move to next occurrence of search string in opposite direction&lt;br /&gt;
Determining Line Numbers&lt;br /&gt;
&lt;br /&gt;
Being able to determine the line number of the current line or the total number of lines in the file being edited is sometimes useful.&lt;br /&gt;
 	:.=	 returns line number of current line at bottom of screen&lt;br /&gt;
 	:=	 returns the total number of lines at bottom of screen&lt;br /&gt;
 	^g	provides the current line number, along with the total number of lines,&lt;br /&gt;
in the file at the bottom of the screen&lt;br /&gt;
Saving and Reading Files&lt;br /&gt;
&lt;br /&gt;
These commands permit you to input and output files other than the named file with which you are currently working.&lt;br /&gt;
&lt;br /&gt;
 	:r filename&amp;lt;Return&amp;gt;	 read file named filename and insert after current line &lt;br /&gt;
(the line with cursor)&lt;br /&gt;
 	:w&amp;lt;Return&amp;gt;	write current contents to file named in original vi call&lt;br /&gt;
 	:w newfile&amp;lt;Return&amp;gt;	write current contents to a new file named newfile&lt;br /&gt;
 	:12,35w smallfile&amp;lt;Return&amp;gt;	write the contents of the lines numbered 12 through 35 to a new file named smallfile&lt;br /&gt;
 	:w! prevfile&amp;lt;Return&amp;gt;	write current contents over a pre-existing file named prevfile&lt;br /&gt;
&lt;br /&gt;
==Regular Expressions==&lt;br /&gt;
===Search files for regular expressions using grep   &#039;&#039;(Global Regular Expressions)&#039;&#039;===&lt;br /&gt;
*grep allows you to search through a file for text argument. &lt;br /&gt;
*grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
return lines that include localhost in the file /etc/hosts&lt;br /&gt;
*grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
*grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
*grep -i &amp;quot;text&amp;quot; &amp;quot;File&amp;quot;&lt;br /&gt;
to search for text that is not case sensitive in a file since the default is case sensitive &lt;br /&gt;
*grep &amp;quot;text&amp;quot; (quotation marks)&lt;br /&gt;
will search for text patterns like: texting, subtext all consist of the word text&lt;br /&gt;
*grep &amp;quot; text &amp;quot; (quotations with a space before and after)&lt;br /&gt;
will search for the exact text in a line&lt;br /&gt;
*grep &amp;quot; s.text &amp;quot; (quaotations with a space and a period)&lt;br /&gt;
will search for  any pattern of text that starts with the letter s and ends with text:  subtext, supertext&lt;br /&gt;
*grep &amp;quot;^T &amp;quot;  (quotation, carat, space quotation)&lt;br /&gt;
To view lines that start with the letter T&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Searching with extended regular expressions with egrep&#039;&#039;&#039;&lt;br /&gt;
*egrep &amp;quot;(help | hope)&amp;quot;  (quotation, parenthesis, help, space, pipe, space, hope, parenthesis, qotation)&lt;br /&gt;
To view lines that contain the text &amp;quot;help&amp;quot; or &amp;quot;hope&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Commands to Display Contents of Binary Files===&lt;br /&gt;
*strings = searching binary file for text&lt;br /&gt;
*od = displays file in octal format&lt;br /&gt;
*od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
===Searching for Text within Files===&lt;br /&gt;
*Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
&lt;br /&gt;
*Regular expressions&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
&lt;br /&gt;
*Regular expressions are interpreted by text tool program&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
&lt;br /&gt;
*Regular expressions match charters within file&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters typically have different definitions than regular expressions&lt;br /&gt;
&lt;br /&gt;
*metacharacters&lt;br /&gt;
&lt;br /&gt;
*There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
==Alternatives to vi==&lt;br /&gt;
===Emacs===&lt;br /&gt;
*Not installed by default in Fedora 13.&lt;br /&gt;
*Can run in a GUI environment.&lt;br /&gt;
*More GUI than vi.&lt;br /&gt;
*Written in C and Emacs Lisp.&lt;br /&gt;
*Licensed GNU GPL&lt;br /&gt;
*Users can combine commands into macros to automate task.&lt;br /&gt;
&lt;br /&gt;
===gedit editor===&lt;br /&gt;
*Default text editor for GNOME desktop environment.&lt;br /&gt;
*Does not have the advanced functionality that vi or Emacs has.&lt;br /&gt;
*Has ability to install additional Gedit plugins.&lt;br /&gt;
*One of the easiest editors to use.&lt;br /&gt;
&lt;br /&gt;
===nano editor===&lt;br /&gt;
*Based on pine UNIX editor.&lt;br /&gt;
*Provides shortcut hints at the bottom of the screen.&lt;br /&gt;
*Has graphical text editor.&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
*Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
*Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
*ls - view file names and many options to modify view&lt;br /&gt;
*Wildcard metacharacters help to select multiple files&lt;br /&gt;
*Regular expression metacharacters are used in many ways.&lt;br /&gt;
*Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
*vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5140</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5140"/>
		<updated>2012-02-02T16:46:21Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Search files for regular expressions using grep */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
&lt;br /&gt;
==Comparison of Windows v. Linux filesystems==&lt;br /&gt;
====Windows File System Attributes====&lt;br /&gt;
*Directory structure - volume  based, drive letters assigned at boot&lt;br /&gt;
*Can not natievly read linux file system&lt;br /&gt;
*c:\ is root directory&lt;br /&gt;
*&amp;quot;\&amp;quot; is the file seperator = c:\logman.exe&lt;br /&gt;
*file names are not case sensitive&lt;br /&gt;
* have hidden files&lt;br /&gt;
====Linux File System Attributes====&lt;br /&gt;
*unified directory structure - single rood directory&lt;br /&gt;
*every directory is a sub-directory of /&lt;br /&gt;
*Drives and directories must be mounted to be seen&lt;br /&gt;
*Can read FAT, NTFS, EXT2,3,4 SQUASHFS, lsofs, sysfs, procfs file systems&lt;br /&gt;
*&amp;quot;/&amp;quot; is the file separator = /home/randy/documents/test.txt&lt;br /&gt;
*file names are case sensitive&lt;br /&gt;
*hidden files start with &amp;quot;.&amp;quot;	&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
====Supported File Systems====&lt;br /&gt;
 Linux supports numerous file system types&lt;br /&gt;
Ext2: This is like UNIX file system. It has the concepts of blocks, inodes and directories.&lt;br /&gt;
Ext3: It is ext2 filesystem enhanced with journaling capabilities. Journaling allows fast file system recovery. Supports POSIX ACL (Access Control Lists).&lt;br /&gt;
Isofs (iso9660): Used by CDROM file system.&lt;br /&gt;
Sysfs: It is a ram-based filesystem initially based on ramfs. It is use to exporting kernel objects so that end user can use it easily.&lt;br /&gt;
Procfs: The proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime using sysctl command. For example you can find out cpuinfo with following command:&lt;br /&gt;
=== Hierarchical File system===&lt;br /&gt;
Often referred to as the &amp;quot;FHS&amp;quot;&lt;br /&gt;
At the very top or the beginning is your / (forward slash) which represents your root directory.&lt;br /&gt;
1. / – Root&lt;br /&gt;
Every single file and directory starts from the root directory.&lt;br /&gt;
Only root user has write privilege under this directory.&lt;br /&gt;
Please note that /root is root user’s home directory, which is not same as /.&lt;br /&gt;
&lt;br /&gt;
2. /bin – User Binaries&lt;br /&gt;
Contains binary executables.&lt;br /&gt;
Common linux commands you need to use in single-user modes are located under this directory.&lt;br /&gt;
Commands used by all the users of the system are located here.&lt;br /&gt;
For example: ps, ls, ping, grep, cp.&lt;br /&gt;
&lt;br /&gt;
3. /sbin – System Binaries&lt;br /&gt;
Just like /bin, /sbin also contains binary executables.&lt;br /&gt;
But, the linux commands located under this directory are used typically by system aministrator, for system maintenance purpose.&lt;br /&gt;
For example: iptables, reboot, fdisk, ifconfig, swapon&lt;br /&gt;
&lt;br /&gt;
4. /etc – Configuration Files&lt;br /&gt;
Contains configuration files required by all programs.&lt;br /&gt;
This also contains startup and shutdown shell scripts used to start/stop individual programs.&lt;br /&gt;
For example: /etc/resolv.conf, /etc/logrotate.conf&lt;br /&gt;
&lt;br /&gt;
5. /dev – Device Files&lt;br /&gt;
Contains device files.&lt;br /&gt;
These include terminal devices, usb, or any device attached to the system.&lt;br /&gt;
For example: /dev/tty1, /dev/usbmon0&lt;br /&gt;
&lt;br /&gt;
6. /proc – Process Information&lt;br /&gt;
Contains information about system process.&lt;br /&gt;
This is a pseudo filesystem contains information about running process. For example: /proc/{pid} directory contains information about the process with that particular pid.&lt;br /&gt;
This is a virtual filesystem with text information about system resources. For example: /proc/uptime&lt;br /&gt;
&lt;br /&gt;
7. /var – Variable Files&lt;br /&gt;
var stands for variable files.&lt;br /&gt;
Content of the files that are expected to grow can be found under this directory.&lt;br /&gt;
This includes — system log files (/var/log); packages and database files (/var/lib); emails (/var/mail); print queues (/var/spool); lock files (/var/lock); temp files needed across reboots (/var/tmp);&lt;br /&gt;
&lt;br /&gt;
8. /tmp – Temporary Files&lt;br /&gt;
Directory that contains temporary files created by system and users.&lt;br /&gt;
Files under this directory are deleted when system is rebooted.&lt;br /&gt;
&lt;br /&gt;
9. /usr – User Programs&lt;br /&gt;
Contains binaries, libraries, documentation, and source-code for second level programs.&lt;br /&gt;
/usr/bin contains binary files for user programs. If you can’t find a user binary under /bin, look under /usr/bin. For example: at, awk, cc, less, scp&lt;br /&gt;
/usr/sbin contains binary files for system administrators. If you can’t find a system binary under /sbin, look under /usr/sbin. For example: atd, cron, sshd, useradd, userdel&lt;br /&gt;
/usr/lib contains libraries for /usr/bin and /usr/sbin&lt;br /&gt;
/usr/local contains users programs that you install from source. For example, when you install apache from source, it goes under /usr/local/apache2&lt;br /&gt;
10. /home – Home Directories&lt;br /&gt;
&lt;br /&gt;
Home directories for all users to store their personal files.&lt;br /&gt;
For example: /home/john, /home/nikita&lt;br /&gt;
&lt;br /&gt;
11. /boot – Boot Loader Files&lt;br /&gt;
Contains boot loader related files.&lt;br /&gt;
Kernel initrd, vmlinux, grub files are located under /boot&lt;br /&gt;
For example: initrd.img-2.6.32-24-generic, vmlinuz-2.6.32-24-generic&lt;br /&gt;
&lt;br /&gt;
12. /lib – System Libraries&lt;br /&gt;
Contains library files that supports the binaries located under /bin and /sbin&lt;br /&gt;
Library filenames are either ld* or lib*.so.*&lt;br /&gt;
For example: ld-2.11.1.so, libncurses.so.5.7&lt;br /&gt;
&lt;br /&gt;
13. /opt – Optional add-on Applications&lt;br /&gt;
opt stands for optional.&lt;br /&gt;
Contains add-on applications from individual vendors.&lt;br /&gt;
add-on applications should be installed under either /opt/ or /opt/ sub-directory.&lt;br /&gt;
&lt;br /&gt;
14. /mnt – Mount Directory&lt;br /&gt;
Temporary mount directory where sysadmins can mount filesystems.&lt;br /&gt;
&lt;br /&gt;
15. /media – Removable Media Devices&lt;br /&gt;
&lt;br /&gt;
Temporary mount directory for removable devices.&lt;br /&gt;
For examples, /media/cdrom for CD-ROM; /media/floppy for floppy drives; /media/cdrecorder for CD writer&lt;br /&gt;
&lt;br /&gt;
16. /srv – Service Data&lt;br /&gt;
srv stands for service.&lt;br /&gt;
Contains server specific services related data.&lt;br /&gt;
===Types of files used by Linux===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
&lt;br /&gt;
===Links for Additional Info on File Extension===&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
p*wd - Show current directory&lt;br /&gt;
&lt;br /&gt;
*pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
*ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
====listing including file permissions, ownership and date/time stamp.====&lt;br /&gt;
&lt;br /&gt;
*Executable files: Green&lt;br /&gt;
&lt;br /&gt;
*Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
*Directory: Blue&lt;br /&gt;
&lt;br /&gt;
*Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
*Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
*Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
*Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
*Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
*Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
*Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
*Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
*Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
* use ls to list file and directories&lt;br /&gt;
		*  ls /etc/bob = command argument&lt;br /&gt;
			* Different file types are color coded&lt;br /&gt;
			*  ls = pwd &lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
===== All ls Options=====&lt;br /&gt;
&lt;br /&gt;
 * -a =Lists all filenames&lt;br /&gt;
 * -A = Lists most filenames - excludes hidden and special files&lt;br /&gt;
 * -C = Lists filenames in column format&lt;br /&gt;
 * --color=n =Lists filenames without color&lt;br /&gt;
 * -d =Lists directory names instead of their contents&lt;br /&gt;
 * -f = Lists all filenames without sorting&lt;br /&gt;
 * -F = Lists filenames classified by file type&lt;br /&gt;
 * --full-time = Lists filenames in long format and displays the full modification time&lt;br /&gt;
 * -l = Lists filenames in long format&lt;br /&gt;
 * -lh = Lists filenames in long format in easy-to-read file sizes&lt;br /&gt;
 * -lG, -l, -o  = Lists filenames in long format but omits group info&lt;br /&gt;
 * -r = Lists filenames in reverse sorted order&lt;br /&gt;
 * -R = Lists filenames in the specified directory and all subdirectories&lt;br /&gt;
 * -s = Lists filenames with file sizes in KB&lt;br /&gt;
 * -S = Lists filenames by size&lt;br /&gt;
 * -t = Lists filenames sorted by modification time&lt;br /&gt;
 * -U = Lists filenames without sorting&lt;br /&gt;
 * -x = Lists filenames in rows &lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
*file command = Gives file analysis info, type&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Other Attributes listing Options====&lt;br /&gt;
&lt;br /&gt;
* Perms&lt;br /&gt;
* Hard link count&lt;br /&gt;
* Owner, group, &lt;br /&gt;
* Size&lt;br /&gt;
* Mod. Time&lt;br /&gt;
&lt;br /&gt;
===Wildcard Metacharacters===&lt;br /&gt;
&lt;br /&gt;
==Display contents of files==&lt;br /&gt;
*vi - editing a file&lt;br /&gt;
*emas - alternative to vi &lt;br /&gt;
*cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
*tac - reverse concatenation - types file in reverse&lt;br /&gt;
*head - displays the top ten lines of a file&lt;br /&gt;
*tail - displays the bottom ten lines of a file&lt;br /&gt;
*more - displays file page by page&lt;br /&gt;
*less - similar to more but allow line by line manipulation&lt;br /&gt;
&lt;br /&gt;
==Display contents of Binary files==&lt;br /&gt;
* strings = searches binary file for text&lt;br /&gt;
* od = displays file in octal format&lt;br /&gt;
* od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
==Key Terms== &lt;br /&gt;
 &lt;br /&gt;
The tab completion feature is something your really going to like, it makes life much easier for you, rather than typing every single command you type the first character or two and hit the tab key and it finishes it for you.&lt;br /&gt;
*~ metacharacter = represent user&#039;s home dir&lt;br /&gt;
*Absolute pathname - full path to a file or starting from /&lt;br /&gt;
*Binary data file - contains machine language (1 or 0)&lt;br /&gt;
*cat - display file contents&lt;br /&gt;
*cd - change directory&lt;br /&gt;
*Command mode - vi mode for text editing&lt;br /&gt;
*Concatenation - joining of text&lt;br /&gt;
*egrep = grep -E&lt;br /&gt;
*emacas = ediotr macros editor, think of as word pad&lt;br /&gt;
*fgrep = grep -F&lt;br /&gt;
*Gedit = GUI text editor&lt;br /&gt;
*Head - displays first 10 lines, can specify # of lines&lt;br /&gt;
*Insert mode - vi mode only allows text into file, no other options&lt;br /&gt;
*less command - display file pg. by pg. cursor navigation&lt;br /&gt;
*Linked file - file that represents another file&lt;br /&gt;
*ll command = ls -l&lt;br /&gt;
*more command = displays file pg. by pg. &amp;amp; line by line&lt;br /&gt;
*Named pipe file - temp connection that sends info from 1 cmd or process in memory to another, *can represent a file&lt;br /&gt;
*Nano editor - terminal text editor, uses ctrl keys for functions and navigation&lt;br /&gt;
*od command - displays file contents in octal format&lt;br /&gt;
*Parent dir - one dir level up&lt;br /&gt;
*Regular expressions - special metacharacters&lt;br /&gt;
*Relative pathname - path to a folder relative to the pwd &lt;br /&gt;
*Socket file = named pipe between 2 computers&lt;br /&gt;
*Special device file - files to identify hardware&lt;br /&gt;
*Strings command - search &amp;amp; display text in a bin file&lt;br /&gt;
*Tab-completion - press tab to complete path in the shell&lt;br /&gt;
*tac command = cat backwards&lt;br /&gt;
*Tail cmd = display last 10 lines&lt;br /&gt;
*Text tools = program to create, modify, &amp;amp; search txt files&lt;br /&gt;
*Wildcard metacharacters = used to match certain characters &lt;br /&gt;
&lt;br /&gt;
==Key Commands==&lt;br /&gt;
&lt;br /&gt;
We have some of the key commands listed alphabetically here but the cat command   is much like the tac command  where cat is used to display the entire contents of a text file the tac command  begins with the last line of a file and ends with the the first line of the file. (Just like the word cat backwards is tac)&lt;br /&gt;
 	The &amp;quot; global regular expression print&amp;quot; or grep command searches files for patterns of characters using regular expressions.  The egrep &amp;amp; fgrep   are other variants of grep that we will talk about later.&lt;br /&gt;
	The print working directory is a useful command to see where you are in a current directory in the tree. &lt;br /&gt;
	And ls command is another useful used for listing files in a given directory.&lt;br /&gt;
	&lt;br /&gt;
*cat  &lt;br /&gt;
*cd (change directory) &lt;br /&gt;
*egrep &lt;br /&gt;
*grep &lt;br /&gt;
*file &lt;br /&gt;
*grep &lt;br /&gt;
*head &lt;br /&gt;
*less &lt;br /&gt;
*ls &lt;br /&gt;
*more &lt;br /&gt;
*pwd (print working directory) &lt;br /&gt;
*strings &lt;br /&gt;
*tac &lt;br /&gt;
*tail&lt;br /&gt;
==Search files for regular expressions using grep==&lt;br /&gt;
==Use vi to modify text files==&lt;br /&gt;
====source: http://www.cs.colostate.edu/helpdocs/vi.html====&lt;br /&gt;
===What is vi?===&lt;br /&gt;
The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.]&lt;br /&gt;
The UNIX vi editor is a full screen editor and has two modes of operation:&lt;br /&gt;
Command mode commands which cause action to be taken on the file, and&lt;br /&gt;
Insert mode in which entered text is inserted into the file.&lt;br /&gt;
In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the &amp;lt;Esc&amp;gt; (Escape) key turns off the Insert mode.&lt;br /&gt;
While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. The most basic and useful commands are marked with an asterisk (* or star) in the tables below. With practice, these commands should become automatic.&lt;br /&gt;
NOTE: Both UNIX and vi are case-sensitive. Be sure not to use a capital letter in place of a lowercase letter; the results will not be what you expect.&lt;br /&gt;
&lt;br /&gt;
===To Get Into and Out Of vi===&lt;br /&gt;
&lt;br /&gt;
To Start vi&lt;br /&gt;
&lt;br /&gt;
To use vi on a file, type in vi filename. If the file named filename exists, then the first page (or screen) of the file will be displayed; if the file does not exist, then an empty file and screen are created into which you may enter text.&lt;br /&gt;
*	vi filename	edit filename starting at line 1&lt;br /&gt;
 	vi -r filename	recover filename that was being edited when system crashed&lt;br /&gt;
To Exit vi&lt;br /&gt;
&lt;br /&gt;
Usually the new or modified file is saved when you leave vi. However, it is also possible to quit vi without saving the file.&lt;br /&gt;
Note: The cursor moves to bottom of screen whenever a colon (:) is typed. This type of command is completed by hitting the &amp;lt;Return&amp;gt; (or &amp;lt;Enter&amp;gt;) key.&lt;br /&gt;
*	:x&amp;lt;Return&amp;gt;	quit vi, writing out modified file to file named in original invocation&lt;br /&gt;
 	:wq&amp;lt;Return&amp;gt;	quit vi, writing out modified file to file named in original invocation&lt;br /&gt;
 	:q&amp;lt;Return&amp;gt;	quit (or exit) vi&lt;br /&gt;
*	:q!&amp;lt;Return&amp;gt;	quit vi even though latest changes have not been saved for this vi call&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Moving the Cursor===&lt;br /&gt;
&lt;br /&gt;
Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided.&lt;br /&gt;
If you go back and forth between a PC environment and a UNIX environment, you may find that this dissimilarity in methods for cursor movement is the most frustrating difference between the two.&lt;br /&gt;
In the table below, the symbol ^ before a letter means that the &amp;lt;Ctrl&amp;gt; key should be held down while the letter key is pressed.&lt;br /&gt;
*	j or &amp;lt;Return&amp;gt; &lt;br /&gt;
  [or down-arrow]	move cursor down one line&lt;br /&gt;
*	k [or up-arrow]	move cursor up one line&lt;br /&gt;
*	h or &amp;lt;Backspace&amp;gt; &lt;br /&gt;
  [or left-arrow]	move cursor left one character&lt;br /&gt;
*	l or &amp;lt;Space&amp;gt; &lt;br /&gt;
  [or right-arrow]	move cursor right one character&lt;br /&gt;
*	0 (zero)	move cursor to start of current line (the one with the cursor)&lt;br /&gt;
*	$	move cursor to end of current line&lt;br /&gt;
 	w	move cursor to beginning of next word&lt;br /&gt;
 	b	move cursor back to beginning of preceding word&lt;br /&gt;
 	:0&amp;lt;Return&amp;gt; or 1G	move cursor to first line in file&lt;br /&gt;
 	:n&amp;lt;Return&amp;gt; or nG	move cursor to line n&lt;br /&gt;
 	:$&amp;lt;Return&amp;gt; or G	 move cursor to last line in file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Screen Manipulation===&lt;br /&gt;
&lt;br /&gt;
The following commands allow the vi editor screen (or window) to move up or down several lines and to be refreshed.&lt;br /&gt;
 	^f	move forward one screen&lt;br /&gt;
 	^b	move backward one screen&lt;br /&gt;
 	^d	move down (forward) one half screen&lt;br /&gt;
 	^u	move up (back) one half screen&lt;br /&gt;
 	^l	redraws the screen&lt;br /&gt;
 	^r	redraws the screen, removing deleted lines&lt;br /&gt;
&lt;br /&gt;
===Adding, Changing, and Deleting Text===&lt;br /&gt;
&lt;br /&gt;
Unlike PC editors, you cannot replace or delete text by highlighting it with the mouse. Instead use the commands in the following tables.&lt;br /&gt;
Perhaps the most important command is the one that allows you to back up and undo your last action. Unfortunately, this command acts like a toggle, undoing and redoing your most recent action. You cannot go back more than one step.&lt;br /&gt;
*	u	UNDO WHATEVER YOU JUST DID; a simple toggle&lt;br /&gt;
The main purpose of an editor is to create, add, or modify text for a file.&lt;br /&gt;
Inserting or Adding Text&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to insert and add text. Each of these commands puts the vi editor into insert mode; thus, the &amp;lt;Esc&amp;gt; key must be pressed to terminate the entry of text and to put the vi editor back into command mode.&lt;br /&gt;
*	i	insert text before cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	I	insert text at beginning of current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	a	append text after cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	A	append text to end of current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	o	open and put text in a new line below current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
*	O	open and put text in a new line above current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
===Changing Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to modify text.&lt;br /&gt;
*	r	 replace single character under cursor (no &amp;lt;Esc&amp;gt; needed)&lt;br /&gt;
 	R	replace characters, starting with current cursor position, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cw	change the current word with new text, &lt;br /&gt;
starting with the character under cursor, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cNw	change N words beginning with character under cursor, until &amp;lt;Esc&amp;gt; hit; &lt;br /&gt;
  e.g., c5w changes 5 words&lt;br /&gt;
 	C	change (replace) the characters in the current line, until &amp;lt;Esc&amp;gt; hit&lt;br /&gt;
 	cc	change (replace) the entire current line, stopping when &amp;lt;Esc&amp;gt; is hit&lt;br /&gt;
 	Ncc or cNc	change (replace) the next N lines, starting with the current line,&lt;br /&gt;
stopping when &amp;lt;Esc&amp;gt; is hit&lt;br /&gt;
===Deleting Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to delete text.&lt;br /&gt;
*	x	delete single character under cursor&lt;br /&gt;
 	Nx	delete N characters, starting with character under cursor&lt;br /&gt;
 	dw	delete the single word beginning with character under cursor&lt;br /&gt;
 	dNw	delete N words beginning with character under cursor; &lt;br /&gt;
  e.g., d5w deletes 5 words&lt;br /&gt;
 	D	delete the remainder of the line, starting with current cursor position&lt;br /&gt;
*	dd	delete entire current line&lt;br /&gt;
 	Ndd or dNd	delete N lines, beginning with the current line; &lt;br /&gt;
  e.g., 5dd deletes 5 lines&lt;br /&gt;
===Cutting and Pasting Text===&lt;br /&gt;
&lt;br /&gt;
The following commands allow you to copy and paste text.&lt;br /&gt;
 	yy	copy (yank, cut) the current line into the buffer&lt;br /&gt;
 	Nyy or yNy	copy (yank, cut) the next N lines, including the current line, into the buffer&lt;br /&gt;
 	p	put (paste) the line(s) in the buffer into the text after the current line&lt;br /&gt;
===Other Commands===&lt;br /&gt;
&lt;br /&gt;
====Searching Text====&lt;br /&gt;
&lt;br /&gt;
A common occurrence in text editing is to replace one word or phase by another. To locate instances of particular sets of characters (or strings), use the following commands.&lt;br /&gt;
 	/string	 search forward for occurrence of string in text&lt;br /&gt;
 	?string	 search backward for occurrence of string in text&lt;br /&gt;
 	n	 move to next occurrence of search string&lt;br /&gt;
 	N	 move to next occurrence of search string in opposite direction&lt;br /&gt;
Determining Line Numbers&lt;br /&gt;
&lt;br /&gt;
Being able to determine the line number of the current line or the total number of lines in the file being edited is sometimes useful.&lt;br /&gt;
 	:.=	 returns line number of current line at bottom of screen&lt;br /&gt;
 	:=	 returns the total number of lines at bottom of screen&lt;br /&gt;
 	^g	provides the current line number, along with the total number of lines,&lt;br /&gt;
in the file at the bottom of the screen&lt;br /&gt;
Saving and Reading Files&lt;br /&gt;
&lt;br /&gt;
These commands permit you to input and output files other than the named file with which you are currently working.&lt;br /&gt;
&lt;br /&gt;
 	:r filename&amp;lt;Return&amp;gt;	 read file named filename and insert after current line &lt;br /&gt;
(the line with cursor)&lt;br /&gt;
 	:w&amp;lt;Return&amp;gt;	write current contents to file named in original vi call&lt;br /&gt;
 	:w newfile&amp;lt;Return&amp;gt;	write current contents to a new file named newfile&lt;br /&gt;
 	:12,35w smallfile&amp;lt;Return&amp;gt;	write the contents of the lines numbered 12 through 35 to a new file named smallfile&lt;br /&gt;
 	:w! prevfile&amp;lt;Return&amp;gt;	write current contents over a pre-existing file named prevfile&lt;br /&gt;
&lt;br /&gt;
==Regular Expressions==&lt;br /&gt;
===Search files for regular expressions using grep   &#039;&#039;(Global Regular Expressions)&#039;&#039;===&lt;br /&gt;
*grep allows you to search through a file for text argument. &lt;br /&gt;
*grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
return lines that include localhost in the file /etc/hosts&lt;br /&gt;
*grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
*grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
*grep -i &amp;quot;text&amp;quot; &amp;quot;File&amp;quot;&lt;br /&gt;
to search for text that is not case sensitive in a file since the default is case sensitive &lt;br /&gt;
*grep &amp;quot;text&amp;quot; (quotation marks)&lt;br /&gt;
will search for text patterns like: texting, subtext all consist of the word text&lt;br /&gt;
*grep &amp;quot; text &amp;quot; (quotations with a space before and after)&lt;br /&gt;
will search for the exact text in a line&lt;br /&gt;
*grep &amp;quot; s.text &amp;quot; (quaotations with a space and a period)&lt;br /&gt;
will search for  any pattern of text that starts with the letter s and ends with text:  subtext, supertext&lt;br /&gt;
*grep &amp;quot;^T &amp;quot;  (quotation, carat, space quotation)&lt;br /&gt;
To view lines that start with the letter T&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Searching with extended regular expressions with egrep&#039;&#039;&#039;&lt;br /&gt;
*egrep &amp;quot;(help|hope)&amp;quot;  (quotation, parenthesis, pipe, parenthesis, qotation)&lt;br /&gt;
To view lines that contain the text &amp;quot;help&amp;quot; or &amp;quot;hope&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Commands to Display Contents of Binary Files===&lt;br /&gt;
*strings = searching binary file for text&lt;br /&gt;
*od = displays file in octal format&lt;br /&gt;
*od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
===Searching for Text within Files===&lt;br /&gt;
*Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
&lt;br /&gt;
*Regular expressions&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
&lt;br /&gt;
*Regular expressions are interpreted by text tool program&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
&lt;br /&gt;
*Regular expressions match charters within file&lt;br /&gt;
&lt;br /&gt;
*Wildcard metacharacters typically have different definitions than regular expressions&lt;br /&gt;
&lt;br /&gt;
*metacharacters&lt;br /&gt;
&lt;br /&gt;
*There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
==Alternatives to vi==&lt;br /&gt;
===Emacs===&lt;br /&gt;
*Not installed by default in Fedora 13.&lt;br /&gt;
*Can run in a GUI environment.&lt;br /&gt;
*More GUI than vi.&lt;br /&gt;
*Written in C and Emacs Lisp.&lt;br /&gt;
*Licensed GNU GPL&lt;br /&gt;
*Users can combine commands into macros to automate task.&lt;br /&gt;
&lt;br /&gt;
===gedit editor===&lt;br /&gt;
*Default text editor for GNOME desktop environment.&lt;br /&gt;
*Does not have the advanced functionality that vi or Emacs has.&lt;br /&gt;
*Has ability to install additional Gedit plugins.&lt;br /&gt;
*One of the easiest editors to use.&lt;br /&gt;
&lt;br /&gt;
===nano editor===&lt;br /&gt;
*Based on pine UNIX editor.&lt;br /&gt;
*Provides shortcut hints at the bottom of the screen.&lt;br /&gt;
*Has graphical text editor.&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
*Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
*Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
*ls - view file names and many options to modify view&lt;br /&gt;
*Wildcard metacharacters help to select multiple files&lt;br /&gt;
*Regular expression metacharacters are used in many ways.&lt;br /&gt;
*Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
*vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Study_Guide&amp;diff=5116</id>
		<title>Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Study_Guide&amp;diff=5116"/>
		<updated>2012-01-30T21:25:50Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* The Five Port States */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*Corey Steiner  &lt;br /&gt;
*Billy Andersen &lt;br /&gt;
*Kevin Moy  &lt;br /&gt;
*Tracy Ryder&lt;br /&gt;
&lt;br /&gt;
==Evolution of STP==&lt;br /&gt;
&lt;br /&gt;
*STP (Spanning Tree Protocol) – Eliminates loops at layer 2 topology&lt;br /&gt;
&lt;br /&gt;
==STP==&lt;br /&gt;
*STP initially converges on a logically loop-free network topology.&lt;br /&gt;
*Elects one root bridge&lt;br /&gt;
*Selects the root port on all nonroot bridges&lt;br /&gt;
*Selects the designated port on each segment&lt;br /&gt;
==STP Steps==&lt;br /&gt;
*Elects One Root Bridge&lt;br /&gt;
*The protocol uses a process to elect a root bridge&lt;br /&gt;
*Only one bridge acts as the root bridge in a given network per VLAN&lt;br /&gt;
*On the root bridge, all ports act as designated ports&lt;br /&gt;
*Switch with lowest priority parameter is elected as root&lt;br /&gt;
===STP Step 2===&lt;br /&gt;
*Selects the Root Port on All Non-root Bridges&lt;br /&gt;
*The protocol establishes one root port on each nonroot bridge. &lt;br /&gt;
*The root port is the lowest-cost path from the nonroot bridge to the root bridge&lt;br /&gt;
===Step 3===&lt;br /&gt;
*Selects Designated Port on Each Segment&lt;br /&gt;
*On each segment, STP establishes one designated port on the bridge that has the lowest path cost to the root bridge&lt;br /&gt;
*The switch primarily chooses a designated port as the least-cost path to the root bridge&lt;br /&gt;
*In the event of a tie, the bridge ID acts as the tiebreaker&lt;br /&gt;
==Port Roles==&lt;br /&gt;
===Four port roles under STP===&lt;br /&gt;
*Root Port&lt;br /&gt;
*Designated Port&lt;br /&gt;
*Disabled Port&lt;br /&gt;
*Nondesignated Port&lt;br /&gt;
&lt;br /&gt;
==The Five Port States==&lt;br /&gt;
*Blocking&lt;br /&gt;
*Listening&lt;br /&gt;
*Learning&lt;br /&gt;
*Forwarding&lt;br /&gt;
*Disabled&lt;br /&gt;
&lt;br /&gt;
==RSTP==&lt;br /&gt;
&#039;&#039;&#039;A variation of Spanning Tree Protocol (STP) designed to ensures a topology that doesn’t have loops.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IEEE introduced Rapid Spanning Tree Protocol (RSTP) as 802.1w&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Detection of root switch failure is done in 3 hello times&lt;br /&gt;
*STP can take 30 to 50 seconds to respond to a topology change, RSTP is typically able to respond to changes within 3 × Hello times *(default: 3 times 2 seconds) or within a few milliseconds of a physical link failure&lt;br /&gt;
&lt;br /&gt;
*RSTP maintains backup details regarding the discarding status of ports.&lt;br /&gt;
&lt;br /&gt;
==RSTP bridge port roles:==&lt;br /&gt;
*Root - A forwarding port that is the best port from Nonroot-bridge to Rootbridge&lt;br /&gt;
*Designated - A forwarding port for every LAN segment&lt;br /&gt;
*Alternate - An alternate path to the root bridge. This path is different than using the root port.&lt;br /&gt;
*Backup - A backup/redundant path to a segment where another bridge port already connects.&lt;br /&gt;
*Disabled - Not strictly part of STP, a network administrator can manually disable a port&lt;br /&gt;
&lt;br /&gt;
==RSTP Topology Change Mechanism==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;When an RSTP bridge detects a topology change it performs the following actions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*The RSTP Bridge starts the TC while time with a value equal to twice the hello time for all its nonedge designated ports and its root, port if necessary. The TC While time is the interval during which the RSTP Bridge actively informs the rest of the bridges in the network of a topology. It then flushing the MAC addresses associated with all nonedge ports. And as long as the TC While timer is running the BPDUs will be sent out of the port will have the TC bit set.&lt;br /&gt;
&lt;br /&gt;
==Bridge Identifier for PVRST+==&lt;br /&gt;
&lt;br /&gt;
*Bridge Priority A 4-bit field still used to carry bridge priority&lt;br /&gt;
*Extended System ID&lt;br /&gt;
*Mac Address&lt;br /&gt;
&lt;br /&gt;
*Only four high-order bits of the 16 bit bridge priority field carry actual priority&lt;br /&gt;
*Cisco STP Default Config&lt;br /&gt;
*PVST+&lt;br /&gt;
*PVRST+&lt;br /&gt;
*MST&lt;br /&gt;
&lt;br /&gt;
*PortFast&lt;br /&gt;
*Spanning Tree Portfast causes an interface configured as a layer 2 access port to enter the forwarding state immediately.&lt;br /&gt;
*Conf t&lt;br /&gt;
*int fa 0/1&lt;br /&gt;
*spanning-tree portfast&lt;br /&gt;
&lt;br /&gt;
*confirm with show spanning-tree interface Fastethernet  0/1.&lt;br /&gt;
&lt;br /&gt;
*Config the Basic Parameters of PVRST+&lt;br /&gt;
*conf t&lt;br /&gt;
*spanning-tree mode rapid-pvst&lt;br /&gt;
*spanning-tree vlan 2 root primary&lt;br /&gt;
*spanning tree- vlan 3 root secondary&lt;br /&gt;
&lt;br /&gt;
==Multiple Spanning Tree==&lt;br /&gt;
MST extends the IEEE 802.1w RST algorithm to multiple spanning trees. The main purpose of MST is to reduce the total number of spanning-tree instances.&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Study_Guide&amp;diff=5113</id>
		<title>Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Study_Guide&amp;diff=5113"/>
		<updated>2012-01-30T21:23:51Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Port Roles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*Corey Steiner  &lt;br /&gt;
*Billy Andersen &lt;br /&gt;
*Kevin Moy  &lt;br /&gt;
*Tracy Ryder&lt;br /&gt;
&lt;br /&gt;
==Evolution of STP==&lt;br /&gt;
&lt;br /&gt;
*STP (Spanning Tree Protocol) – Eliminates loops at layer 2 topology&lt;br /&gt;
&lt;br /&gt;
==STP==&lt;br /&gt;
*STP initially converges on a logically loop-free network topology.&lt;br /&gt;
*Elects one root bridge&lt;br /&gt;
*Selects the root port on all nonroot bridges&lt;br /&gt;
*Selects the designated port on each segment&lt;br /&gt;
==STP Steps==&lt;br /&gt;
*Elects One Root Bridge&lt;br /&gt;
*The protocol uses a process to elect a root bridge&lt;br /&gt;
*Only one bridge acts as the root bridge in a given network per VLAN&lt;br /&gt;
*On the root bridge, all ports act as designated ports&lt;br /&gt;
*Switch with lowest priority parameter is elected as root&lt;br /&gt;
===STP Step 2===&lt;br /&gt;
*Selects the Root Port on All Non-root Bridges&lt;br /&gt;
*The protocol establishes one root port on each nonroot bridge. &lt;br /&gt;
*The root port is the lowest-cost path from the nonroot bridge to the root bridge&lt;br /&gt;
===Step 3===&lt;br /&gt;
*Selects Designated Port on Each Segment&lt;br /&gt;
*On each segment, STP establishes one designated port on the bridge that has the lowest path cost to the root bridge&lt;br /&gt;
*The switch primarily chooses a designated port as the least-cost path to the root bridge&lt;br /&gt;
*In the event of a tie, the bridge ID acts as the tiebreaker&lt;br /&gt;
==Port Roles==&lt;br /&gt;
===Four port roles under STP===&lt;br /&gt;
*Root Port&lt;br /&gt;
*Designated Port&lt;br /&gt;
*Disabled Port&lt;br /&gt;
*Nondesignated Port&lt;br /&gt;
&lt;br /&gt;
==The Five Port States==&lt;br /&gt;
*Blocking&lt;br /&gt;
*Listening&lt;br /&gt;
*Learning&lt;br /&gt;
*Forwarding&lt;br /&gt;
*Disabled&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A variation of Spanning Tree Protocol (STP) designed to ensures a topology that doesn’t have loops.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IEEE introduced Rapid Spanning Tree Protocol (RSTP) as 802.1w&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Detection of root switch failure is done in 3 hello times&lt;br /&gt;
*STP can take 30 to 50 seconds to respond to a topology change, RSTP is typically able to respond to changes within 3 × Hello times *(default: 3 times 2 seconds) or within a few milliseconds of a physical link failure&lt;br /&gt;
&lt;br /&gt;
*RSTP maintains backup details regarding the discarding status of ports.&lt;br /&gt;
&lt;br /&gt;
==RSTP bridge port roles:==&lt;br /&gt;
*Root - A forwarding port that is the best port from Nonroot-bridge to Rootbridge&lt;br /&gt;
*Designated - A forwarding port for every LAN segment&lt;br /&gt;
*Alternate - An alternate path to the root bridge. This path is different than using the root port.&lt;br /&gt;
*Backup - A backup/redundant path to a segment where another bridge port already connects.&lt;br /&gt;
*Disabled - Not strictly part of STP, a network administrator can manually disable a port&lt;br /&gt;
&lt;br /&gt;
==RSTP Topology Change Mechanism==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;When an RSTP bridge detects a topology change it performs the following actions.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*The RSTP Bridge starts the TC while time with a value equal to twice the hello time for all its nonedge designated ports and its root, port if necessary. The TC While time is the interval during which the RSTP Bridge actively informs the rest of the bridges in the network of a topology. It then flushing the MAC addresses associated with all nonedge ports. And as long as the TC While timer is running the BPDUs will be sent out of the port will have the TC bit set.&lt;br /&gt;
&lt;br /&gt;
==Bridge Identifier for PVRST+==&lt;br /&gt;
&lt;br /&gt;
*Bridge Priority A 4-bit field still used to carry bridge priority&lt;br /&gt;
*Extended System ID&lt;br /&gt;
*Mac Address&lt;br /&gt;
&lt;br /&gt;
*Only four high-order bits of the 16 bit bridge priority field carry actual priority&lt;br /&gt;
*Cisco STP Default Config&lt;br /&gt;
*PVST+&lt;br /&gt;
*PVRST+&lt;br /&gt;
*MST&lt;br /&gt;
&lt;br /&gt;
*PortFast&lt;br /&gt;
*Spanning Tree Portfast causes an interface configured as a layer 2 access port to enter the forwarding state immediately.&lt;br /&gt;
*Conf t&lt;br /&gt;
*int fa 0/1&lt;br /&gt;
*spanning-tree portfast&lt;br /&gt;
&lt;br /&gt;
*confirm with show spanning-tree interface Fastethernet  0/1.&lt;br /&gt;
&lt;br /&gt;
*Config the Basic Parameters of PVRST+&lt;br /&gt;
*conf t&lt;br /&gt;
*spanning-tree mode rapid-pvst&lt;br /&gt;
*spanning-tree vlan 2 root primary&lt;br /&gt;
*spanning tree- vlan 3 root secondary&lt;br /&gt;
&lt;br /&gt;
==Multiple Spanning Tree==&lt;br /&gt;
MST extends the IEEE 802.1w RST algorithm to multiple spanning trees. The main purpose of MST is to reduce the total number of spanning-tree instances.&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=File:Comparison.jpg&amp;diff=5097</id>
		<title>File:Comparison.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=File:Comparison.jpg&amp;diff=5097"/>
		<updated>2012-01-30T15:50:45Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5096</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5096"/>
		<updated>2012-01-30T15:45:29Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Objectives */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
&lt;br /&gt;
==Comparison of Windows v. Linux filesystems==&lt;br /&gt;
 &lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
===Types of files===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
pwd - Show current directory&lt;br /&gt;
&lt;br /&gt;
pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
listing including file permissions, ownership and date/time stamp.&lt;br /&gt;
&lt;br /&gt;
Executable files: Green&lt;br /&gt;
&lt;br /&gt;
Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
Directory: Blue&lt;br /&gt;
&lt;br /&gt;
Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
&lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
==Display contents of files==&lt;br /&gt;
*vi - editing a file&lt;br /&gt;
*emas - alternative to vi &lt;br /&gt;
*cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
*tac - reverse concatenation - types file in reverse&lt;br /&gt;
*head - displays the top ten lines of a file&lt;br /&gt;
*tail - displays the bottom ten lines of a file&lt;br /&gt;
*more - displays file page by page&lt;br /&gt;
*less - similar to more but allow line by line manipulation&lt;br /&gt;
&lt;br /&gt;
==Key Terms== &lt;br /&gt;
 &lt;br /&gt;
The tab completion feature is something your really going to like, it makes life much easier for you, rather than typing every single command you type the first character or two and hit the tab key and it finishes it for you.&lt;br /&gt;
*~ metacharacter = represent user&#039;s home dir&lt;br /&gt;
*Absolute pathname - full path to a file or starting from /&lt;br /&gt;
*Binary data file - contains machine language (1 or 0)&lt;br /&gt;
*cat - display file contents&lt;br /&gt;
*cd - change directory&lt;br /&gt;
*Command mode - vi mode for text editing&lt;br /&gt;
*Concatenation - joining of text&lt;br /&gt;
*egrep = grep -E&lt;br /&gt;
*emacas = ediotr macros editor, think of as word pad&lt;br /&gt;
*fgrep = grep -F&lt;br /&gt;
*Gedit = GUI text editor&lt;br /&gt;
*Head - displays first 10 lines, can specify # of lines&lt;br /&gt;
*Insert mode - vi mode only allows text into file, no other options&lt;br /&gt;
*less command - display file pg. by pg. cursor navigation&lt;br /&gt;
*Linked file - file that represents another file&lt;br /&gt;
*ll command = ls -l&lt;br /&gt;
*more command = displays file pg. by pg. &amp;amp; line by line&lt;br /&gt;
*Named pipe file - temp connection that sends info from 1 cmd or process in memory to another, *can represent a file&lt;br /&gt;
*Nano editor - terminal text editor, uses ctrl keys for functions and navigation&lt;br /&gt;
*od command - displays file contents in octal format&lt;br /&gt;
*Parent dir - one dir level up&lt;br /&gt;
*Regular expressions - special metacharacters&lt;br /&gt;
*Relative pathname - path to a folder relative to the pwd &lt;br /&gt;
*Socket file = named pipe between 2 computers&lt;br /&gt;
*Special device file - files to identify hardware&lt;br /&gt;
*Strings command - search &amp;amp; display text in a bin file&lt;br /&gt;
*Tab-completion - press tab to complete path in the shell&lt;br /&gt;
*tac command = cat backwards&lt;br /&gt;
*Tail cmd = display last 10 lines&lt;br /&gt;
*Text tools = program to create, modify, &amp;amp; search txt files&lt;br /&gt;
*Wildcard metacharacters = used to match certain characters &lt;br /&gt;
&lt;br /&gt;
==Key Commands==&lt;br /&gt;
&lt;br /&gt;
We have some of the key commands listed alphabetically here but the cat command   is much like the tac command  where cat is used to display the entire contents of a text file the tac command  begins with the last line of a file and ends with the the first line of the file. (Just like the word cat backwards is tac)&lt;br /&gt;
 	The &amp;quot; global regular expression print&amp;quot; or grep command searches files for patterns of characters using regular expressions.  The egrep &amp;amp; fgrep   are other variants of grep that we will talk about later.&lt;br /&gt;
	The print working directory is a useful command to see where you are in a current directory in the tree. &lt;br /&gt;
	And ls command is another useful used for listing files in a given directory.&lt;br /&gt;
	&lt;br /&gt;
*cat  &lt;br /&gt;
*cd (change directory) &lt;br /&gt;
*egrep &lt;br /&gt;
*grep &lt;br /&gt;
*file &lt;br /&gt;
*grep &lt;br /&gt;
*head &lt;br /&gt;
*less &lt;br /&gt;
*ls &lt;br /&gt;
*more &lt;br /&gt;
*pwd (print working directory) &lt;br /&gt;
*strings &lt;br /&gt;
*tac &lt;br /&gt;
*tail&lt;br /&gt;
==Regular Expressions==&lt;br /&gt;
===Search files for regular expressions using grep===&lt;br /&gt;
*grep allows you to search through a file for text argument. &lt;br /&gt;
 *grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts&lt;br /&gt;
*grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
*grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Commands to Display Contents of Binary Files===&lt;br /&gt;
*strings = searching binary file for text&lt;br /&gt;
*od = displays file in octal format&lt;br /&gt;
*od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
===Searching for Text within Files===&lt;br /&gt;
Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
&lt;br /&gt;
Regular expressions&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
&lt;br /&gt;
Regular expressions are interpreted by text tool program&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
&lt;br /&gt;
Regular expressions match charters within file&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters typically have different definitions than regular expressions&lt;br /&gt;
&lt;br /&gt;
metacharacters&lt;br /&gt;
&lt;br /&gt;
There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ===Emacs===&lt;br /&gt;
 Not installed by default in Fedora 13.&lt;br /&gt;
&lt;br /&gt;
 Can run in a GUI environment.&lt;br /&gt;
&lt;br /&gt;
 More GUI than vi.&lt;br /&gt;
&lt;br /&gt;
 Written in C and Emacs Lisp.&lt;br /&gt;
&lt;br /&gt;
 Licensed GNU GPL&lt;br /&gt;
&lt;br /&gt;
 Users can combine commands into macros to automate task.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
*Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
*Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
*ls - view file names and many options to modify view&lt;br /&gt;
*Wildcard metacharacters help to select multiple files&lt;br /&gt;
*Regular expression metacharacters are used in many ways.&lt;br /&gt;
*Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
*vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5095</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5095"/>
		<updated>2012-01-30T15:43:44Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Search files for regular expressions using grep */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
*Comparison of Windows v. Linux filesystems�&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
===Types of files===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
==Links==&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
pwd - Show current directory&lt;br /&gt;
&lt;br /&gt;
pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
listing including file permissions, ownership and date/time stamp.&lt;br /&gt;
&lt;br /&gt;
Executable files: Green&lt;br /&gt;
&lt;br /&gt;
Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
Directory: Blue&lt;br /&gt;
&lt;br /&gt;
Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
&lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
==Display contents of files==&lt;br /&gt;
*vi - editing a file&lt;br /&gt;
*emas - alternative to vi &lt;br /&gt;
*cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
*tac - reverse concatenation - types file in reverse&lt;br /&gt;
*head - displays the top ten lines of a file&lt;br /&gt;
*tail - displays the bottom ten lines of a file&lt;br /&gt;
*more - displays file page by page&lt;br /&gt;
*less - similar to more but allow line by line manipulation&lt;br /&gt;
&lt;br /&gt;
==Key Terms== &lt;br /&gt;
 &lt;br /&gt;
The tab completion feature is something your really going to like, it makes life much easier for you, rather than typing every single command you type the first character or two and hit the tab key and it finishes it for you.&lt;br /&gt;
*~ metacharacter = represent user&#039;s home dir&lt;br /&gt;
*Absolute pathname - full path to a file or starting from /&lt;br /&gt;
*Binary data file - contains machine language (1 or 0)&lt;br /&gt;
*cat - display file contents&lt;br /&gt;
*cd - change directory&lt;br /&gt;
*Command mode - vi mode for text editing&lt;br /&gt;
*Concatenation - joining of text&lt;br /&gt;
*egrep = grep -E&lt;br /&gt;
*emacas = ediotr macros editor, think of as word pad&lt;br /&gt;
*fgrep = grep -F&lt;br /&gt;
*Gedit = GUI text editor&lt;br /&gt;
*Head - displays first 10 lines, can specify # of lines&lt;br /&gt;
*Insert mode - vi mode only allows text into file, no other options&lt;br /&gt;
*less command - display file pg. by pg. cursor navigation&lt;br /&gt;
*Linked file - file that represents another file&lt;br /&gt;
*ll command = ls -l&lt;br /&gt;
*more command = displays file pg. by pg. &amp;amp; line by line&lt;br /&gt;
*Named pipe file - temp connection that sends info from 1 cmd or process in memory to another, *can represent a file&lt;br /&gt;
*Nano editor - terminal text editor, uses ctrl keys for functions and navigation&lt;br /&gt;
*od command - displays file contents in octal format&lt;br /&gt;
*Parent dir - one dir level up&lt;br /&gt;
*Regular expressions - special metacharacters&lt;br /&gt;
*Relative pathname - path to a folder relative to the pwd &lt;br /&gt;
*Socket file = named pipe between 2 computers&lt;br /&gt;
*Special device file - files to identify hardware&lt;br /&gt;
*Strings command - search &amp;amp; display text in a bin file&lt;br /&gt;
*Tab-completion - press tab to complete path in the shell&lt;br /&gt;
*tac command = cat backwards&lt;br /&gt;
*Tail cmd = display last 10 lines&lt;br /&gt;
*Text tools = program to create, modify, &amp;amp; search txt files&lt;br /&gt;
*Wildcard metacharacters = used to match certain characters &lt;br /&gt;
&lt;br /&gt;
==Key Commands==&lt;br /&gt;
&lt;br /&gt;
We have some of the key commands listed alphabetically here but the cat command   is much like the tac command  where cat is used to display the entire contents of a text file the tac command  begins with the last line of a file and ends with the the first line of the file. (Just like the word cat backwards is tac)&lt;br /&gt;
 	The &amp;quot; global regular expression print&amp;quot; or grep command searches files for patterns of characters using regular expressions.  The egrep &amp;amp; fgrep   are other variants of grep that we will talk about later.&lt;br /&gt;
	The print working directory is a useful command to see where you are in a current directory in the tree. &lt;br /&gt;
	And ls command is another useful used for listing files in a given directory.&lt;br /&gt;
	&lt;br /&gt;
*cat  &lt;br /&gt;
*cd (change directory) &lt;br /&gt;
*egrep &lt;br /&gt;
*grep &lt;br /&gt;
*file &lt;br /&gt;
*grep &lt;br /&gt;
*head &lt;br /&gt;
*less &lt;br /&gt;
*ls &lt;br /&gt;
*more &lt;br /&gt;
*pwd (print working directory) &lt;br /&gt;
*strings &lt;br /&gt;
*tac &lt;br /&gt;
*tail&lt;br /&gt;
==Regular Expressions==&lt;br /&gt;
===Search files for regular expressions using grep===&lt;br /&gt;
*grep allows you to search through a file for text argument. &lt;br /&gt;
 *grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts&lt;br /&gt;
*grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
*grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Commands to Display Contents of Binary Files===&lt;br /&gt;
*strings = searching binary file for text&lt;br /&gt;
*od = displays file in octal format&lt;br /&gt;
*od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
===Searching for Text within Files===&lt;br /&gt;
Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
&lt;br /&gt;
Regular expressions&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
&lt;br /&gt;
Regular expressions are interpreted by text tool program&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
&lt;br /&gt;
Regular expressions match charters within file&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters typically have different definitions than regular expressions&lt;br /&gt;
&lt;br /&gt;
metacharacters&lt;br /&gt;
&lt;br /&gt;
There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ===Emacs===&lt;br /&gt;
 Not installed by default in Fedora 13.&lt;br /&gt;
&lt;br /&gt;
 Can run in a GUI environment.&lt;br /&gt;
&lt;br /&gt;
 More GUI than vi.&lt;br /&gt;
&lt;br /&gt;
 Written in C and Emacs Lisp.&lt;br /&gt;
&lt;br /&gt;
 Licensed GNU GPL&lt;br /&gt;
&lt;br /&gt;
 Users can combine commands into macros to automate task.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
*Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
*Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
*ls - view file names and many options to modify view&lt;br /&gt;
*Wildcard metacharacters help to select multiple files&lt;br /&gt;
*Regular expression metacharacters are used in many ways.&lt;br /&gt;
*Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
*vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5094</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5094"/>
		<updated>2012-01-30T15:40:29Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
*Comparison of Windows v. Linux filesystems�&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
===Types of files===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
==Links==&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
pwd - Show current directory&lt;br /&gt;
&lt;br /&gt;
pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
listing including file permissions, ownership and date/time stamp.&lt;br /&gt;
&lt;br /&gt;
Executable files: Green&lt;br /&gt;
&lt;br /&gt;
Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
Directory: Blue&lt;br /&gt;
&lt;br /&gt;
Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
&lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
==Display contents of files==&lt;br /&gt;
*vi - editing a file&lt;br /&gt;
*emas - alternative to vi &lt;br /&gt;
*cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
*tac - reverse concatenation - types file in reverse&lt;br /&gt;
*head - displays the top ten lines of a file&lt;br /&gt;
*tail - displays the bottom ten lines of a file&lt;br /&gt;
*more - displays file page by page&lt;br /&gt;
*less - similar to more but allow line by line manipulation&lt;br /&gt;
&lt;br /&gt;
==Key Terms== &lt;br /&gt;
 &lt;br /&gt;
The tab completion feature is something your really going to like, it makes life much easier for you, rather than typing every single command you type the first character or two and hit the tab key and it finishes it for you.&lt;br /&gt;
*~ metacharacter = represent user&#039;s home dir&lt;br /&gt;
*Absolute pathname - full path to a file or starting from /&lt;br /&gt;
*Binary data file - contains machine language (1 or 0)&lt;br /&gt;
*cat - display file contents&lt;br /&gt;
*cd - change directory&lt;br /&gt;
*Command mode - vi mode for text editing&lt;br /&gt;
*Concatenation - joining of text&lt;br /&gt;
*egrep = grep -E&lt;br /&gt;
*emacas = ediotr macros editor, think of as word pad&lt;br /&gt;
*fgrep = grep -F&lt;br /&gt;
*Gedit = GUI text editor&lt;br /&gt;
*Head - displays first 10 lines, can specify # of lines&lt;br /&gt;
*Insert mode - vi mode only allows text into file, no other options&lt;br /&gt;
*less command - display file pg. by pg. cursor navigation&lt;br /&gt;
*Linked file - file that represents another file&lt;br /&gt;
*ll command = ls -l&lt;br /&gt;
*more command = displays file pg. by pg. &amp;amp; line by line&lt;br /&gt;
*Named pipe file - temp connection that sends info from 1 cmd or process in memory to another, *can represent a file&lt;br /&gt;
*Nano editor - terminal text editor, uses ctrl keys for functions and navigation&lt;br /&gt;
*od command - displays file contents in octal format&lt;br /&gt;
*Parent dir - one dir level up&lt;br /&gt;
*Regular expressions - special metacharacters&lt;br /&gt;
*Relative pathname - path to a folder relative to the pwd &lt;br /&gt;
*Socket file = named pipe between 2 computers&lt;br /&gt;
*Special device file - files to identify hardware&lt;br /&gt;
*Strings command - search &amp;amp; display text in a bin file&lt;br /&gt;
*Tab-completion - press tab to complete path in the shell&lt;br /&gt;
*tac command = cat backwards&lt;br /&gt;
*Tail cmd = display last 10 lines&lt;br /&gt;
*Text tools = program to create, modify, &amp;amp; search txt files&lt;br /&gt;
*Wildcard metacharacters = used to match certain characters &lt;br /&gt;
&lt;br /&gt;
==Key Commands==&lt;br /&gt;
&lt;br /&gt;
We have some of the key commands listed alphabetically here but the cat command   is much like the tac command  where cat is used to display the entire contents of a text file the tac command  begins with the last line of a file and ends with the the first line of the file. (Just like the word cat backwards is tac)&lt;br /&gt;
 	The &amp;quot; global regular expression print&amp;quot; or grep command searches files for patterns of characters using regular expressions.  The egrep &amp;amp; fgrep   are other variants of grep that we will talk about later.&lt;br /&gt;
	The print working directory is a useful command to see where you are in a current directory in the tree. &lt;br /&gt;
	And ls command is another useful used for listing files in a given directory.&lt;br /&gt;
	&lt;br /&gt;
*cat  &lt;br /&gt;
*cd (change directory) &lt;br /&gt;
*egrep &lt;br /&gt;
*grep &lt;br /&gt;
*file &lt;br /&gt;
*grep &lt;br /&gt;
*head &lt;br /&gt;
*less &lt;br /&gt;
*ls &lt;br /&gt;
*more &lt;br /&gt;
*pwd (print working directory) &lt;br /&gt;
*strings &lt;br /&gt;
*tac &lt;br /&gt;
*tail&lt;br /&gt;
==Regular Expressions==&lt;br /&gt;
===Search files for regular expressions using grep===&lt;br /&gt;
*grep allows you to search through a file for text argument. &lt;br /&gt;
 &lt;br /&gt;
*grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
*grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
*grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===Commands to Display Contents of Binary Files===&lt;br /&gt;
*strings = searching binary file for text&lt;br /&gt;
*od = displays file in octal format&lt;br /&gt;
*od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
===Searching for Text within Files===&lt;br /&gt;
Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
&lt;br /&gt;
Regular expressions&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
&lt;br /&gt;
Regular expressions are interpreted by text tool program&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
&lt;br /&gt;
Regular expressions match charters within file&lt;br /&gt;
&lt;br /&gt;
Wildcard metacharacters typically have different definitions than regular expressions&lt;br /&gt;
&lt;br /&gt;
metacharacters&lt;br /&gt;
&lt;br /&gt;
There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ===Emacs===&lt;br /&gt;
 Not installed by default in Fedora 13.&lt;br /&gt;
&lt;br /&gt;
 Can run in a GUI environment.&lt;br /&gt;
&lt;br /&gt;
 More GUI than vi.&lt;br /&gt;
&lt;br /&gt;
 Written in C and Emacs Lisp.&lt;br /&gt;
&lt;br /&gt;
 Licensed GNU GPL&lt;br /&gt;
&lt;br /&gt;
 Users can combine commands into macros to automate task.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
*Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
*Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
*ls - view file names and many options to modify view&lt;br /&gt;
*Wildcard metacharacters help to select multiple files&lt;br /&gt;
*Regular expression metacharacters are used in many ways.&lt;br /&gt;
*Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
*vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5093</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5093"/>
		<updated>2012-01-30T02:07:29Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==CNT-2311-Chapter 3==&lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
&lt;br /&gt;
==Objectives==&lt;br /&gt;
*Comparison of Windows and Linux filesystems&lt;br /&gt;
*Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
*Types of files&lt;br /&gt;
*View filenames and file types&lt;br /&gt;
*Use shell wildcards&lt;br /&gt;
*Display contents of files&lt;br /&gt;
*Search files for regular expressions using grep&lt;br /&gt;
*Use vi to modify text files&lt;br /&gt;
*Alternatives to vi&lt;br /&gt;
*File Hierarchy&lt;br /&gt;
*Comparison of Windows v. Linux filesystems�&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
&lt;br /&gt;
start in home dir&lt;br /&gt;
&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
&lt;br /&gt;
present dir = pwd&lt;br /&gt;
&lt;br /&gt;
/home/randy/&lt;br /&gt;
&lt;br /&gt;
change dir = cd&lt;br /&gt;
&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
&lt;br /&gt;
tab-completion!&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
===Types of files===&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
&lt;br /&gt;
Directory = still just a file&lt;br /&gt;
 &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
&lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
==Links==&lt;br /&gt;
*http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
*http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
*http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
&lt;br /&gt;
==Commands to view filenames and file types==&lt;br /&gt;
pwd - Show current directory&lt;br /&gt;
&lt;br /&gt;
pwd - /home/randy&lt;br /&gt;
&lt;br /&gt;
ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
&lt;br /&gt;
listing including file permissions, ownership and date/time stamp.&lt;br /&gt;
&lt;br /&gt;
Executable files: Green&lt;br /&gt;
&lt;br /&gt;
Normal file : Normal&lt;br /&gt;
&lt;br /&gt;
Directory: Blue&lt;br /&gt;
&lt;br /&gt;
Symbolic link : Cyan&lt;br /&gt;
&lt;br /&gt;
Pipe: Yellow&lt;br /&gt;
&lt;br /&gt;
Socket: Magenta&lt;br /&gt;
&lt;br /&gt;
Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
&lt;br /&gt;
Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
&lt;br /&gt;
Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
&lt;br /&gt;
Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
&lt;br /&gt;
===View filenames and file types===&lt;br /&gt;
&lt;br /&gt;
* ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
&lt;br /&gt;
*@ = linked file&lt;br /&gt;
&lt;br /&gt;
*= exe&lt;br /&gt;
&lt;br /&gt;
*/ = subdirectory&lt;br /&gt;
&lt;br /&gt;
*= is a socket&lt;br /&gt;
&lt;br /&gt;
*| = named pipe&lt;br /&gt;
&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ls -l = ls long listing&lt;br /&gt;
&lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
*d = dir&lt;br /&gt;
*L = linked&lt;br /&gt;
*b &amp;amp; c = special device files&lt;br /&gt;
*n = named pipe&lt;br /&gt;
*s = socket&lt;br /&gt;
*- = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
Display contents of files &lt;br /&gt;
 vi - editing a file&lt;br /&gt;
 &lt;br /&gt;
emas - alternative to vi &lt;br /&gt;
 &lt;br /&gt;
cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
 &lt;br /&gt;
tac - reverse concatenation - types file in reverse&lt;br /&gt;
 &lt;br /&gt;
head - displays the top ten lines of a file&lt;br /&gt;
 &lt;br /&gt;
tail - displays the bottom ten lines of a file&lt;br /&gt;
 &lt;br /&gt;
more - displays file page by page&lt;br /&gt;
 &lt;br /&gt;
less - similar to more but allow line by line manipulation&lt;br /&gt;
Key Terms &lt;br /&gt;
~ metacharacter&lt;br /&gt;
absolute pathname&lt;br /&gt;
binary data file&lt;br /&gt;
command mode&lt;br /&gt;
concantenation&lt;br /&gt;
directory&lt;br /&gt;
Emacs (Editor MACroS) editor&lt;br /&gt;
executable program&lt;br /&gt;
filename&lt;br /&gt;
filename extension&lt;br /&gt;
gedit editor&lt;br /&gt;
home directory&lt;br /&gt;
insert mode&lt;br /&gt;
linked file&lt;br /&gt;
log file&lt;br /&gt;
 &lt;br /&gt;
named pipe file&lt;br /&gt;
nano editor&lt;br /&gt;
parent directory&lt;br /&gt;
regexp&lt;br /&gt;
regular expressions&lt;br /&gt;
relative pathname&lt;br /&gt;
socket file&lt;br /&gt;
special device file&lt;br /&gt;
subdirectory&lt;br /&gt;
Tab-completion feature&lt;br /&gt;
text file&lt;br /&gt;
text tools&lt;br /&gt;
vi editor&lt;br /&gt;
wildcard metacharacters&lt;br /&gt;
 &lt;br /&gt;
 � �   Key � �Commands� � &lt;br /&gt;
 &lt;br /&gt;
cat  &lt;br /&gt;
cd (change directory) &lt;br /&gt;
egrep &lt;br /&gt;
fgrep &lt;br /&gt;
file &lt;br /&gt;
grep &lt;br /&gt;
head &lt;br /&gt;
less &lt;br /&gt;
ls &lt;br /&gt;
more &lt;br /&gt;
pwd (print working directory) &lt;br /&gt;
strings &lt;br /&gt;
tac &lt;br /&gt;
tail&lt;br /&gt;
Search files for regular expressions using grep&lt;br /&gt;
grep allows you to search through a file for text argument. &lt;br /&gt;
 &lt;br /&gt;
grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Regular Expressions&lt;br /&gt;
Commands to Display Contents of Binary Files&lt;br /&gt;
 strings = searching binary file for text&lt;br /&gt;
 od = displays file in octal format&lt;br /&gt;
 od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
Searching for Text within Files&lt;br /&gt;
Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
Regular expressions&lt;br /&gt;
Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
Regular expressions are interpreted by text tool program&lt;br /&gt;
Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
Regular expressions match charters within file&lt;br /&gt;
Wildcard metacharacters typically have different definitions than regular expressions metacharacters&lt;br /&gt;
There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Emacs&lt;br /&gt;
 Not installed by default in Fedora 13.&lt;br /&gt;
 Can run in a GUI environment.&lt;br /&gt;
 More GUI than vi.&lt;br /&gt;
 Written in C and Emacs Lisp.&lt;br /&gt;
 Licensed GNU GPL&lt;br /&gt;
 Users can combine commands into macros&lt;br /&gt;
    to automate task.&lt;br /&gt;
&lt;br /&gt;
Summary &lt;br /&gt;
Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
ls - view file names and many options to modify view&lt;br /&gt;
Wildcard metacharacters help to select multiple files&lt;br /&gt;
Regular expression metacharacters are used in many ways.&lt;br /&gt;
Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
*File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
&lt;br /&gt;
*Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
*vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
*VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
*Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
*Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
*Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
*15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
*50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_CNT-2311&amp;diff=5092</id>
		<title>Franske CNT-2311</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_CNT-2311&amp;diff=5092"/>
		<updated>2012-01-29T19:59:24Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Chapter Study Guides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the homepage for the CNT-2311 classes taught by Dr. Ben Franske.&lt;br /&gt;
&lt;br /&gt;
=Current Course Materials=&lt;br /&gt;
&lt;br /&gt;
== General Course Information ==&lt;br /&gt;
* [https://docs.google.com/a/ihcnt.net/spreadsheet/viewform?formkey=dE5lWno3NEQybjdLOW52OW5aNWpfdnc6MQ First Day Sign In Form]&lt;br /&gt;
* [[Franske CNT-2311 Syllabus|Course Syllabus]]&lt;br /&gt;
* [[Franske CNT-2311 SP12 Schedule|Spring 2012 Course Schedule]]&lt;br /&gt;
* [[Franske CNT-2311 SP12 Labs|Lab List]]&lt;br /&gt;
* [[Franske Lab Report Format|Lab Report Format]]&lt;br /&gt;
&lt;br /&gt;
== Chapter Study Guides ==&lt;br /&gt;
Put a link to the study guide you create for your chapter here. &amp;lt;br&amp;gt;&lt;br /&gt;
[[Chapter 2 Study Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Chapter 3 Study Guide]]&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* [[Writing Moodle Questions]]&lt;br /&gt;
* [[Editing Moodle Questions]]&lt;br /&gt;
&lt;br /&gt;
=== Software ===&lt;br /&gt;
* [http://www.virtualbox.org Virtualbox]&lt;br /&gt;
** [[VirtualBox Startup Script]]&lt;br /&gt;
&lt;br /&gt;
==== Major Linux Distributions ====&lt;br /&gt;
* [http://www.debian.org Debian]&lt;br /&gt;
** [http://www.ubuntu.com Ubuntu]&lt;br /&gt;
* [http://www.redhat.com Redhat Enterprise Linux (RHEL)]&lt;br /&gt;
** [http://centos.org CentOS]&lt;br /&gt;
** [http://fedoraproject.org Fedora]&lt;br /&gt;
*** Old versions of Fedora are difficult to find on the site the version that the book uses is [http://mirror.rit.edu/fedora/linux/releases/13/Fedora/i386/iso/Fedora-13-i386-DVD.iso Fedora Core 13]&lt;br /&gt;
* [http://www.gentoo.org Gentoo]&lt;br /&gt;
* [http://www.opensuse.org OpenSUSE (Novell)]&lt;br /&gt;
&lt;br /&gt;
=== General Help ===&lt;br /&gt;
==== Online Linux Tutuorials ====&lt;br /&gt;
* [http://www.linux.org/lessons/beginner Beginning Linux from Linux.org]&lt;br /&gt;
* [https://help.ubuntu.com/community/PostfixBasicSetupHowto Postfix Basic Setup]&lt;br /&gt;
* [http://lartc.org Linux Advanced Routing &amp;amp; Traffic Control (Advanced Networking)]&lt;br /&gt;
&lt;br /&gt;
=== Command Guides ===&lt;br /&gt;
* [http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf Inroduction to basic BASH shell commands]&lt;br /&gt;
* [http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%20Manual.pdf The One Page Linux Manual]&lt;br /&gt;
&lt;br /&gt;
=== Specific Topic Help ===&lt;br /&gt;
==== GRUB2 ====&lt;br /&gt;
* [https://help.ubuntu.com/community/Grub2 Ubuntu Community Documentation - GRUB2]&lt;br /&gt;
* [http://www.dedoimedo.com/computers/grub-2.html GRUB2 Bootloader Full Tutorial]&lt;br /&gt;
* [http://ubuntuforums.org/showthread.php?t=1195275 The GRUB2 Guide]&lt;br /&gt;
&lt;br /&gt;
==== Runlevels ====&lt;br /&gt;
* [http://www.ibm.com/developerworks/linux/library/l-lpic1-v3-101-3/?ca=drs- IBM Learn Linux, 101: Runlevels, shutdown, and reboot]&lt;br /&gt;
* [http://www.linux.com/news/enterprise/systems-management/8116-an-introduction-to-services-runlevels-and-rcd-scripts An  introduction to services, runlevels, and rc.d scripts]&lt;br /&gt;
&lt;br /&gt;
==== Partitioning, Formatting and Mounting====&lt;br /&gt;
* [http://tldp.org/HOWTO/Partition/ Linux Partition HOWTO]&lt;br /&gt;
* [http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/Introduction_To_System_Administration/s2-storage-fs-mounting.html RedHat Documentation Mount Points]&lt;br /&gt;
* [http://docs.fedoraproject.org/en-US/Fedora/15/html/Installation_Guide/ch-partitions-x86.html Fedora Documentation: An Introduction to Disk Partitions]&lt;br /&gt;
&lt;br /&gt;
==== SSH ====&lt;br /&gt;
* [http://macnugget.org/projects/publickeys/ David McNett: using ssh public key authentication]&lt;br /&gt;
* [https://help.ubuntu.com/community/SSH/OpenSSH/Keys Ubuntu SSH Keys Documentation]&lt;br /&gt;
* [http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks Linux Tutorial Blog: SSH and SCP: Howto, tips &amp;amp; tricks]&lt;br /&gt;
&lt;br /&gt;
==== Network Configuration ====&lt;br /&gt;
* [http://www.debian-administration.org/articles/254 Debian-style Network Configuration] (Ubuntu Server uses the same style)&lt;br /&gt;
* [http://docs.fedoraproject.org/en-US/Fedora/15/html/Deployment_Guide/s1-networkscripts-interfaces.html Fedora Nekwork Interface Configuration Files] &lt;br /&gt;
&lt;br /&gt;
==== Regular Expressions, Grep and SED ====&lt;br /&gt;
* [http://www.zytrax.com/tech/web/regex.htm Regular Expressions - A Simple User Guide]&lt;br /&gt;
* [http://linuxreviews.org/beginner/tao_of_regular_expressions Tao of Regular Expressions]&lt;br /&gt;
&lt;br /&gt;
=Archived Course Materials=&lt;br /&gt;
== General Course Information ==&lt;br /&gt;
* [[Franske CNT-2311 Labs|Lab List]]&lt;br /&gt;
* [[Franske CNT-2311 SU11 Labs|Summer 2011 Lab List]]&lt;br /&gt;
&lt;br /&gt;
== Chapter Project Notes ==&lt;br /&gt;
[[CNT-2311-Chapter 2 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 3 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 4 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 5 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 7 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 8 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 9 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 10 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
[http://wiki.ihcnt.net/w/Chapter_21_%26_24 CNT-2311-Chapter 21 &amp;amp; 24 Notes]&#039;&#039;&#039;&lt;br /&gt;
* [[Linux SSH and Samba Notes]]&lt;br /&gt;
* [[Linux Job Management Notes]]&lt;br /&gt;
&lt;br /&gt;
== Projects ==&lt;br /&gt;
&lt;br /&gt;
* [[Dual Booting Ubuntu and Windows 7]]&lt;br /&gt;
* [[GUID Partiton Table]]&lt;br /&gt;
* [[Linux VLAN Trunking]]&lt;br /&gt;
* [[Installing Webmin]]&lt;br /&gt;
* [[Nat Masquerading and Firewall]]&lt;br /&gt;
* [[Control Web Access With Squid]]&lt;br /&gt;
* [[Installing MyBB Forum]]&lt;br /&gt;
* [[openvpn]]&lt;br /&gt;
* [[Zoneminder]]&lt;br /&gt;
* [[Understanding Linux Permission Sets]]&lt;br /&gt;
* [[Franske CNT-2311 SP10 Commands|Spring 2010 Commands by Session]]&lt;br /&gt;
* [[Converting VMWare .vmdk To VirtualBox .vdi Using Qemu+ and VBoxManage]]&lt;br /&gt;
* [[Linux command guide]]&lt;br /&gt;
* [[Windows File Sharing and Printer Sharing with SAMBA]]&lt;br /&gt;
* [[How to Setup NAT]]&lt;br /&gt;
* [[Linux-command-list]]&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5091</id>
		<title>Chapter 3 Study Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Chapter_3_Study_Guide&amp;diff=5091"/>
		<updated>2012-01-29T19:57:57Z</updated>

		<summary type="html">&lt;p&gt;Tryder: Created page with &amp;quot;CNT-2311-Chapter 3  Exploring Linux Filesystems Objectives Comparison of Windows and Linux filesystems Navigate the directory structure using relative and absolute pathnames Typ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CNT-2311-Chapter 3 &lt;br /&gt;
Exploring Linux Filesystems&lt;br /&gt;
Objectives&lt;br /&gt;
Comparison of Windows and Linux filesystems&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames&lt;br /&gt;
Types of files&lt;br /&gt;
View filenames and file types&lt;br /&gt;
Use shell wildcards&lt;br /&gt;
Display contents of files&lt;br /&gt;
Search files for regular expressions using grep&lt;br /&gt;
Use vi to modify text files&lt;br /&gt;
Alternatives to vi&lt;br /&gt;
File Hierarchy&lt;br /&gt;
Comparison of Windows v. Linux filesystems�&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Navigate the directory structure using relative and absolute pathnames &lt;br /&gt;
start in home dir&lt;br /&gt;
 use ~ to reference home directories&lt;br /&gt;
present dir = pwd&lt;br /&gt;
/home/randy/&lt;br /&gt;
change dir = cd&lt;br /&gt;
cd /etc - change directory to /etc&lt;br /&gt;
relative path name = path to the file in relation to the current working directory&lt;br /&gt;
&amp;quot;..&amp;quot; references the next higher up dir&lt;br /&gt;
tab-completion!&lt;br /&gt;
 &lt;br /&gt;
Types of files&lt;br /&gt;
Text, Binary, Executable&lt;br /&gt;
Directory = still just a file &lt;br /&gt;
Linked = reference other files, shortcut &lt;br /&gt;
Special device files = reference hard disks or ports, contained in /dev&lt;br /&gt;
Named pipes = communication between process in memory&lt;br /&gt;
Created using mkfifo or mknod&lt;br /&gt;
One process is a reader other is a writer&lt;br /&gt;
Sockets = named pipes between remote computers&lt;br /&gt;
Filenames&lt;br /&gt;
Filename facts&lt;br /&gt;
255 max characters&lt;br /&gt;
alphanumeric, _ -  . &lt;br /&gt;
 may or may not have extension to denote type&lt;br /&gt;
Lots of different extensions &lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions &lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm &lt;br /&gt;
http://filext.com/alphalist.php?extstart=%5EL  (not limited to linux) &lt;br /&gt;
View filenames and file types&lt;br /&gt;
pwd - Show current directory&lt;br /&gt;
pwd - /home/randy&lt;br /&gt;
ls -ltr   - Show listing and give color codes to information&lt;br /&gt;
listing including file permissions, ownership and date/time stamp.&lt;br /&gt;
Executable files: Green&lt;br /&gt;
Normal file : Normal&lt;br /&gt;
Directory: Blue&lt;br /&gt;
Symbolic link : Cyan&lt;br /&gt;
Pipe: Yellow&lt;br /&gt;
Socket: Magenta&lt;br /&gt;
Block device driver: Bold yellow foreground, with black background&lt;br /&gt;
Character device driver: Bold yellow foreground, with black background&lt;br /&gt;
Orphaned syminks : Blinking Bold white with red background&lt;br /&gt;
Missing links ( - and the files they point to) : Blinking Bold white with red background&lt;br /&gt;
Archives or compressed : Red (.tar, .gz, .zip, .rpm&lt;br /&gt;
Image files : Magenta (.jpg, gif, bmp, png, tif)&lt;br /&gt;
View filenames and file types&lt;br /&gt;
 ls -F = gives file type, special character is listed on the left of the name   = Metacharacters=&lt;br /&gt;
@ = linked file&lt;br /&gt;
= exe&lt;br /&gt;
/ = subdirectory&lt;br /&gt;
= is a socket&lt;br /&gt;
| = named pipe&lt;br /&gt;
Other files do not have special character appended to them - they can be anything not listed above&lt;br /&gt;
&lt;br /&gt;
 ls -l = ls long listing&lt;br /&gt;
When listing files/directories a special character on the left indicates what type of file it is&lt;br /&gt;
 d = dir&lt;br /&gt;
L = linked&lt;br /&gt;
 b &amp;amp; c = special device files&lt;br /&gt;
 n = named pipe&lt;br /&gt;
 s = socket&lt;br /&gt;
 - = other - txt, bin&lt;br /&gt;
&lt;br /&gt;
Display contents of files &lt;br /&gt;
 vi - editing a file&lt;br /&gt;
 &lt;br /&gt;
emas - alternative to vi &lt;br /&gt;
 &lt;br /&gt;
cat - concatenation - similar to &amp;quot;type&amp;quot; in DOS/Windows. &lt;br /&gt;
 &lt;br /&gt;
tac - reverse concatenation - types file in reverse&lt;br /&gt;
 &lt;br /&gt;
head - displays the top ten lines of a file&lt;br /&gt;
 &lt;br /&gt;
tail - displays the bottom ten lines of a file&lt;br /&gt;
 &lt;br /&gt;
more - displays file page by page&lt;br /&gt;
 &lt;br /&gt;
less - similar to more but allow line by line manipulation&lt;br /&gt;
Key Terms &lt;br /&gt;
~ metacharacter&lt;br /&gt;
absolute pathname&lt;br /&gt;
binary data file&lt;br /&gt;
command mode&lt;br /&gt;
concantenation&lt;br /&gt;
directory&lt;br /&gt;
Emacs (Editor MACroS) editor&lt;br /&gt;
executable program&lt;br /&gt;
filename&lt;br /&gt;
filename extension&lt;br /&gt;
gedit editor&lt;br /&gt;
home directory&lt;br /&gt;
insert mode&lt;br /&gt;
linked file&lt;br /&gt;
log file&lt;br /&gt;
 &lt;br /&gt;
named pipe file&lt;br /&gt;
nano editor&lt;br /&gt;
parent directory&lt;br /&gt;
regexp&lt;br /&gt;
regular expressions&lt;br /&gt;
relative pathname&lt;br /&gt;
socket file&lt;br /&gt;
special device file&lt;br /&gt;
subdirectory&lt;br /&gt;
Tab-completion feature&lt;br /&gt;
text file&lt;br /&gt;
text tools&lt;br /&gt;
vi editor&lt;br /&gt;
wildcard metacharacters&lt;br /&gt;
 &lt;br /&gt;
 � �   Key � �Commands� � &lt;br /&gt;
 &lt;br /&gt;
cat  &lt;br /&gt;
cd (change directory) &lt;br /&gt;
egrep &lt;br /&gt;
fgrep &lt;br /&gt;
file &lt;br /&gt;
grep &lt;br /&gt;
head &lt;br /&gt;
less &lt;br /&gt;
ls &lt;br /&gt;
more &lt;br /&gt;
pwd (print working directory) &lt;br /&gt;
strings &lt;br /&gt;
tac &lt;br /&gt;
tail&lt;br /&gt;
Search files for regular expressions using grep&lt;br /&gt;
grep allows you to search through a file for text argument. &lt;br /&gt;
 &lt;br /&gt;
grep &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
grep -v &amp;quot;localhost&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that DONT include localhost in the file /etc/hosts&lt;br /&gt;
&lt;br /&gt;
grep -l &amp;quot;LOCALHOST&amp;quot; /etc/hosts&lt;br /&gt;
    return lines that include localhost in the file /etc/hosts that is not case-sensitive &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Regular Expressions&lt;br /&gt;
Commands to Display Contents of Binary Files&lt;br /&gt;
 strings = searching binary file for text&lt;br /&gt;
 od = displays file in octal format&lt;br /&gt;
 od -x = displays contents in hex&lt;br /&gt;
&lt;br /&gt;
Searching for Text within Files&lt;br /&gt;
Tools: grep, awk, sed, vi, emacs, ex, ed, C++, PERL, tcl&lt;br /&gt;
Regular expressions&lt;br /&gt;
Wildcard metacharacters are interpreted by the shell&lt;br /&gt;
Regular expressions are interpreted by text tool program&lt;br /&gt;
Wildcard metacharacters match characters in file &amp;amp; dir names&lt;br /&gt;
Regular expressions match charters within file&lt;br /&gt;
Wildcard metacharacters typically have different definitions than regular expressions metacharacters&lt;br /&gt;
There are more regular expression metacharacters than wildcard metacharacters&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Emacs&lt;br /&gt;
 Not installed by default in Fedora 13.&lt;br /&gt;
 Can run in a GUI environment.&lt;br /&gt;
 More GUI than vi.&lt;br /&gt;
 Written in C and Emacs Lisp.&lt;br /&gt;
 Licensed GNU GPL&lt;br /&gt;
 Users can combine commands into macros&lt;br /&gt;
    to automate task.&lt;br /&gt;
&lt;br /&gt;
Summary &lt;br /&gt;
Linux file system is a hierarchy,  series of directories &lt;br /&gt;
paths are absolute or relative&lt;br /&gt;
Many types of files - text, scripts, executable, dirs, linked, special device&lt;br /&gt;
ls - view file names and many options to modify view&lt;br /&gt;
Wildcard metacharacters help to select multiple files&lt;br /&gt;
Regular expression metacharacters are used in many ways.&lt;br /&gt;
Text files can be viewed differently with commands such as, head, tail, cat, tac, more and less.&lt;br /&gt;
vi is the most common text editor however GUI options exits  &lt;br /&gt;
&lt;br /&gt;
References&lt;br /&gt;
Anatomy of the Linux File System&lt;br /&gt;
http://www.ibm.com/developerworks/linux/library/l-linux-filesystem/&lt;br /&gt;
File extensions&lt;br /&gt;
http://learn.clemsonlinux.org/wiki/File_extensions&lt;br /&gt;
http://www.debianhelp.co.uk/fileext.htm&lt;br /&gt;
Linux/Unix/BSD Post-Exploitation Command List&lt;br /&gt;
https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&lt;br /&gt;
vi tutorial&lt;br /&gt;
http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html&lt;br /&gt;
VI Cheatsheet&lt;br /&gt;
 http://www.atmos.albany.edu/deas/atmclasses/atm350/vi_cheat_sheet.pdf&lt;br /&gt;
Learning the vi and Vim Editors&lt;br /&gt;
http://www.amazon.com/Learning-Vim-Editors-Arnold-Robbins/dp/059652983X/ref=sr_1_1?s=books&amp;amp;ie=UTF8&amp;amp;qid=1326846342&amp;amp;sr=1-1 &lt;br /&gt;
Command Guides&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux_command_guide&lt;br /&gt;
http://wiki.ihcnt.net/w/Linux-command-list &lt;br /&gt;
 Emac Guide&lt;br /&gt;
http://sean.wenzel.net/docs/emacs/quick_reference/ &lt;br /&gt;
15 Practical examples of ls commands&lt;br /&gt;
http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/&lt;br /&gt;
50 Most Frequently Used UNIX / Linux Commands http://www.thegeekstuff.com/2010/11/50-linux-commands/ &lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Franske_CNT-2311&amp;diff=5090</id>
		<title>Franske CNT-2311</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Franske_CNT-2311&amp;diff=5090"/>
		<updated>2012-01-29T19:34:43Z</updated>

		<summary type="html">&lt;p&gt;Tryder: /* Chapter Study Guides */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the homepage for the CNT-2311 classes taught by Dr. Ben Franske.&lt;br /&gt;
&lt;br /&gt;
=Current Course Materials=&lt;br /&gt;
&lt;br /&gt;
== General Course Information ==&lt;br /&gt;
* [https://docs.google.com/a/ihcnt.net/spreadsheet/viewform?formkey=dE5lWno3NEQybjdLOW52OW5aNWpfdnc6MQ First Day Sign In Form]&lt;br /&gt;
* [[Franske CNT-2311 Syllabus|Course Syllabus]]&lt;br /&gt;
* [[Franske CNT-2311 SP12 Schedule|Spring 2012 Course Schedule]]&lt;br /&gt;
* [[Franske CNT-2311 SP12 Labs|Lab List]]&lt;br /&gt;
* [[Franske Lab Report Format|Lab Report Format]]&lt;br /&gt;
&lt;br /&gt;
== Chapter Study Guides ==&lt;br /&gt;
Put a link to the study guide you create for your chapter here. &amp;lt;br&amp;gt;&lt;br /&gt;
[[Chapter 2 Study Guide]]&lt;br /&gt;
[[Chapter 3 Study Guide]]&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* [[Writing Moodle Questions]]&lt;br /&gt;
* [[Editing Moodle Questions]]&lt;br /&gt;
&lt;br /&gt;
=== Software ===&lt;br /&gt;
* [http://www.virtualbox.org Virtualbox]&lt;br /&gt;
** [[VirtualBox Startup Script]]&lt;br /&gt;
&lt;br /&gt;
==== Major Linux Distributions ====&lt;br /&gt;
* [http://www.debian.org Debian]&lt;br /&gt;
** [http://www.ubuntu.com Ubuntu]&lt;br /&gt;
* [http://www.redhat.com Redhat Enterprise Linux (RHEL)]&lt;br /&gt;
** [http://centos.org CentOS]&lt;br /&gt;
** [http://fedoraproject.org Fedora]&lt;br /&gt;
*** Old versions of Fedora are difficult to find on the site the version that the book uses is [http://mirror.rit.edu/fedora/linux/releases/13/Fedora/i386/iso/Fedora-13-i386-DVD.iso Fedora Core 13]&lt;br /&gt;
* [http://www.gentoo.org Gentoo]&lt;br /&gt;
* [http://www.opensuse.org OpenSUSE (Novell)]&lt;br /&gt;
&lt;br /&gt;
=== General Help ===&lt;br /&gt;
==== Online Linux Tutuorials ====&lt;br /&gt;
* [http://www.linux.org/lessons/beginner Beginning Linux from Linux.org]&lt;br /&gt;
* [https://help.ubuntu.com/community/PostfixBasicSetupHowto Postfix Basic Setup]&lt;br /&gt;
* [http://lartc.org Linux Advanced Routing &amp;amp; Traffic Control (Advanced Networking)]&lt;br /&gt;
&lt;br /&gt;
=== Command Guides ===&lt;br /&gt;
* [http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf Inroduction to basic BASH shell commands]&lt;br /&gt;
* [http://www.digilife.be/quickreferences/QRC/The%20One%20Page%20Linux%20Manual.pdf The One Page Linux Manual]&lt;br /&gt;
&lt;br /&gt;
=== Specific Topic Help ===&lt;br /&gt;
==== GRUB2 ====&lt;br /&gt;
* [https://help.ubuntu.com/community/Grub2 Ubuntu Community Documentation - GRUB2]&lt;br /&gt;
* [http://www.dedoimedo.com/computers/grub-2.html GRUB2 Bootloader Full Tutorial]&lt;br /&gt;
* [http://ubuntuforums.org/showthread.php?t=1195275 The GRUB2 Guide]&lt;br /&gt;
&lt;br /&gt;
==== Runlevels ====&lt;br /&gt;
* [http://www.ibm.com/developerworks/linux/library/l-lpic1-v3-101-3/?ca=drs- IBM Learn Linux, 101: Runlevels, shutdown, and reboot]&lt;br /&gt;
* [http://www.linux.com/news/enterprise/systems-management/8116-an-introduction-to-services-runlevels-and-rcd-scripts An  introduction to services, runlevels, and rc.d scripts]&lt;br /&gt;
&lt;br /&gt;
==== Partitioning, Formatting and Mounting====&lt;br /&gt;
* [http://tldp.org/HOWTO/Partition/ Linux Partition HOWTO]&lt;br /&gt;
* [http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/Introduction_To_System_Administration/s2-storage-fs-mounting.html RedHat Documentation Mount Points]&lt;br /&gt;
* [http://docs.fedoraproject.org/en-US/Fedora/15/html/Installation_Guide/ch-partitions-x86.html Fedora Documentation: An Introduction to Disk Partitions]&lt;br /&gt;
&lt;br /&gt;
==== SSH ====&lt;br /&gt;
* [http://macnugget.org/projects/publickeys/ David McNett: using ssh public key authentication]&lt;br /&gt;
* [https://help.ubuntu.com/community/SSH/OpenSSH/Keys Ubuntu SSH Keys Documentation]&lt;br /&gt;
* [http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks Linux Tutorial Blog: SSH and SCP: Howto, tips &amp;amp; tricks]&lt;br /&gt;
&lt;br /&gt;
==== Network Configuration ====&lt;br /&gt;
* [http://www.debian-administration.org/articles/254 Debian-style Network Configuration] (Ubuntu Server uses the same style)&lt;br /&gt;
* [http://docs.fedoraproject.org/en-US/Fedora/15/html/Deployment_Guide/s1-networkscripts-interfaces.html Fedora Nekwork Interface Configuration Files] &lt;br /&gt;
&lt;br /&gt;
==== Regular Expressions, Grep and SED ====&lt;br /&gt;
* [http://www.zytrax.com/tech/web/regex.htm Regular Expressions - A Simple User Guide]&lt;br /&gt;
* [http://linuxreviews.org/beginner/tao_of_regular_expressions Tao of Regular Expressions]&lt;br /&gt;
&lt;br /&gt;
=Archived Course Materials=&lt;br /&gt;
== General Course Information ==&lt;br /&gt;
* [[Franske CNT-2311 Labs|Lab List]]&lt;br /&gt;
* [[Franske CNT-2311 SU11 Labs|Summer 2011 Lab List]]&lt;br /&gt;
&lt;br /&gt;
== Chapter Project Notes ==&lt;br /&gt;
[[CNT-2311-Chapter 2 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 3 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 4 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 5 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 7 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 8 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 9 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
[[CNT-2311-Chapter 10 Notes]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
[http://wiki.ihcnt.net/w/Chapter_21_%26_24 CNT-2311-Chapter 21 &amp;amp; 24 Notes]&#039;&#039;&#039;&lt;br /&gt;
* [[Linux SSH and Samba Notes]]&lt;br /&gt;
* [[Linux Job Management Notes]]&lt;br /&gt;
&lt;br /&gt;
== Projects ==&lt;br /&gt;
&lt;br /&gt;
* [[Dual Booting Ubuntu and Windows 7]]&lt;br /&gt;
* [[GUID Partiton Table]]&lt;br /&gt;
* [[Linux VLAN Trunking]]&lt;br /&gt;
* [[Installing Webmin]]&lt;br /&gt;
* [[Nat Masquerading and Firewall]]&lt;br /&gt;
* [[Control Web Access With Squid]]&lt;br /&gt;
* [[Installing MyBB Forum]]&lt;br /&gt;
* [[openvpn]]&lt;br /&gt;
* [[Zoneminder]]&lt;br /&gt;
* [[Understanding Linux Permission Sets]]&lt;br /&gt;
* [[Franske CNT-2311 SP10 Commands|Spring 2010 Commands by Session]]&lt;br /&gt;
* [[Converting VMWare .vmdk To VirtualBox .vdi Using Qemu+ and VBoxManage]]&lt;br /&gt;
* [[Linux command guide]]&lt;br /&gt;
* [[Windows File Sharing and Printer Sharing with SAMBA]]&lt;br /&gt;
* [[How to Setup NAT]]&lt;br /&gt;
* [[Linux-command-list]]&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4994</id>
		<title>Asterisk Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4994"/>
		<updated>2011-12-19T19:39:41Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;What is Asterisk?&#039;&#039;&#039; ==&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
Astrerisk is free open source software that works as a call processor that can be customized.  It provides support for cards like T1 - it acts like a gateway, or you can employ a service (server to act as the card or gateway)   It has become much better over the last five years and has been aroud for 7 or 8 but was no very stable in beginning.  You will find it built into most open source services. Many small businesses use asterisk, it is  built into other products,  often the engine is asterisk.&lt;br /&gt;
You can get asterisk to work on windows but it is not designed for that. It was designed for Linux but runs on different operating systems like Mac OS X, Solaris, NetBSD, OpenBSD, FreeBSD and a for Microsoft Windows there is a port known as AsteriskWin32.  The 7900 series of cisco phones work well with asterisk. &lt;br /&gt;
&lt;br /&gt;
Here are some add-ons and things you can do with Asterisk:&lt;br /&gt;
 •Drivers for various VoIP protocols.&lt;br /&gt;
 •Drivers for PSTN interface cards and devices.&lt;br /&gt;
 •Routing and call handling for incoming calls.&lt;br /&gt;
 •Outbound call generation and routing.&lt;br /&gt;
 •Media management functions (record, play, generate tone, etc.).&lt;br /&gt;
 •Call detail recording for accounting and billing.&lt;br /&gt;
 •Transcoding (conversion from one media format to another).&lt;br /&gt;
 •Protocol conversion (conversion from one protocol to another).&lt;br /&gt;
 •Database integration for accessing information on relational databases.&lt;br /&gt;
 •Web services integration for accessing data using standard internet protocols.&lt;br /&gt;
 •LDAP integration for accessing corporate directory systems.&lt;br /&gt;
 •Single and mult-party call bridging.&lt;br /&gt;
 •Call recording and monitoring functions.&lt;br /&gt;
 •Integrated &amp;quot;Dialplan&amp;quot; scripting language for call processing.&lt;br /&gt;
 •External call management in any programming or scripting language through Asterisk Gateway Interface (AGI)&lt;br /&gt;
 •Event notification and CTI integration via the Asterisk Manager Interface (AMI).&lt;br /&gt;
 •Speech synthesis (aka &amp;quot;text-to-speech&amp;quot;) in various languages and dialects using third party engines.&lt;br /&gt;
 •Speech recognition in various languages using third party recognition engines.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;How to downlaod  and update Asterisk&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will be using Oracle&#039;s VirtualBox to download Asterisk to.  You will need to create a storage space on your D drive and make a new folder with your name and semester &amp;quot;Name-FA11&amp;quot; then close.&lt;br /&gt;
&lt;br /&gt;
Open up VirtualBox &#039;&#039;settings&#039;&#039; and under &#039;&#039;general&#039;&#039; in the default box find the folder you just made and click ok.  Your information will now be saved there.&lt;br /&gt;
&lt;br /&gt;
Create a new virtual machine by clicking on new machine under OS click on Linux, click &#039;&#039;next&#039;&#039;, under RAM use 768 , click &#039;&#039;next&#039;&#039;, create new hard disk, click next, VDI, next, Dynammically allocated, next location Astersiks server, default, &#039;&#039;next&#039;&#039;, then click &#039;&#039;create&#039;&#039;.  You should now see that your VM has been created.&lt;br /&gt;
&lt;br /&gt;
You will now nee to change the settings under the network by simply clicking on Network and under network click on adapter and on  attatched and change to bridged.&lt;br /&gt;
&lt;br /&gt;
**Next under storage CD/DVD Drive: click icon beside arrow change to choose a virtual disk CNT files under Linux then Ubuntu 10.10. asterisk tty1&lt;br /&gt;
You will get a couple of warnings, click on through them.  Under language choose your language (English is the only one Franske will have support for) US, enter, under keyboard click no, enter, enter, it will the start to load.  Under hostname use Asterisk, enter, yes, enter, enter, under partition move to yes click &#039;&#039;continue&#039;&#039;. Make changes to disks move to yes, &#039;&#039;continue&#039;&#039;.  The base system will now be installed.  enter your name in lowercase, password cisco, cisco again yes, no for encrypting and down arrow for no http proxy &#039;&#039;continue&#039;&#039; and it will continue installing choose no automatic updates.  Under software selection leave them all blank by using tab key to tab through to select continue after installation select yes to install bootloader.  Finish by clicking on devices and click on CD/DVD and make sure there is no check mark beside ubuntu. then click continue  &lt;br /&gt;
&lt;br /&gt;
Type your name and password that you entered&lt;br /&gt;
You are not automatically the administrator to become the admin you have to enter: &#039;&#039;sudo bash&#039;&#039;  You will see a # to confirm that you are now admin.  We will now edit a file by typing: &lt;br /&gt;
 nano /etc/apt/sources.list &lt;br /&gt;
(nano is the text editor and etc is the file)  Click control W US. archive.ubuntu.com&lt;br /&gt;
Under replace with: enter mirror .rit.edu  then repeat control w and change security.ubuntu.com with the mirror.RIT.edu&lt;br /&gt;
Update by typing aptitude update, enter aptitude full-upgrade, enter, click enter for yes and update starts.  After update it will say Current Staus: 0 updates [-94]&lt;br /&gt;
We will the type:&lt;br /&gt;
 aptitude install asterisk atfpd dhcp3-server &lt;br /&gt;
enter 001 for USA country code and click continue&lt;br /&gt;
If there are errors (and ther will be) type: &lt;br /&gt;
 aptitude update&lt;br /&gt;
 enter&lt;br /&gt;
 install aptitude update&lt;br /&gt;
 enter&lt;br /&gt;
&lt;br /&gt;
to restart type:&lt;br /&gt;
 shutdown -r now&lt;br /&gt;
&lt;br /&gt;
and try reinstalling if there are still errors, you will need to log back in and refollow steps to update&lt;br /&gt;
&lt;br /&gt;
We should be able to program settings for 7960 phone&lt;br /&gt;
 nano sip.com&lt;br /&gt;
 nano extensions.com&lt;br /&gt;
&lt;br /&gt;
gateway&lt;br /&gt;
buy VOIP service from service provider on internet&lt;br /&gt;
    connects over network to provider with actual gateway&lt;br /&gt;
    install on linux  (install linux, then install asterisk&lt;br /&gt;
    Cisco 7960 phones popular with asterisk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039; Step by Step Settings for Virtual Box&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create folder on D drive with username, semester, and year &lt;br /&gt;
update default folder in virtualbox general&lt;br /&gt;
    virtualbox settings -- general&lt;br /&gt;
    New&lt;br /&gt;
        asterisk server&lt;br /&gt;
        linux&lt;br /&gt;
        ubuntu&lt;br /&gt;
        768 MB ram&lt;br /&gt;
        Create new hard disk&lt;br /&gt;
        VDI (default)&lt;br /&gt;
        Dynamically allocated&lt;br /&gt;
        8 GB is enough for virtual disk&lt;br /&gt;
        Confirm that drive is installed in expected folder&lt;br /&gt;
&lt;br /&gt;
        Create&lt;br /&gt;
        Create&lt;br /&gt;
&lt;br /&gt;
    Change Network Setting   (click on Network)&lt;br /&gt;
        Attached to:  Bridged Adapter&lt;br /&gt;
        (connects virtual machine directly to network card of computer)&lt;br /&gt;
&lt;br /&gt;
    ubuntu server file is already on system&lt;br /&gt;
&lt;br /&gt;
    Click on Storage&lt;br /&gt;
        click on IDE Controller / Empty&lt;br /&gt;
        click on disk on far right side (next ot IDE Secondary Master)&lt;br /&gt;
            Choose Virtual CD Disk File&lt;br /&gt;
            D:\\CNT Files\Linux Install CDs\&lt;br /&gt;
                ubuntu-10.10-server-i386.iso&lt;br /&gt;
&lt;br /&gt;
    Click Start to start the virtual machine&lt;br /&gt;
        OK through warning about keyboard capture&lt;br /&gt;
        OK through virtual colors&lt;br /&gt;
        OK through audio problems&lt;br /&gt;
        English&lt;br /&gt;
    Enter&lt;br /&gt;
    Install Ubuntu Server&lt;br /&gt;
        OK through mouse pointer&lt;br /&gt;
        OK through color&lt;br /&gt;
    Enter through English&lt;br /&gt;
    Enter through United States&lt;br /&gt;
    no for detect keyboard&lt;br /&gt;
    USA&lt;br /&gt;
    Standard USA keyboard&lt;br /&gt;
    hostname   asterisk&lt;br /&gt;
    America/Chicago time zone&lt;br /&gt;
    Guided  - use entire disk adn set up LVM&lt;br /&gt;
    Select Disk -- SCSI3&lt;br /&gt;
    select YES&lt;br /&gt;
    use default, 8.3 GB&lt;br /&gt;
    YES - Write changes to disk&lt;br /&gt;
&lt;br /&gt;
        lower corner of screen will show activity to hard disk, CD, &lt;br /&gt;
            and other devices.&lt;br /&gt;
&lt;br /&gt;
    Create User Accounts&lt;br /&gt;
        Full Name&lt;br /&gt;
        username   &lt;br /&gt;
        password:  cisco&lt;br /&gt;
               cisco&lt;br /&gt;
        Yes -- accept weak password&lt;br /&gt;
        NO  -- do not encrypt home directory&lt;br /&gt;
        empty -- no http proxy&lt;br /&gt;
&lt;br /&gt;
    NO automatic updates&lt;br /&gt;
&lt;br /&gt;
    Software to Install&lt;br /&gt;
        Leave blank&lt;br /&gt;
        TAB to reach Continue button&lt;br /&gt;
            the distribution is Oct 2010&lt;br /&gt;
            current Oct2011 server edition is the same&lt;br /&gt;
            &lt;br /&gt;
    Yes -- install GRUB boot loader to master boot record&lt;br /&gt;
&lt;br /&gt;
Remove virtual CD before&lt;br /&gt;
    Pull down Devices to --&amp;gt; CD/DVD Devices&lt;br /&gt;
&lt;br /&gt;
Login using name and password that we specified&lt;br /&gt;
&lt;br /&gt;
become administrator&lt;br /&gt;
&lt;br /&gt;
    sudo bash &lt;br /&gt;
    cisco&lt;br /&gt;
&lt;br /&gt;
    nano /etc/apt/soruces.list&lt;br /&gt;
&lt;br /&gt;
    ctrl-w&lt;br /&gt;
    ctrl-r&lt;br /&gt;
    search for us.archive.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        In vi this is :1,$s/us.archive.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        14 lines are changed&lt;br /&gt;
    search for security.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        :1,$s/security.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        6 lines change&lt;br /&gt;
    ctrl-o&lt;br /&gt;
    enter&lt;br /&gt;
    ctrl-x  to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Upgrade Ubuntu OS&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem with the asterisk install was the age of the operating system.  The fix is to upgrade the Ubuntu OS to a later version that is compatible with the current asterisk distribution.&lt;br /&gt;
&lt;br /&gt;
The upgrade process includes the following.&lt;br /&gt;
1.  login &lt;br /&gt;
2.  become root via the command&lt;br /&gt;
    sudo bash&lt;br /&gt;
3.  Edit the file,  /etc/apt/sources.list. Change the phrase, maverick, to the phrase, nantty, on every line.  &lt;br /&gt;
    The vi command phrase is :1,$s/maverick/nantty/g&lt;br /&gt;
4.  Update via the command&lt;br /&gt;
    aptitude update&lt;br /&gt;
5.  Install the upgrade via the command&lt;br /&gt;
    aptitude full-upgrade&lt;br /&gt;
      Accept this solution:   Answer Y to every prompt&lt;br /&gt;
      Click OK for the openbsd-inetd cron atd upgrade&lt;br /&gt;
      Click OK for the cron atd upgrade&lt;br /&gt;
&lt;br /&gt;
Login w/: sudo bash&lt;br /&gt;
Finished updating with replacing the maverick file with natty and updated again&lt;br /&gt;
 Aptitude update&lt;br /&gt;
 Aptitude full-upgrade&lt;br /&gt;
At the Configuring libc6 screen: enter, enter&lt;br /&gt;
After updating type in: &lt;br /&gt;
 asterisk&lt;br /&gt;
 cd/etc/asterisk&lt;br /&gt;
 ls&lt;br /&gt;
We then will go to the file tftp file editor&lt;br /&gt;
 nano /etc/default/atftpd &lt;br /&gt;
A file should come up with [Read 2 lines] if not update tftp&lt;br /&gt;
 aptitude install atftpd&lt;br /&gt;
add to the beginnng:&lt;br /&gt;
 --daemon --port69&lt;br /&gt;
Add to the end:&lt;br /&gt;
 /tftpboot&lt;br /&gt;
 mkdir  /tftpboot&lt;br /&gt;
 ;------------------------------------------------------------------------------&lt;br /&gt;
 ; Settings  for Phone 1 Line 1&lt;br /&gt;
 ;&lt;br /&gt;
 [phone1line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 calleride=”Phone 1 Line 1 &amp;lt;5001&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 secret=phone1line1&lt;br /&gt;
 mailbox=5001&lt;br /&gt;
 disallow=all&lt;br /&gt;
 allow=ulaw&lt;br /&gt;
 allow=alaw&lt;br /&gt;
 nano /etc/dhcp3/dhcp/.conf&lt;br /&gt;
(if your are missing the dhcp server do an update: aptitude install dhcp3-server)&lt;br /&gt;
 DHCP for IP Phones&lt;br /&gt;
 subnet  172.16.(use your cp # for this 3rd octet) .0 netmask 255.255.255.0 {&lt;br /&gt;
 option routers 172.16.99.1;&lt;br /&gt;
 option cisco-etherboot-server 172.16.99.1;&lt;br /&gt;
 option tftp-server-name “172.16.99.1” ;&lt;br /&gt;
 authoritative&lt;br /&gt;
 range 172.16.99.50 172.16.99.254;&lt;br /&gt;
 }&lt;br /&gt;
Exit and save by cntrl O cntrl X&lt;br /&gt;
 ‘’eth0”&lt;br /&gt;
Exit and save (CntrlO cntrlW)&lt;br /&gt;
 nano /etc/network/interfaces&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 	address  172.16.8.1&lt;br /&gt;
 	netmask 255.255.255.0&lt;br /&gt;
Exit &amp;amp; save&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ifdown eth0&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ping 172.16.99.1&lt;br /&gt;
(ping will keep on until you enter cntrl c)&lt;br /&gt;
 cd /tftpboot/&lt;br /&gt;
 OS79XX.txt&lt;br /&gt;
Then import file for OS79xx.txt  or type in the config file.&lt;br /&gt;
 shutdown  -h now&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2011 12 05&lt;br /&gt;
&lt;br /&gt;
* ! &#039;&#039;&#039;&#039;&#039;exclamation marks = enter&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;&#039;&#039;nano = edit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Unhook ethernet &amp;amp; login&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tftpboot#wget ftp://10.1.11.36/tftpboot/*&lt;br /&gt;
 ls    (&#039;&#039;to show listing&#039;&#039;)&lt;br /&gt;
 etc/network/interfaces&lt;br /&gt;
 cp/etc/dhcp3/dhcpd.conf /etc/dhcpd.conf    (&#039;&#039;to copy config file from dhcpd3 to dhcpd&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Once your plugged back in and have pc and phone plugged into a poe switch&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use the following command to see what is happening in real time and control c to get back&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/syslog&lt;br /&gt;
 cntrl c&lt;br /&gt;
 /etc/init.d/isc-dhcp-server start&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If you encounter any errors with your configuration file you can edit it by going to:&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 nano /etc/dhcp/dhcpd.conf&lt;br /&gt;
 tail /var/log/syslog   (&#039;&#039;&#039;&#039;&#039;To show tail end of the log&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Anytime you need to make a change on the phone you will need to unplug and go through the start up process again&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 /etc/default/atftpd&lt;br /&gt;
 /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Go to the line that starts with tftp go to end of line that and change /srvtftp to tftpboot&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 /etc/init.d/openbsd-inetd restart &lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If the srv is still up you have kill the line&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 nano XMLDefault.cnf.xml    (&#039;&#039;&#039;&#039;&#039;for editing&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Phone will &amp;quot;Phone Unprovisioned&amp;quot; when it is requesting configuration&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tail/var/syslog&lt;br /&gt;
&lt;br /&gt;
make a copy of the SIPmacaddress.cnf &lt;br /&gt;
&lt;br /&gt;
 cp SIPmacaddress.cnf SIP(insert mac address here)&lt;br /&gt;
 nano /etc/asterisk/sip.conf&lt;br /&gt;
&lt;br /&gt;
Edit file:&lt;br /&gt;
&lt;br /&gt;
 [phone2line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 callerid=&amp;quot;phone2line1&amp;quot; &amp;lt;5002&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 nano SIP(insert mac address here and use all capital letters).cnf&lt;br /&gt;
 nano SIPDCefault.cnf&lt;br /&gt;
&lt;br /&gt;
Change the proxy addresses to your computer address&lt;br /&gt;
Unplug phone and let configuration files reload&lt;br /&gt;
and reconnect with the following command&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 sip show peers&lt;br /&gt;
 cp SIPmacaddress.cnf&lt;br /&gt;
&lt;br /&gt;
Edit file by changing phone1 to phone2 on all instances:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;phone2line1&amp;quot;&lt;br /&gt;
 &amp;quot;phone 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Unplug phone and plug back in, after you make changes in asterisk you need it to reread the configuration&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
 sip show peers   &#039;&#039;(to show neighbors)&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setting up Dial Plan&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we need to set up a dial plan that allows the phones to communicate&lt;br /&gt;
A key file is called extensions.conf where all kinds of config files are stored, one of the files is called [demo] which we will try to get to work.&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
 [local_pod]&lt;br /&gt;
 exten =&amp;gt; 5001,1,Dial(SIP/phone1line1)&lt;br /&gt;
 exten =&amp;gt; 5002,1,Dial(SIP/phone2line1)&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
&lt;br /&gt;
Now can pick up phone and check for dialtone&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
[demo] to ring a &amp;quot;dummy&amp;quot; line&lt;br /&gt;
 exten =&amp;gt;6001,1,Goto(Demo,s,1)&lt;br /&gt;
&lt;br /&gt;
You can create another extension and change the caller id by going back to the exten file and entering commands:&lt;br /&gt;
 exten =&amp;gt;6001,1,Doto(demo,s,1)&lt;br /&gt;
 exten =&amp;gt;6002,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setting up Voicemail&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a quick install guide follow the bottom link:&lt;br /&gt;
 &#039;&#039;voice-info.com&#039;&#039;&lt;br /&gt;
 &#039;&#039;http://fonality.com/trixbox/wiki/trixbox-quick-install-guide&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4990</id>
		<title>Asterisk Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4990"/>
		<updated>2011-12-19T16:48:29Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;What is Asterisk?&#039;&#039;&#039; ==&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
Astrerisk is free open source software that works as a call processor that can be customized.  It provides support for cards like T1 - it acts like a gateway, or you can employ a service (server to act as the card or gateway)   It has become much better over the last five years and has been aroud for 7 or 8 but was no very stable in beginning.  You will find it built into most open source services. Many small businesses use asterisk, it is  built into other products,  often the engine is asterisk.&lt;br /&gt;
You can get asterisk to work on windows but it is not designed for that. It was designed for Linux but runs on different operating systems like Mac OS X, Solaris, NetBSD, OpenBSD, FreeBSD and a for Microsoft Windows there is a port known as AsteriskWin32.  The 7900 series of cisco phones work well with asterisk. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;How to downlaod  and update Asterisk&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will be using Oracle&#039;s VirtualBox to download Asterisk to.  You will need to create a storage space on your D drive and make a new folder with your name and semester &amp;quot;Name-FA11&amp;quot; then close.&lt;br /&gt;
&lt;br /&gt;
Open up VirtualBox &#039;&#039;settings&#039;&#039; and under &#039;&#039;general&#039;&#039; in the default box find the folder you just made and click ok.  Your information will now be saved there.&lt;br /&gt;
&lt;br /&gt;
Create a new virtual machine by clicking on new machine under OS click on Linux, click &#039;&#039;next&#039;&#039;, under RAM use 768 , click &#039;&#039;next&#039;&#039;, create new hard disk, click next, VDI, next, Dynammically allocated, next location Astersiks server, default, &#039;&#039;next&#039;&#039;, then click &#039;&#039;create&#039;&#039;.  You should now see that your VM has been created.&lt;br /&gt;
&lt;br /&gt;
You will now nee to change the settings under the network by simply clicking on Network and under network click on adapter and on  attatched and change to bridged.&lt;br /&gt;
&lt;br /&gt;
**Next under storage CD/DVD Drive: click icon beside arrow change to choose a virtual disk CNT files under Linux then Ubuntu 10.10. asterisk tty1&lt;br /&gt;
You will get a couple of warnings, click on through them.  Under language choose your language (English is the only one Franske will have support for) US, enter, under keyboard click no, enter, enter, it will the start to load.  Under hostname use Asterisk, enter, yes, enter, enter, under partition move to yes click &#039;&#039;continue&#039;&#039;. Make changes to disks move to yes, &#039;&#039;continue&#039;&#039;.  The base system will now be installed.  enter your name in lowercase, password cisco, cisco again yes, no for encrypting and down arrow for no http proxy &#039;&#039;continue&#039;&#039; and it will continue installing choose no automatic updates.  Under software selection leave them all blank by using tab key to tab through to select continue after installation select yes to install bootloader.  Finish by clicking on devices and click on CD/DVD and make sure there is no check mark beside ubuntu. then click continue  &lt;br /&gt;
&lt;br /&gt;
Type your name and password that you entered&lt;br /&gt;
You are not automatically the administrator to become the admin you have to enter: &#039;&#039;sudo bash&#039;&#039;  You will see a # to confirm that you are now admin.  We will now edit a file by typing: &lt;br /&gt;
 nano /etc/apt/sources.list &lt;br /&gt;
(nano is the text editor and etc is the file)  Click control W US. archive.ubuntu.com&lt;br /&gt;
Under replace with: enter mirror .rit.edu  then repeat control w and change security.ubuntu.com with the mirror.RIT.edu&lt;br /&gt;
Update by typing aptitude update, enter aptitude full-upgrade, enter, click enter for yes and update starts.  After update it will say Current Staus: 0 updates [-94]&lt;br /&gt;
We will the type:&lt;br /&gt;
 aptitude install asterisk atfpd dhcp3-server &lt;br /&gt;
enter 001 for USA country code and click continue&lt;br /&gt;
If there are errors (and ther will be) type: &lt;br /&gt;
 aptitude update&lt;br /&gt;
 enter&lt;br /&gt;
 install aptitude update&lt;br /&gt;
 enter&lt;br /&gt;
&lt;br /&gt;
to restart type:&lt;br /&gt;
 shutdown -r now&lt;br /&gt;
&lt;br /&gt;
and try reinstalling if there are still errors, you will need to log back in and refollow steps to update&lt;br /&gt;
&lt;br /&gt;
We should be able to program settings for 7960 phone&lt;br /&gt;
 nano sip.com&lt;br /&gt;
 nano extensions.com&lt;br /&gt;
&lt;br /&gt;
gateway&lt;br /&gt;
buy VOIP service from service provider on internet&lt;br /&gt;
    connects over network to provider with actual gateway&lt;br /&gt;
    install on linux  (install linux, then install asterisk&lt;br /&gt;
    Cisco 7960 phones popular with asterisk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039; Step by Step Settings for Virtual Box&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
create folder on D drive with username, semester, and year &lt;br /&gt;
update default folder in virtualbox general&lt;br /&gt;
    virtualbox settings -- general&lt;br /&gt;
    New&lt;br /&gt;
        asterisk server&lt;br /&gt;
        linux&lt;br /&gt;
        ubuntu&lt;br /&gt;
        768 MB ram&lt;br /&gt;
        Create new hard disk&lt;br /&gt;
        VDI (default)&lt;br /&gt;
        Dynamically allocated&lt;br /&gt;
        8 GB is enough for virtual disk&lt;br /&gt;
        Confirm that drive is installed in expected folder&lt;br /&gt;
&lt;br /&gt;
        Create&lt;br /&gt;
        Create&lt;br /&gt;
&lt;br /&gt;
    Change Network Setting   (click on Network)&lt;br /&gt;
        Attached to:  Bridged Adapter&lt;br /&gt;
        (connects virtual machine directly to network card of computer)&lt;br /&gt;
&lt;br /&gt;
    ubuntu server file is already on system&lt;br /&gt;
&lt;br /&gt;
    Click on Storage&lt;br /&gt;
        click on IDE Controller / Empty&lt;br /&gt;
        click on disk on far right side (next ot IDE Secondary Master)&lt;br /&gt;
            Choose Virtual CD Disk File&lt;br /&gt;
            D:\\CNT Files\Linux Install CDs\&lt;br /&gt;
                ubuntu-10.10-server-i386.iso&lt;br /&gt;
&lt;br /&gt;
    Click Start to start the virtual machine&lt;br /&gt;
        OK through warning about keyboard capture&lt;br /&gt;
        OK through virtual colors&lt;br /&gt;
        OK through audio problems&lt;br /&gt;
        English&lt;br /&gt;
    Enter&lt;br /&gt;
    Install Ubuntu Server&lt;br /&gt;
        OK through mouse pointer&lt;br /&gt;
        OK through color&lt;br /&gt;
    Enter through English&lt;br /&gt;
    Enter through United States&lt;br /&gt;
    no for detect keyboard&lt;br /&gt;
    USA&lt;br /&gt;
    Standard USA keyboard&lt;br /&gt;
    hostname   asterisk&lt;br /&gt;
    America/Chicago time zone&lt;br /&gt;
    Guided  - use entire disk adn set up LVM&lt;br /&gt;
    Select Disk -- SCSI3&lt;br /&gt;
    select YES&lt;br /&gt;
    use default, 8.3 GB&lt;br /&gt;
    YES - Write changes to disk&lt;br /&gt;
&lt;br /&gt;
        lower corner of screen will show activity to hard disk, CD, &lt;br /&gt;
            and other devices.&lt;br /&gt;
&lt;br /&gt;
    Create User Accounts&lt;br /&gt;
        Full Name&lt;br /&gt;
        username   &lt;br /&gt;
        password:  cisco&lt;br /&gt;
               cisco&lt;br /&gt;
        Yes -- accept weak password&lt;br /&gt;
        NO  -- do not encrypt home directory&lt;br /&gt;
        empty -- no http proxy&lt;br /&gt;
&lt;br /&gt;
    NO automatic updates&lt;br /&gt;
&lt;br /&gt;
    Software to Install&lt;br /&gt;
        Leave blank&lt;br /&gt;
        TAB to reach Continue button&lt;br /&gt;
            the distribution is Oct 2010&lt;br /&gt;
            current Oct2011 server edition is the same&lt;br /&gt;
            &lt;br /&gt;
    Yes -- install GRUB boot loader to master boot record&lt;br /&gt;
&lt;br /&gt;
Remove virtual CD before&lt;br /&gt;
    Pull down Devices to --&amp;gt; CD/DVD Devices&lt;br /&gt;
&lt;br /&gt;
Login using name and password that we specified&lt;br /&gt;
&lt;br /&gt;
become administrator&lt;br /&gt;
&lt;br /&gt;
    sudo bash &lt;br /&gt;
    cisco&lt;br /&gt;
&lt;br /&gt;
    nano /etc/apt/soruces.list&lt;br /&gt;
&lt;br /&gt;
    ctrl-w&lt;br /&gt;
    ctrl-r&lt;br /&gt;
    search for us.archive.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        In vi this is :1,$s/us.archive.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        14 lines are changed&lt;br /&gt;
    search for security.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        :1,$s/security.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        6 lines change&lt;br /&gt;
    ctrl-o&lt;br /&gt;
    enter&lt;br /&gt;
    ctrl-x  to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Upgrade Ubuntu OS&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem with the asterisk install was the age of the operating system.  The fix is to upgrade the Ubuntu OS to a later version that is compatible with the current asterisk distribution.&lt;br /&gt;
&lt;br /&gt;
The upgrade process includes the following.&lt;br /&gt;
1.  login &lt;br /&gt;
2.  become root via the command&lt;br /&gt;
    sudo bash&lt;br /&gt;
3.  Edit the file,  /etc/apt/sources.list. Change the phrase, maverick, to the phrase, nantty, on every line.  &lt;br /&gt;
    The vi command phrase is :1,$s/maverick/nantty/g&lt;br /&gt;
4.  Update via the command&lt;br /&gt;
    aptitude update&lt;br /&gt;
5.  Install the upgrade via the command&lt;br /&gt;
    aptitude full-upgrade&lt;br /&gt;
      Accept this solution:   Answer Y to every prompt&lt;br /&gt;
      Click OK for the openbsd-inetd cron atd upgrade&lt;br /&gt;
      Click OK for the cron atd upgrade&lt;br /&gt;
&lt;br /&gt;
Login w/: sudo bash&lt;br /&gt;
Finished updating with replacing the maverick file with natty and updated again&lt;br /&gt;
 Aptitude update&lt;br /&gt;
 Aptitude full-upgrade&lt;br /&gt;
At the Configuring libc6 screen: enter, enter&lt;br /&gt;
After updating type in: &lt;br /&gt;
 asterisk&lt;br /&gt;
 cd/etc/asterisk&lt;br /&gt;
 ls&lt;br /&gt;
We then will go to the file tftp file editor&lt;br /&gt;
 nano /etc/default/atftpd &lt;br /&gt;
A file should come up with [Read 2 lines] if not update tftp&lt;br /&gt;
 aptitude install atftpd&lt;br /&gt;
add to the beginnng:&lt;br /&gt;
 --daemon --port69&lt;br /&gt;
Add to the end:&lt;br /&gt;
 /tftpboot&lt;br /&gt;
 mkdir  /tftpboot&lt;br /&gt;
 ;------------------------------------------------------------------------------&lt;br /&gt;
 ; Settings  for Phone 1 Line 1&lt;br /&gt;
 ;&lt;br /&gt;
 [phone1line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 calleride=”Phone 1 Line 1 &amp;lt;5001&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 secret=phone1line1&lt;br /&gt;
 mailbox=5001&lt;br /&gt;
 disallow=all&lt;br /&gt;
 allow=ulaw&lt;br /&gt;
 allow=alaw&lt;br /&gt;
 nano /etc/dhcp3/dhcp/.conf&lt;br /&gt;
(if your are missing the dhcp server do an update: aptitude install dhcp3-server)&lt;br /&gt;
 DHCP for IP Phones&lt;br /&gt;
 subnet  172.16.(use your cp # for this 3rd octet) .0 netmask 255.255.255.0 {&lt;br /&gt;
 option routers 172.16.99.1;&lt;br /&gt;
 option cisco-etherboot-server 172.16.99.1;&lt;br /&gt;
 option tftp-server-name “172.16.99.1” ;&lt;br /&gt;
 authoritative&lt;br /&gt;
 range 172.16.99.50 172.16.99.254;&lt;br /&gt;
 }&lt;br /&gt;
Exit and save by cntrl O cntrl X&lt;br /&gt;
 ‘’eth0”&lt;br /&gt;
Exit and save (CntrlO cntrlW)&lt;br /&gt;
 nano /etc/network/interfaces&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 	address  172.16.8.1&lt;br /&gt;
 	netmask 255.255.255.0&lt;br /&gt;
Exit &amp;amp; save&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ifdown eth0&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ping 172.16.99.1&lt;br /&gt;
(ping will keep on until you enter cntrl c)&lt;br /&gt;
 cd /tftpboot/&lt;br /&gt;
 OS79XX.txt&lt;br /&gt;
Then import file for OS79xx.txt  or type in the config file.&lt;br /&gt;
 shutdown  -h now&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2011 12 05&lt;br /&gt;
&lt;br /&gt;
* ! &#039;&#039;&#039;&#039;&#039;exclamation marks = enter&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;&#039;&#039;nano = edit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Unhook ethernet &amp;amp; login&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tftpboot#wget ftp://10.1.11.36/tftpboot/*&lt;br /&gt;
 ls    (&#039;&#039;to show listing&#039;&#039;)&lt;br /&gt;
 etc/network/interfaces&lt;br /&gt;
 cp/etc/dhcp3/dhcpd.conf /etc/dhcpd.conf    (&#039;&#039;to copy config file from dhcpd3 to dhcpd&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Once your plugged back in and have pc and phone plugged into a poe switch&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use the following command to see what is happening in real time and control c to get back&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/syslog&lt;br /&gt;
 cntrl c&lt;br /&gt;
 /etc/init.d/isc-dhcp-server start&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If you encounter any errors with your configuration file you can edit it by going to:&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 nano /etc/dhcp/dhcpd.conf&lt;br /&gt;
 tail /var/log/syslog   (&#039;&#039;&#039;&#039;&#039;To show tail end of the log&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Anytime you need to make a change on the phone you will need to unplug and go through the start up process again&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 /etc/default/atftpd&lt;br /&gt;
 /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Go to the line that starts with tftp go to end of line that and change /srvtftp to tftpboot&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 /etc/init.d/openbsd-inetd restart &lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If the srv is still up you have kill the line&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 nano XMLDefault.cnf.xml    (&#039;&#039;&#039;&#039;&#039;for editing&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Phone will &amp;quot;Phone Unprovisioned&amp;quot; when it is requesting configuration&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tail/var/syslog&lt;br /&gt;
&lt;br /&gt;
make a copy of the SIPmacaddress.cnf &lt;br /&gt;
&lt;br /&gt;
 cp SIPmacaddress.cnf SIP(insert mac address here)&lt;br /&gt;
 nano /etc/asterisk/sip.conf&lt;br /&gt;
&lt;br /&gt;
Edit file:&lt;br /&gt;
&lt;br /&gt;
 [phone2line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 callerid=&amp;quot;phone2line1&amp;quot; &amp;lt;5002&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 nano SIP(insert mac address here and use all capital letters).cnf&lt;br /&gt;
 nano SIPDCefault.cnf&lt;br /&gt;
&lt;br /&gt;
Change the proxy addresses to your computer address&lt;br /&gt;
Unplug phone and let configuration files reload&lt;br /&gt;
and reconnect with the following command&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 sip show peers&lt;br /&gt;
 cp SIPmacaddress.cnf&lt;br /&gt;
&lt;br /&gt;
Edit file by changing phone1 to phone2 on all instances:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;phone2line1&amp;quot;&lt;br /&gt;
 &amp;quot;phone 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Unplug phone and plug back in, after you make changes in asterisk you need it to reread the configuration&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
 sip show peers   &#039;&#039;(to show neighbors)&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setting up Dial Plan&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we need to set up a dial plan that allows the phones to communicate&lt;br /&gt;
A key file is called extensions.conf where all kinds of config files are stored, one of the files is called [demo] which we will try to get to work.&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
 [local_pod]&lt;br /&gt;
 exten =&amp;gt; 5001,1,Dial(SIP/phone1line1)&lt;br /&gt;
 exten =&amp;gt; 5002,1,Dial(SIP/phone2line1)&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
&lt;br /&gt;
Now can pick up phone and check for dialtone&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
[demo] to ring a &amp;quot;dummy&amp;quot; line&lt;br /&gt;
 exten =&amp;gt;6001,1,Goto(Demo,s,1)&lt;br /&gt;
&lt;br /&gt;
You can create another extension and change the caller id by going back to the exten file and entering commands:&lt;br /&gt;
 exten =&amp;gt;6001,1,Doto(demo,s,1)&lt;br /&gt;
 exten =&amp;gt;6002,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setting up Voicemail&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now lets see if we can get voicemail working by going to:&lt;br /&gt;
&#039;&#039;voice-info.com&#039;&#039;&lt;br /&gt;
&#039;&#039;google &amp;quot;trixbox&amp;quot;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4976</id>
		<title>Asterisk Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4976"/>
		<updated>2011-12-13T18:01:40Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;11-28-11     &lt;br /&gt;
Astrerisk is a free call process, provides support for cards like T1 - it acts like a gateway, or you can employ a service (server to act as the card or gateway)   It has become much better over the last five years and has been aroud for 7 or 8 but was no very stable in the beginning.  You will find it built into most open source services.  You can get asterisk to work on windows but it is not designed for that.  The 7900 series of cisco phones work well with asterisk and can get a 7960 for around 20 bucks on ebay.  &lt;br /&gt;
&lt;br /&gt;
We will be using Oracle&#039;s VirtualBox to download Asterisk to.  You will need to create a storage space on your D drive.  Make a new folder with your name and semester &amp;quot;Name-FA11&amp;quot; then close.&lt;br /&gt;
&lt;br /&gt;
Next open up VirtualBox &#039;&#039;settings&#039;&#039; and under &#039;&#039;general&#039;&#039; in the default box find the folder you just made and click ok.  Your information will now be saved there.&lt;br /&gt;
&lt;br /&gt;
Next create a new virtual machine by clicking on new machine under OS click on Linux, click &#039;&#039;next&#039;&#039;, under RAM use 768 , click &#039;&#039;next&#039;&#039;, create new hard disk, click next, VDI, next, Dynammically allocated, next location Astersiks server, default, &#039;&#039;next&#039;&#039;, then click &#039;&#039;create&#039;&#039;.  You should now see that your VM has been created.&lt;br /&gt;
&lt;br /&gt;
You will now nee to change the settings under the network by simply clicking on Network and under network click on adapter and on  attatched and change to bridged.&lt;br /&gt;
&lt;br /&gt;
**Next under storage CD/DVD Drive: click icon beside arrow change to choose a virtual disk CNT files under Linux then Ubuntu 10.10. asterisk tty1&lt;br /&gt;
You will get a couple of warnings, click on through them.  Under language choose your language (English is the only one Franske will have support for) US, enter, under keyboard click no, enter, enter, it will the start to load.  Under hostname use Asterisk, enter, yes, enter, enter, under partition move to yes click &#039;&#039;continue&#039;&#039;. Make changes to disks move to yes, &#039;&#039;continue&#039;&#039;.  The base system will now be installed.  enter your name in lowercase, password cisco, cisco again yes, no for encrypting and down arrow for no http proxy &#039;&#039;continue&#039;&#039; and it will continue installing choose no automatic updates.  Under software selection leave them all blank by using tab key to tab through to select continue after installation select yes to install bootloader.  Finish by clicking on devices and click on CD/DVD and make sure there is no check mark beside ubuntu. then click continue  &lt;br /&gt;
&lt;br /&gt;
Type your name and password that you entered&lt;br /&gt;
You are not automatically admin to become the admin you have to enter: sudo bash  You will see a # to confirm that you are now admin.  We will now edit a file by typing: nano /etc/apt/sources.list (nano is the text editor and etc is the file)  Click control W US. archive.ubuntu.com&lt;br /&gt;
Under replace with: enter mirror .rit.edu  then repeat control w and change security.ubuntu.com with the mirror.RIT.edu&lt;br /&gt;
Update by typing aptitude update, enter aptitude full-upgrade, enter, click enter for yes and update starts.  After update it will say Current Staus: 0 updates [-94]&lt;br /&gt;
We will the type: aptitude install asterisk atfpd dhcp3-server &lt;br /&gt;
enter 001 for USA country code and click continue&lt;br /&gt;
If there are errors (and ther will be) type: &lt;br /&gt;
aptitude update&lt;br /&gt;
enter&lt;br /&gt;
install aptitude update&lt;br /&gt;
enter&lt;br /&gt;
&lt;br /&gt;
to restart type:&lt;br /&gt;
shutdown -r now&lt;br /&gt;
&lt;br /&gt;
and try reinstalling if there are still errors, you will need to log back in and refollow steps to update&lt;br /&gt;
&lt;br /&gt;
We should be able to program settings for 7960 phone&lt;br /&gt;
nano sip.com&lt;br /&gt;
nano extensions.com&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;better notes by Greg 2011 11 28&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
asterisk.org&lt;br /&gt;
&lt;br /&gt;
open source / free call processor&lt;br /&gt;
&lt;br /&gt;
gateway&lt;br /&gt;
buy VOIP service from service provider on internet&lt;br /&gt;
    connects over network to provider with actual gateway&lt;br /&gt;
&lt;br /&gt;
asterisk has been around for 7 - 8 years&lt;br /&gt;
    early days, not ready for prime time, not stable, poor configuration&lt;br /&gt;
    last 5 years, better&lt;br /&gt;
    many small businesses use asterisk,  &lt;br /&gt;
    built into other products,  often the engine is asterisk&lt;br /&gt;
&lt;br /&gt;
can be customized&lt;br /&gt;
    call centers&lt;br /&gt;
    robo dialing&lt;br /&gt;
&lt;br /&gt;
GOALS:  Walk through installing asterisk&lt;br /&gt;
    install on linux  (install linux, then install asterisk&lt;br /&gt;
    Cisco 7960 phones popular with asterisk&lt;br /&gt;
&lt;br /&gt;
Virtual box &lt;br /&gt;
&lt;br /&gt;
create folder on D drive with username, semester, and year &lt;br /&gt;
update default folder in virtualbox general&lt;br /&gt;
    virtualbox settings -- general&lt;br /&gt;
    New&lt;br /&gt;
        asterisk server&lt;br /&gt;
        linux&lt;br /&gt;
        ubuntu&lt;br /&gt;
        768 MB ram&lt;br /&gt;
        Create new hard disk&lt;br /&gt;
        VDI (default)&lt;br /&gt;
        Dynamically allocated&lt;br /&gt;
        8 GB is enough for virtual disk&lt;br /&gt;
        Confirm that drive is installed in expected folder&lt;br /&gt;
&lt;br /&gt;
        Create&lt;br /&gt;
        Create&lt;br /&gt;
&lt;br /&gt;
    Change Network Setting   (click on Network)&lt;br /&gt;
        Attached to:  Bridged Adapter&lt;br /&gt;
        (connects virtual machine directly to network card of computer)&lt;br /&gt;
&lt;br /&gt;
    ubuntu server file is already on system&lt;br /&gt;
&lt;br /&gt;
    Click on Storage&lt;br /&gt;
        click on IDE Controller / Empty&lt;br /&gt;
        click on disk on far right side (next ot IDE Secondary Master)&lt;br /&gt;
            Choose Virtual CD Disk File&lt;br /&gt;
            D:\\CNT Files\Linux Install CDs\&lt;br /&gt;
                ubuntu-10.10-server-i386.iso&lt;br /&gt;
&lt;br /&gt;
    Click Start to start the virtual machine&lt;br /&gt;
        OK through warning about keyboard capture&lt;br /&gt;
        OK through virtual colors&lt;br /&gt;
        OK through audio problems&lt;br /&gt;
        English&lt;br /&gt;
    Enter&lt;br /&gt;
    Install Ubuntu Server&lt;br /&gt;
        OK through mouse pointer&lt;br /&gt;
        OK through color&lt;br /&gt;
    Enter through English&lt;br /&gt;
    Enter through United States&lt;br /&gt;
    no for detect keyboard&lt;br /&gt;
    USA&lt;br /&gt;
    Standard USA keyboard&lt;br /&gt;
    hostname   asterisk&lt;br /&gt;
    America/Chicago time zone&lt;br /&gt;
    Guided  - use entire disk adn set up LVM&lt;br /&gt;
    Select Disk -- SCSI3&lt;br /&gt;
    select YES&lt;br /&gt;
    use default, 8.3 GB&lt;br /&gt;
    YES - Write changes to disk&lt;br /&gt;
&lt;br /&gt;
        lower corner of screen will show activity to hard disk, CD, &lt;br /&gt;
            and other devices.&lt;br /&gt;
&lt;br /&gt;
    Create User Accounts&lt;br /&gt;
        Full Name&lt;br /&gt;
        username   &lt;br /&gt;
        password:  cisco&lt;br /&gt;
               cisco&lt;br /&gt;
        Yes -- accept weak password&lt;br /&gt;
        NO  -- do not encrypt home directory&lt;br /&gt;
        empty -- no http proxy&lt;br /&gt;
&lt;br /&gt;
    NO automatic updates&lt;br /&gt;
&lt;br /&gt;
    Software to Install&lt;br /&gt;
        Leave blank&lt;br /&gt;
        TAB to reach Continue button&lt;br /&gt;
            the distribution is Oct 2010&lt;br /&gt;
            current Oct2011 server edition is the same&lt;br /&gt;
            &lt;br /&gt;
    Yes -- install GRUB boot loader to master boot record&lt;br /&gt;
&lt;br /&gt;
Remove virtual CD before&lt;br /&gt;
    Pull down Devices to --&amp;gt; CD/DVD Devices&lt;br /&gt;
&lt;br /&gt;
Login using name and password that we specified&lt;br /&gt;
&lt;br /&gt;
become administrator&lt;br /&gt;
&lt;br /&gt;
    sudo bash &lt;br /&gt;
    cisco&lt;br /&gt;
&lt;br /&gt;
    nano /etc/apt/soruces.list&lt;br /&gt;
&lt;br /&gt;
    ctrl-w&lt;br /&gt;
    ctrl-r&lt;br /&gt;
    search for us.archive.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        In vi this is :1,$s/us.archive.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        14 lines are changed&lt;br /&gt;
    search for security.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        :1,$s/security.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        6 lines change&lt;br /&gt;
    ctrl-o&lt;br /&gt;
    enter&lt;br /&gt;
    ctrl-x  to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
_______________________________________________________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Notes 2011 11 30&lt;br /&gt;
&lt;br /&gt;
The problem with the asterisk install was the age of the operating system.  The fix is to upgrade the Ubuntu OS to a later version that is compatible with the current asterisk distribution.&lt;br /&gt;
&lt;br /&gt;
The upgrade process includes the following.&lt;br /&gt;
1.  login &lt;br /&gt;
2.  become root via the command&lt;br /&gt;
    sudo bash&lt;br /&gt;
3.  Edit the file,  /etc/apt/sources.list. Change the phrase, maverick, to the phrase, nantty, on every line.  &lt;br /&gt;
    The vi command phrase is :1,$s/maverick/nantty/g&lt;br /&gt;
4.  Update via the command&lt;br /&gt;
    aptitude update&lt;br /&gt;
5.  Install the upgrade via the command&lt;br /&gt;
    aptitude full-upgrade&lt;br /&gt;
      Accept this solution:   Answer Y to every prompt&lt;br /&gt;
      Click OK for the openbsd-inetd cron atd upgrade&lt;br /&gt;
      Click OK for the cron atd upgrade&lt;br /&gt;
&lt;br /&gt;
Login w/: sudo bash&lt;br /&gt;
Finished updating with replacing the maverick file with natty and updated again&lt;br /&gt;
 Aptitude update&lt;br /&gt;
 Aptitude full-upgrade&lt;br /&gt;
At the Configuring libc6 screen: enter, enter&lt;br /&gt;
After updating type in: &lt;br /&gt;
 asterisk&lt;br /&gt;
 cd/etc/asterisk&lt;br /&gt;
 ls&lt;br /&gt;
We then will go to the file tftp file editor&lt;br /&gt;
 nano /etc/default/atftpd &lt;br /&gt;
A file should come up with [Read 2 lines] if not update tftp&lt;br /&gt;
 aptitude install atftpd&lt;br /&gt;
add to the beginnng:&lt;br /&gt;
 --daemon --port69&lt;br /&gt;
Add to the end:&lt;br /&gt;
 /tftpboot&lt;br /&gt;
 mkdir  /tftpboot&lt;br /&gt;
 ;------------------------------------------------------------------------------&lt;br /&gt;
 ; Settings  for Phone 1 Line 1&lt;br /&gt;
 ;&lt;br /&gt;
 [phone1line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 calleride=”Phone 1 Line 1 &amp;lt;5001&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 secret=phone1line1&lt;br /&gt;
 mailbox=5001&lt;br /&gt;
 disallow=all&lt;br /&gt;
 allow=ulaw&lt;br /&gt;
 allow=alaw&lt;br /&gt;
 nano /etc/dhcp3/dhcp/.conf&lt;br /&gt;
(if your are missing the dhcp server do an update: aptitude install dhcp3-server)&lt;br /&gt;
 DHCP for IP Phones&lt;br /&gt;
 subnet  172.16.(use your cp # for this 3rd octet) .0 netmask 255.255.255.0 {&lt;br /&gt;
 option routers 172.16.99.1;&lt;br /&gt;
 option cisco-etherboot-server 172.16.99.1;&lt;br /&gt;
 option tftp-server-name “172.16.99.1” ;&lt;br /&gt;
 authoritative&lt;br /&gt;
 range 172.16.99.50 172.16.99.254;&lt;br /&gt;
 }&lt;br /&gt;
Exit and save by cntrl O cntrl X&lt;br /&gt;
 ‘’eth0”&lt;br /&gt;
Exit and save (CntrlO cntrlW)&lt;br /&gt;
 nano /etc/network/interfaces&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
 iface eth0 inet static&lt;br /&gt;
 	address  172.16.8.1&lt;br /&gt;
 	netmask 255.255.255.0&lt;br /&gt;
Exit &amp;amp; save&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ifdown eth0&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
 ping 172.16.99.1&lt;br /&gt;
(ping will keep on until you enter cntrl c)&lt;br /&gt;
 cd /tftpboot/&lt;br /&gt;
 OS79XX.txt&lt;br /&gt;
Then import file for OS79xx.txt  or type in the config file.&lt;br /&gt;
 shutdown  -h now&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2011 12 05&lt;br /&gt;
&lt;br /&gt;
* ! &#039;&#039;&#039;&#039;&#039;exclamation marks = enter&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;&#039;&#039;nano = edit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Unhook ethernet &amp;amp; login&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tftpboot#wget ftp://10.1.11.36/tftpboot/*&lt;br /&gt;
 ls    (&#039;&#039;to show listing&#039;&#039;)&lt;br /&gt;
 etc/network/interfaces&lt;br /&gt;
 cp/etc/dhcp3/dhcpd.conf /etc/dhcpd.conf    (&#039;&#039;to copy config file from dhcpd3 to dhcpd&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Once your plugged back in and have pc and phone plugged into a poe switch&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use the following command to see what is happening in real time and control c to get back&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/syslog&lt;br /&gt;
 cntrl c&lt;br /&gt;
 /etc/init.d/isc-dhcp-server start&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If you encounter any errors with your configuration file you can edit it by going to:&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 nano /etc/dhcp/dhcpd.conf&lt;br /&gt;
 tail /var/log/syslog   (&#039;&#039;&#039;&#039;&#039;To show tail end of the log&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Anytime you need to make a change on the phone you will need to unplug and go through the start up process again&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 /etc/default/atftpd&lt;br /&gt;
 /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Go to the line that starts with tftp go to end of line that and change /srvtftp to tftpboot&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 /etc/init.d/openbsd-inetd restart &lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If the srv is still up you have kill the line&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 nano XMLDefault.cnf.xml    (&#039;&#039;&#039;&#039;&#039;for editing&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Phone will &amp;quot;Phone Unprovisioned&amp;quot; when it is requesting configuration&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tail/var/syslog&lt;br /&gt;
&lt;br /&gt;
make a copy of the SIPmacaddress.cnf &lt;br /&gt;
&lt;br /&gt;
 cp SIPmacaddress.cnf SIP(insert mac address here)&lt;br /&gt;
 nano /etc/asterisk/sip.conf&lt;br /&gt;
&lt;br /&gt;
Edit file:&lt;br /&gt;
&lt;br /&gt;
 [phone2line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 callerid=&amp;quot;phone2line1&amp;quot; &amp;lt;5002&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 nano SIP(insert mac address here and use all capital letters).cnf&lt;br /&gt;
 nano SIPDCefault.cnf&lt;br /&gt;
&lt;br /&gt;
Change the proxy addresses to your computer address&lt;br /&gt;
Unplug phone and let configuration files reload&lt;br /&gt;
and reconnect with the following command&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 sip show peers&lt;br /&gt;
 cp SIPmacaddress.cnf&lt;br /&gt;
&lt;br /&gt;
Edit file by changing phone1 to phone2 on all instances:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;phone2line1&amp;quot;&lt;br /&gt;
 &amp;quot;phone 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Unplug phone and plug back in, after you make changes in asterisk you need it to reread the configuration&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
 sip show peers   &#039;&#039;(to show neighbors)&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Now we need to set up a dial plan that allows the phones to communicate&lt;br /&gt;
A key file is called extensions.conf where all kinds of config files are stored, one of the files is called [demo] which we will try to get to work.&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
 [local_pod]&lt;br /&gt;
 exten =&amp;gt; 5001,1,Dial(SIP/phone1line1)&lt;br /&gt;
 exten =&amp;gt; 5002,1,Dial(SIP/phone2line1)&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
&lt;br /&gt;
Now can pick up phone and check for dialtone&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
[demo] to ring a &amp;quot;dummy&amp;quot; line&lt;br /&gt;
 exten =&amp;gt;6001,1,Goto(Demo,s,1)&lt;br /&gt;
&lt;br /&gt;
You can create another extension and change the caller id by going back to the exten file and entering commands:&lt;br /&gt;
 exten =&amp;gt;6001,1,Doto(demo,s,1)&lt;br /&gt;
 exten =&amp;gt;6002,&lt;br /&gt;
&lt;br /&gt;
Now lets see if we can get voicemail working by going to:&lt;br /&gt;
&#039;&#039;voice-info.com&#039;&#039;&lt;br /&gt;
&#039;&#039;google &amp;quot;trixbox&amp;quot;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4854</id>
		<title>Asterisk Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Asterisk_Notes&amp;diff=4854"/>
		<updated>2011-12-07T21:51:54Z</updated>

		<summary type="html">&lt;p&gt;Tryder: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;11-28-11     &lt;br /&gt;
Astrerisk is a free call process, provides support for cards like T1 - it acts like a gateway, or you can employ a service (server to act as the card or gateway)   It has become much better over the last five years and has been aroud for 7 or 8 but was no very stable in the beginning.  You will find it built into most open source services.  You can get asterisk to work on windows but it is not designed for that.  The 7900 series of cisco phones work well with asterisk and can get a 7960 for around 20 bucks on ebay.  &lt;br /&gt;
&lt;br /&gt;
We will be using Oracle&#039;s VirtualBox to download Asterisk to.  You will need to create a storage space on your D drive.  Make a new folder with your name and semester &amp;quot;Name-FA11&amp;quot; then close.&lt;br /&gt;
&lt;br /&gt;
Next open up VirtualBox &#039;&#039;settings&#039;&#039; and under &#039;&#039;general&#039;&#039; in the default box find the folder you just made and click ok.  Your information will now be saved there.&lt;br /&gt;
&lt;br /&gt;
Next create a new virtual machine by clicking on new machine under OS click on Linux, click &#039;&#039;next&#039;&#039;, under RAM use 768 , click &#039;&#039;next&#039;&#039;, create new hard disk, click next, VDI, next, Dynammically allocated, next location Astersiks server, default, &#039;&#039;next&#039;&#039;, then click &#039;&#039;create&#039;&#039;.  You should now see that your VM has been created.&lt;br /&gt;
&lt;br /&gt;
You will now nee to change the settings under the network by simply clicking on Network and under network click on adapter and on  attatched and change to bridged.&lt;br /&gt;
&lt;br /&gt;
**Next under storage CD/DVD Drive: click icon beside arrow change to choose a virtual disk CNT files under Linux then Ubuntu 10.10. asterisk tty1&lt;br /&gt;
You will get a couple of warnings, click on through them.  Under language choose your language (English is the only one Franske will have support for) US, enter, under keyboard click no, enter, enter, it will the start to load.  Under hostname use Asterisk, enter, yes, enter, enter, under partition move to yes click &#039;&#039;continue&#039;&#039;. Make changes to disks move to yes, &#039;&#039;continue&#039;&#039;.  The base system will now be installed.  enter your name in lowercase, password cisco, cisco again yes, no for encrypting and down arrow for no http proxy &#039;&#039;continue&#039;&#039; and it will continue installing choose no automatic updates.  Under software selection leave them all blank by using tab key to tab through to select continue after installation select yes to install bootloader.  Finish by clicking on devices and click on CD/DVD and make sure there is no check mark beside ubuntu. then click continue  &lt;br /&gt;
&lt;br /&gt;
Type your name and password that you entered&lt;br /&gt;
You are not automatically admin to become the admin you have to enter: sudo bash  You will see a # to confirm that you are now admin.  We will now edit a file by typing: nano /etc/apt/sources.list (nano is the text editor and etc is the file)  Click control W US. archive.ubuntu.com&lt;br /&gt;
Under replace with: enter mirror .rit.edu  then repeat control w and change security.ubuntu.com with the mirror.RIT.edu&lt;br /&gt;
Update by typing aptitude update, enter aptitude full-upgrade, enter, click enter for yes and update starts.  After update it will say Current Staus: 0 updates [-94]&lt;br /&gt;
We will the type: aptitude install asterisk atfpd dhcp3-server &lt;br /&gt;
enter 001 for USA country code and click continue&lt;br /&gt;
If there are errors (and ther will be) type: &lt;br /&gt;
aptitude update&lt;br /&gt;
enter&lt;br /&gt;
install aptitude update&lt;br /&gt;
enter&lt;br /&gt;
&lt;br /&gt;
to restart type:&lt;br /&gt;
shutdown -r now&lt;br /&gt;
&lt;br /&gt;
and try reinstalling if there are still errors, you will need to log back in and refollow steps to update&lt;br /&gt;
&lt;br /&gt;
We should be able to program settings for 7960 phone&lt;br /&gt;
nano sip.com&lt;br /&gt;
nano extensions.com&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;better notes by Greg 2011 11 28&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
asterisk.org&lt;br /&gt;
&lt;br /&gt;
open source / free call processor&lt;br /&gt;
&lt;br /&gt;
gateway&lt;br /&gt;
buy VOIP service from service provider on internet&lt;br /&gt;
    connects over network to provider with actual gateway&lt;br /&gt;
&lt;br /&gt;
asterisk has been around for 7 - 8 years&lt;br /&gt;
    early days, not ready for prime time, not stable, poor configuration&lt;br /&gt;
    last 5 years, better&lt;br /&gt;
    many small businesses use asterisk,  &lt;br /&gt;
    built into other products,  often the engine is asterisk&lt;br /&gt;
&lt;br /&gt;
can be customized&lt;br /&gt;
    call centers&lt;br /&gt;
    robo dialing&lt;br /&gt;
&lt;br /&gt;
GOALS:  Walk through installing asterisk&lt;br /&gt;
    install on linux  (install linux, then install asterisk&lt;br /&gt;
    Cisco 7960 phones popular with asterisk&lt;br /&gt;
&lt;br /&gt;
Virtual box &lt;br /&gt;
&lt;br /&gt;
create folder on D drive with username, semester, and year &lt;br /&gt;
update default folder in virtualbox general&lt;br /&gt;
    virtualbox settings -- general&lt;br /&gt;
    New&lt;br /&gt;
        asterisk server&lt;br /&gt;
        linux&lt;br /&gt;
        ubuntu&lt;br /&gt;
        768 MB ram&lt;br /&gt;
        Create new hard disk&lt;br /&gt;
        VDI (default)&lt;br /&gt;
        Dynamically allocated&lt;br /&gt;
        8 GB is enough for virtual disk&lt;br /&gt;
        Confirm that drive is installed in expected folder&lt;br /&gt;
&lt;br /&gt;
        Create&lt;br /&gt;
        Create&lt;br /&gt;
&lt;br /&gt;
    Change Network Setting   (click on Network)&lt;br /&gt;
        Attached to:  Bridged Adapter&lt;br /&gt;
        (connects virtual machine directly to network card of computer)&lt;br /&gt;
&lt;br /&gt;
    ubuntu server file is already on system&lt;br /&gt;
&lt;br /&gt;
    Click on Storage&lt;br /&gt;
        click on IDE Controller / Empty&lt;br /&gt;
        click on disk on far right side (next ot IDE Secondary Master)&lt;br /&gt;
            Choose Virtual CD Disk File&lt;br /&gt;
            D:\\CNT Files\Linux Install CDs\&lt;br /&gt;
                ubuntu-10.10-server-i386.iso&lt;br /&gt;
&lt;br /&gt;
    Click Start to start the virtual machine&lt;br /&gt;
        OK through warning about keyboard capture&lt;br /&gt;
        OK through virtual colors&lt;br /&gt;
        OK through audio problems&lt;br /&gt;
        English&lt;br /&gt;
    Enter&lt;br /&gt;
    Install Ubuntu Server&lt;br /&gt;
        OK through mouse pointer&lt;br /&gt;
        OK through color&lt;br /&gt;
    Enter through English&lt;br /&gt;
    Enter through United States&lt;br /&gt;
    no for detect keyboard&lt;br /&gt;
    USA&lt;br /&gt;
    Standard USA keyboard&lt;br /&gt;
    hostname   asterisk&lt;br /&gt;
    America/Chicago time zone&lt;br /&gt;
    Guided  - use entire disk adn set up LVM&lt;br /&gt;
    Select Disk -- SCSI3&lt;br /&gt;
    select YES&lt;br /&gt;
    use default, 8.3 GB&lt;br /&gt;
    YES - Write changes to disk&lt;br /&gt;
&lt;br /&gt;
        lower corner of screen will show activity to hard disk, CD, &lt;br /&gt;
            and other devices.&lt;br /&gt;
&lt;br /&gt;
    Create User Accounts&lt;br /&gt;
        Full Name&lt;br /&gt;
        username   &lt;br /&gt;
        password:  cisco&lt;br /&gt;
               cisco&lt;br /&gt;
        Yes -- accept weak password&lt;br /&gt;
        NO  -- do not encrypt home directory&lt;br /&gt;
        empty -- no http proxy&lt;br /&gt;
&lt;br /&gt;
    NO automatic updates&lt;br /&gt;
&lt;br /&gt;
    Software to Install&lt;br /&gt;
        Leave blank&lt;br /&gt;
        TAB to reach Continue button&lt;br /&gt;
            the distribution is Oct 2010&lt;br /&gt;
            current Oct2011 server edition is the same&lt;br /&gt;
            &lt;br /&gt;
    Yes -- install GRUB boot loader to master boot record&lt;br /&gt;
&lt;br /&gt;
Remove virtual CD before&lt;br /&gt;
    Pull down Devices to --&amp;gt; CD/DVD Devices&lt;br /&gt;
&lt;br /&gt;
Login using name and password that we specified&lt;br /&gt;
&lt;br /&gt;
become administrator&lt;br /&gt;
&lt;br /&gt;
    sudo bash &lt;br /&gt;
    cisco&lt;br /&gt;
&lt;br /&gt;
    nano /etc/apt/soruces.list&lt;br /&gt;
&lt;br /&gt;
    ctrl-w&lt;br /&gt;
    ctrl-r&lt;br /&gt;
    search for us.archive.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        In vi this is :1,$s/us.archive.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        14 lines are changed&lt;br /&gt;
    search for security.ubuntu.com&lt;br /&gt;
    replace with mirror.rit.edu&lt;br /&gt;
        :1,$s/security.ubuntu.com/mirror.rit.edu/g&lt;br /&gt;
        6 lines change&lt;br /&gt;
    ctrl-o&lt;br /&gt;
    enter&lt;br /&gt;
    ctrl-x  to exit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
_______________________________________________________________________________________________________________&lt;br /&gt;
&lt;br /&gt;
Notes 2011 11 30&lt;br /&gt;
&lt;br /&gt;
The problem with the asterisk install was the age of the operating system.  The fix is to upgrade the Ubuntu OS to a later version that is compatible with the current asterisk distribution.&lt;br /&gt;
&lt;br /&gt;
The upgrade process includes the following.&lt;br /&gt;
1.  login &lt;br /&gt;
2.  become root via the command&lt;br /&gt;
    sudo bash&lt;br /&gt;
3.  Edit the file,  /etc/apt/sources.list. Change the phrase, maverick, to the phrase, nantty, on every line.  &lt;br /&gt;
    The vi command phrase is :1,$s/maverick/nantty/g&lt;br /&gt;
4.  Update via the command&lt;br /&gt;
    aptitude update&lt;br /&gt;
5.  Install the upgrade via the command&lt;br /&gt;
    aptitude full-upgrade&lt;br /&gt;
      Accept this solution:   Answer Y to every prompt&lt;br /&gt;
      Click OK for the openbsd-inetd cron atd upgrade&lt;br /&gt;
      Click OK for the cron atd upgrade&lt;br /&gt;
&lt;br /&gt;
2011 12 05&lt;br /&gt;
&lt;br /&gt;
* ! &#039;&#039;&#039;&#039;&#039;exclamation marks = enter&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;&#039;&#039;nano = edit&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Unhook ethernet &amp;amp; login&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tftpboot#wget ftp://10.1.11.36/tftpboot/*&lt;br /&gt;
 ls    (&#039;&#039;to show listing&#039;&#039;)&lt;br /&gt;
 etc/network/interfaces&lt;br /&gt;
 cp/etc/dhcp3/dhcpd.conf /etc/dhcpd.conf    (&#039;&#039;to copy config file from dhcpd3 to dhcpd&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Once your plugged back in and have pc and phone plugged into a poe switch&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ifup eth0&lt;br /&gt;
 ifconfig&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use the following command to see what is happening in real time and control c to get back&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/syslog&lt;br /&gt;
 cntrl c&lt;br /&gt;
 /etc/init.d/isc-dhcp-server start&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If you encounter any errors with your configuration file you can edit it by going to:&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 nano /etc/dhcp/dhcpd.conf&lt;br /&gt;
 tail /var/log/syslog   (&#039;&#039;&#039;&#039;&#039;To show tail end of the log&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Anytime you need to make a change on the phone you will need to unplug and go through the start up process again&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 /etc/default/atftpd&lt;br /&gt;
 /etc/inetd.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Go to the line that starts with tftp go to end of line that and change /srvtftp to tftpboot&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 /etc/init.d/openbsd-inetd restart &lt;br /&gt;
 ps aux | grep tftp&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;If the srv is still up you have kill the line&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 nano XMLDefault.cnf.xml    (&#039;&#039;&#039;&#039;&#039;for editing&#039;&#039;&#039;&#039;&#039;)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Phone will &amp;quot;Phone Unprovisioned&amp;quot; when it is requesting configuration&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 cd/tftpboot&lt;br /&gt;
 tail/var/syslog&lt;br /&gt;
&lt;br /&gt;
make a copy of the SIPmacaddress.cnf &lt;br /&gt;
&lt;br /&gt;
 cp SIPmacaddress.cnf SIP(insert mac address here)&lt;br /&gt;
 nano /etc/asterisk/sip.conf&lt;br /&gt;
&lt;br /&gt;
Edit file:&lt;br /&gt;
&lt;br /&gt;
 [phone2line1]&lt;br /&gt;
 type=friend&lt;br /&gt;
 context=local_pod&lt;br /&gt;
 callerid=&amp;quot;phone2line1&amp;quot; &amp;lt;5002&amp;gt;&lt;br /&gt;
 host=dynamic&lt;br /&gt;
 dtmfmode=rfc2833&lt;br /&gt;
 nano SIP(insert mac address here and use all capital letters).cnf&lt;br /&gt;
 nano SIPDCefault.cnf&lt;br /&gt;
&lt;br /&gt;
Change the proxy addresses to your computer address&lt;br /&gt;
Unplug phone and let configuration files reload&lt;br /&gt;
and reconnect with the following command&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 sip show peers&lt;br /&gt;
 cp SIPmacaddress.cnf&lt;br /&gt;
&lt;br /&gt;
Edit file by changing phone1 to phone2 on all instances:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;phone2line1&amp;quot;&lt;br /&gt;
 &amp;quot;phone 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Unplug phone and plug back in, after you make changes in asterisk you need it to reread the configuration&lt;br /&gt;
&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
 sip show peers   &#039;&#039;(to show neighbors)&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
Now we need to set up a dial plan that allows the phones to communicate&lt;br /&gt;
A key file is called extensions.conf where all kinds of config files are stored, one of the files is called [demo] which we will try to get to work.&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
 [local_pod]&lt;br /&gt;
 exten =&amp;gt; 5001,1,Dial(SIP/phone1line1)&lt;br /&gt;
 exten =&amp;gt; 5002,1,Dial(SIP/phone2line1)&lt;br /&gt;
 asterisk -rcvvvvvvvvvvvvv&lt;br /&gt;
 reload&lt;br /&gt;
&lt;br /&gt;
Now can pick up phone and check for dialtone&lt;br /&gt;
 &lt;br /&gt;
 nano /etc/asterisk/extensions.conf&lt;br /&gt;
[demo] to ring a &amp;quot;dummy&amp;quot; line&lt;br /&gt;
 exten =&amp;gt;6001,1,Goto(Demo,s,1)&lt;br /&gt;
&lt;br /&gt;
You can create another extension and change the caller id by going back to the exten file and entering commands:&lt;br /&gt;
 exten =&amp;gt;6001,1,Doto(demo,s,1)&lt;br /&gt;
 exten =&amp;gt;6002,&lt;br /&gt;
&lt;br /&gt;
Now lets see if we can get voicemail working by going to:&lt;br /&gt;
&#039;&#039;voice-info.com&#039;&#039;&lt;br /&gt;
&#039;&#039;google &amp;quot;trixbox&amp;quot;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tryder</name></author>
	</entry>
</feed>