Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. - S.Poornima LAMP
  2. 2. <ul>LAMP LAMP is an acronym for a solution stack of free, open source software, originally coined from the first letters of <li>Linux (operating system)
  3. 3. Apache HTTP Server
  4. 4. MySQL (database software) and
  5. 5. PHP </li></ul>
  6. 6. <ul><li>Linux - Unix-like computer operating system, open-source software.
  7. 7. Apache - Open source web server.
  8. 8. MySQL - Multithreaded, Multi-user, SQL DBMS.
  9. 9. PHP - Reflective programming language originally designed for producing dynamic web pages. </li></ul>
  10. 10. <ul>ADVANTAGES <li>Easy to code with PHP and MySQL.
  11. 11. Easy to deploy a PHP app. Once we’ve got MySQL running, we can simply upload our .php files.
  12. 12. Develop locally
  13. 13. Cheap and ubiquitous hosting </li></ul>
  14. 14. LINUX(Operating System)
  15. 15. LINUX Linux is a Unix-like operating system that was designed to provide personal computer users a free or very low-cost operating system comparable to traditional and usually more expensive Unix systems.
  16. 16. <ul><ul><ul><li>Linux has a reputation as a very efficient and fast-performing system.
  17. 17. Linux was developed by Linux Torvalds at the University of Helsinki in Finland.He started his work in 1991. </li></ul></ul></ul>
  18. 18. <ul><ul><li>The effort expanded with volunteers contributing code and documentation over the internet.
  19. 19. It is currently developed under the GNU public license and is freely available in source and binary form. </li></ul></ul>
  20. 20. LINUX COMMANDS 1) cd -“Change Directory”. <ul>2) trap -Used to trap one or more signals and then decide action. 3) pwd -“Print Working Directory”. Shows the current location in the directory tree. </ul>
  21. 21. 4) ls - List all files in the current directory, in column format. 5) clear -Clear the terminal screen. 6) touch -Create empty file of zero byte. 7) rm -Delete a file. 8) which -Shows the full path of shell commands found in our path.
  22. 22. 9) locate - A quick way to search for files anywhere on the filesystem. 10) ps -Lists currently running process (programs). 11) w -Show who is logged on and what they are doing.
  23. 23. 12) File - Knowing the File Type. 13) chown -Changing owner of a file. 14) unmask -Default file permission. 15) split -Split files Horizontally. 16) df - Report filesystem disk space usage. 17) id - Print your user-id and group id's
  24. 24. 18) spell -displays a list of misspelled words. 19) ispell -Interactive spell-check program. 20) more -used to view the contents of the file page by page. 21) echo -Display text on the screen.
  25. 25. 22) date -date to set your server's date and time 23) finger -Use finger to see who's on the system 24) cal -displays a calendar 25) mv -Move or rename files 26) shutdown -Shuts the system down.
  26. 26. 27) whereis -Show where the binary, source and manual page files are for a command 28) who - show who is logged on 29) which -Find Command path 30) chmod -change file permissions
  28. 28. LINUX DIRECTORIES < / > <ul><li>The root directory.
  29. 29. The starting point of your directory structure.
  30. 30. This is where the Linux system begins.
  31. 31. Every other file and directory on our system is under the root directory.
  32. 32. Usually the root directory contains only subdirectories. </li></ul>
  33. 33. < /boot > The place where Linux keeps information that it needs when booting up. < /bin > The /bin directory contains the most important programs that the system needs to operate, such as the shells, ls, grep, and other essential things.
  34. 34. < /lib > The shared libraries for programs that are dynamically linked. < /sbin, /usr/sbin > Most system administration programs are stored in these directories.
  35. 35. < /mnt > <ul><li>This directory is used for mount points.
  36. 36. The different physical storage devices must be attached to some directory in the file system tree before they can be accessed.
  37. 37. This attaching is called mounting, and the directory where the device is attached is called the mount point . </li></ul>
  38. 38. < /usr > Contains user applications. /usr is the largest directory on a Linux system. </usr/share> Config files and graphics for many user apps. < /usr/local > This is where you install apps and other files for use on the local machine.
  39. 39. < /var > <ul><li>It is variable data that changes constantly when the system is running.
  40. 40. Some interesting subdirectories:
  41. 41. </var/log > - contains system log files.
  42. 42. </var/mail> - Incoming and outgoing mail.
  43. 43. </var/spool> - This directory holds files that are queued for some process, like printing. </li></ul>
  44. 44. ed - Original UNIX line-based editor, useful in scripts emacs - GNU editor and fully integrated user environment ex - Powerful line-based editor (integrated with vi) Editors
  45. 45. gawk - GNU awk, powerful text editor for records containing fields sed - Stream-oriented (non-interactive) line-based editor vi - Classic screen-based editor for UNIX vim - Vi IMproved, enhanced support for programmers
  46. 46. <ul><li>vi stands for Visual Editor
  47. 47. Full- screen editor
  48. 48. This editor is started by using the command vi at the shell prompt.
  49. 49. It works in three modes: </li></ul>vi EDITOR *command mode *input mode *ex mode
  50. 50. SHELL $vi malnad :x,:wq,:q! <enter> command mode insert mode edit Text input THE SHELL PROMPT MODES OF THE VI EDITOR o,O,r,R,i,I,s,S,a,A into vi zz <esc> ex mode
  51. 51. Modes * Command mode: <ul><ul><li>User enters this mode to the vi environment using vi cmd.
  52. 52. Keys pressed by the user are interpreted to be the editor commands. </li></ul></ul>
  53. 53. The user can get into the input mode by giving any one of the following: <ul><ul><ul><ul><ul><ul><ul><ul><ul><ul><li>o,O - Opening a line,
  54. 54. r,R - Replacement,
  55. 55. i,I - Insertion
  56. 56. s,S - Substitution
  57. 57. a,A – Apendition </li></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul>(read as Orissa) The control can be brought back to the command mode by using <Esc> key. o,O,r,R,i,I,s,S,a,A
  58. 58. The ex-mode: <ul><li>Also known as last-line mode and allows the user to use the commands in the bottom of the vi screen.
  59. 59. In fact last line is called as command line . </li></ul>
  60. 60. <ul><li>User can get into ex mode from command mode by typing (:) character.
  61. 61. User can get back to the command mode from ex mode by using Enter key.
  62. 62. The control can be brought back to the command mode from input mode by using <Esc> key. </li></ul>
  63. 63. The actual editing is done in vi editor in the buffer called editor buffer . Following cmds are used to quit from vi editor: 1. zz -last command.Saves the file in change mode and then quits. 2. :w -Just saves or writes the buffer contents on to disk file and remains in cmd mode. Quitting the vi Editor
  64. 64. 3. :x -Saves the file in change mode and then quits. 4. :wq - write and quit.Behaves exactly like :x. 5. :q -Quits the vi environment --if change made in editor is already written. --if changes made is not written or saved.It will give suitable message. 6. :q! -Quits the vi env without saving the buffer contents even changes are made.
  65. 65. MOVING THE CURSOR 1 .Moving by One Position: I j Backspace Moves cursor by one character position left. Moves cursor up one line from its present position in same column. Moves cursor down one line from its present position in same column. Spacebar Moves cursor by one character position right. k h
  66. 66. Moving the cursor: $(dollar) - Moves to the end of the Current line 0(zero) - Moves to the beginning of the Current line. ^(caret) - Moves to the first non-blank character at the beginning of the Current line
  67. 67. H(High) - Moves to beginning of Top line of current screen. L(Low) - Moves to beginning of last line of current screen. M(Middle) -Moves to beginning of Middle line of current screen.
  68. 68. * date *pwd *mkdir *rmdir * cat *cp *split *awk * expr *find *cd *ls *csplit *ln *mv * rm * split * awk *cut *diff *grep * head *line *sed SCRIPTING FILES
  69. 69. *Audacity: Audacity is a free, easy-to-use audio editor and recorder for Windows,Mac OS X, GNU/Linux and other operating systems. *Grip: A cd-player and cd-ripper for Gnome desktop. APPLICATIONS
  70. 70. *Inkscape: An Open Source vector graphics editor similar to Illustrator, CorelDraw using the W3C standard Scalable Vector Graphics (SVG) file format. *Ardour: U sed to to record, edit and mix multi-track audio.
  71. 71. Cron Tab and Cron Job <ul><ul><li>The Cron, at, batch Command is used for Scheduling Execution of Command according to requirements.
  72. 72. The term cron is derived from the word chronograph.
  73. 73. Cron is a system deamon that keeps sleeping most of the time. </li></ul></ul>
  74. 74. <ul><ul><li>It typically wakes up every one minute and checks it crontab file for any jobs to be executed during this minute.
  75. 75. All users have a crontab file of his or her own.
  76. 76. The name of this crontab file will be the user's login name. </li></ul></ul>
  77. 77. <ul><li>Scheduled jobs will be present in crontab file.
  78. 78. Cron tab files will be present in the
  79. 79. /var/ spool/ cron/ crontabs directory .
  80. 80. A crontab may contain one or more files,each corresponding to a command that is to be executed periodically at a specific day, date and time. </li></ul>
  81. 81. Minute (0-59) Command to be executed day of week (0-6) 0 being sunday month(1-12) day of month (1-31) Hour (24-h format) Syntax of a crontab line Every line is made up of six fields seperated by a Blank .
  82. 82. <ul><li>In crontab line, an asterisk (*) represents all possible values.
  83. 83. For example, if a * character appears in the fifth field, then the command mentioned in the line will be executed on all days of the week at the specified time. </li></ul>
  84. 84. <ul><li>No spaces will be allowed within a field.
  85. 85. If neccessary group of numbers can be specified within a single field seperated by commas. </li></ul>
  86. 86. Below are two typical crontab lines. 1. 0 0 * * * When executed, the above line runs the script at midnight everyday .
  87. 87. 2. 00,30 09-17 * * 1-5 When execute, the above lines runs the script on all weekdays-Monday to Friday every half hour between 9 and 17 hours
  88. 88. <ul><li>When more than one command is executed,
  89. 89. every cmd has to be written in a seperate line having the above format in a seperate file.
  90. 90. Then it is submitted to crontab command, as shown below, where cmdfile is the name of the file executed periodically. </li></ul>$crontab cmdfile
  91. 91. Who can use cron facilities: <ul><li>Only System administrators are permitted to use.
  92. 92. However, in certain cases,certain users are permitted to use.
  93. 93. The username of those users will be in a file named cron.allow. </li></ul>
  94. 94. <ul><li>And cron.deny -contains name of user to whom respective facilities are denied.
  95. 95. Obviously system administrator maintains all these files. </li></ul>
  96. 96. Thank You