ICE UNIX TUTORIAL
File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete mv – move mv – move mkdir – make directory mkdir – make directory pwd – print working directory pwd – print working directory
Permissions chmod – change permissions chmod – change permissions chown – change owner chown – change owner File permissions – (-rwxrwxrwx) File permissions – (-rwxrwxrwx)
Editors vi vi pico pico nano nano emacs emacs
vi Working with files vi - open filename w – save w – save q – quit q – quit x – exit x – exit wq – save and quit wq – save and quit ! - force ! - force
vi yy – yank line (copy line) yy – yank line (copy line) dd – delete line (cut line) dd – delete line (cut line) p – put line (paste line) p – put line (paste line) gg – jump to top of file gg – jump to top of file G – jump to bottom of file G – jump to bottom of file $ - end of line $ - end of line
Web Server home/public_html – home home/public_html – home All web files must be in this directory All web files must be in this directory Sub directories can be used Sub directories can be used
Web Access Permissons All directories must have permission 701 All directories must have permission 701 i.e. chmod 701. (home directory) chmod 701 public_html chmod 701 chmod 701 All files must have permissions 644 All files must have permissions 644 i.echmod 644 i.echmod 644