Published on

Published in: Technology
1 Like
  • Be the first to comment

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

No notes for slide


  1. 1. WHAT IS LINUX??? Linux is an operating system. It is the software on a computer that enables applications and the computer operator to access the devices on the computer to perform desired functions. The operating system (OS) relays instructions from an application to, for instance, the computer's processor. The processor performs the instructed task, then sends the results back to the application via the operating system.
  2. 2. PROPERTIES <ul><li>Linux is free. </li></ul><ul><li>Linux is portable to any hardware platform. </li></ul><ul><li>Linux is secure and versatile. </li></ul><ul><li>Linux is scalable. </li></ul><ul><li>The Linux OS and most Linux applications have very short debug-times. </li></ul>
  3. 3. FILE SYSTEM &quot; On a UNIX system, everything is a file; if something is not a file, it is a process.&quot; This statement is true because there are special files that are more than just files (named pipes and sockets, for instance), but to keep things simple, saying that everything is a file is an acceptable generalization. A Linux system, just like UNIX, makes no difference between a file and a directory, since a directory is just a file containing names of other files. Programs, services, texts, images, and so forth, are all files. Input and output devices, and generally all devices, are considered to be files, according to the system.
  5. 5. THE KERNEL The kernel is the heart of the system. It manages the communication between the underlying hardware and theperipherals. The kernel also makes sure that processes and daemons (server processes) are started and stoppedat the exact right times. The kernel has a lot of other important tasks, so many that there is a specialkernel-development mailing list on this subject only, where huge amounts of information are shared. It wouldlead us too far to discuss the kernel in detail. For now it suffices to know that the kernel is the most important file on the system.
  6. 6. WHAT IS SHELL? <ul><li>A shell manages the interaction between the system and its users. </li></ul><ul><li>The shell, on the other hand, is an advanced way of communicating with the system, because it allows for two-way conversation and taking initiative </li></ul>
  7. 7. TYPES OF SHELL <ul><li>sh or Bourne Shell: The original shell still used on UNIX systems and in UNIX related environments.This is the basic shell, a small program with few features. When in POSIX-compatible mode, bash will emulate this shell. </li></ul><ul><li>bash or Bourne Again SHell: the standard GNU shell, intuitive and flexible. Probably most advisable </li></ul><ul><li>for beginning users while being at the same time a powerful tool for the advanced and professional </li></ul><ul><li>user. On Linux, bash is the standard shell for common users. </li></ul><ul><li>csh or C Shell: the syntax of this shell resembles that of the C programming language. Sometimes </li></ul><ul><li>asked for by programmers. </li></ul><ul><li>tcsh or Turbo C Shell: a superset of the common C Shell, enhancing user-friendliness and speed. </li></ul><ul><li>ksh or the Korn shell: sometimes appreciated by people with a UNIX background. A superset of the </li></ul><ul><li>Bourne shell; with standard configuration a nightmare for beginning users. </li></ul>
  8. 8. SECURITY <ul><li>Access rights: Linux's first line of defense </li></ul><ul><li>The Tools </li></ul><ul><li>The chmod command </li></ul><ul><li>The file mask </li></ul>
  9. 9. Access rights:First line defense The Linux security model is based on the one used on UNIX systems, and is as rigid as the UNIX security model (and sometimes even more), which is already quite robust. On a Linux system, every file is owned by a user and a group user. There is also a third category of users, those that are not the user owner and don'tbelong to the group owning the file. For each category of users, read, write and execute permissions can be granted or denied.
  10. 10. The file mask When a new file is saved somewhere, it is first subjected to the standard security procedure. Files without permissions don't exist on Linux. The standard file permission is determined by the mask for new file creation.Instead of adding the symbolic values to each other, as with chmod, for calculating the permission on a new file they need to be subtracted from the total possible access rights.
  11. 11. <ul><li>The chmod command </li></ul>A normal consequence of applying strict file permissions, and sometimes a nuisance, is that access rights will need to be changed for all kinds of reasons. When you type id on the command line, you get a list of all the groups that you can possibly belong to,preceded by your user name and ID and the group name and ID that you are currently connected with.However, on many Linux systems you can only be actively logged in to one group at the time. By default, this active or primary group is the one that you get assigned from the /etc/passwd file. The fourth field of this file holds users' primary group ID, which is looked up in the /etc/group file. In order to allow more flexibility, most Linux systems follow the so-called user private group scheme, that assigns each user primarily to his or her own group. This group is a group that only contains this particular user, hence the name &quot;private group&quot;.
  12. 12. Ls command <ul><li>DESCRIPTION: It is used to list all the files and directories of a directory. </li></ul><ul><li>SYNTAX: ls </li></ul><ul><li>EXAMPLE: ls dir_name </li></ul>
  13. 13. MKDIR COMMAND <ul><li>DESCRIPTION: It is used to create a directory </li></ul><ul><li>SYNTAX: mkdir dir_name </li></ul><ul><li>EXAMPLE:mkdir kk </li></ul>
  14. 14. RMDIR COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>It is used to delete a directory. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>rmdir dir_name </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>rmdir kk </li></ul>
  15. 15. CD COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>List files in the current working directory except those starting with . and only show the file name. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>cd dir_name </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>cd kk </li></ul>
  16. 16. MV COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>It is used to move or rename files </li></ul><ul><li>SYNTAX: </li></ul><ul><li>mv sourcefile destin_file </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>mv ar1 ar2 </li></ul>
  17. 17. PWD COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>Shows the name of the current working directory. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>pwd </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>pwd </li></ul>
  18. 18. CAT COMMAND <ul><li>DESCRIPTION:The cat command is used to join multiple files together and print the result on screen. </li></ul><ul><li>SYNTAX: CAT </li></ul>
  19. 19. CLEAR COMMAND <ul><li>DESCRIPITION: </li></ul><ul><li>It is used to clear up the command prompt window. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>clear </li></ul>
  20. 20. DATE COMMAND <ul><li>DESCRIPITION: </li></ul><ul><li>It is used to set the date and time for the system.This command is helpful but must be used when superuser or logged in as root. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>date MMDDhhmm </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>date 10080900 </li></ul>
  21. 21. DF COMMAND <ul><li>DESCRIPITION: </li></ul><ul><li>It provides a very quick check of your file system disk space. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>df </li></ul>
  22. 22. FINGER COMMAND <ul><li>DESCRIPITION: </li></ul><ul><li>It allows you to see who else is on the system or get detailed information about a person who has access to the system. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>finger user_name </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>finger kk </li></ul>
  23. 23. FINGER COMMAND <ul><li>DESCRIPITION: </li></ul><ul><li>It is not only used to log out from one's machine but also to logout a particular user session from the system. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>logout </li></ul>
  24. 24. PS COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>It will show all the tasks you are currently running on the system, it's the equivalent of Windows Task Manager . </li></ul><ul><li>SYNTAX: </li></ul><ul><li>ps </li></ul>
  25. 25. KILL COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>The 'kill' command is complementary to the 'ps' command as it will allow you to terminate a process revealed with the previous command. In cases where a process is not responding, you would use the following syntax to effectively kill it: 'kill -9 pid' where 'pid' is the Process ID (PID) that 'ps' displays for each task. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>kill -l [ signal ] </li></ul>
  26. 26. GREP COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>Grep searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>grep [options] PATTERN [FILE...] </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>-a, --text </li></ul><ul><li>Process a binary file as if it were text; this is equivalent to the --binary-files=text option. </li></ul><ul><li>-B NUM, --before-context=NUM </li></ul><ul><li>Print NUM lines of leading context before matching lines. Places a line containing -- between contiguous groups of matches. </li></ul><ul><li>-C NUM, --context=NUM </li></ul><ul><li>Print NUM lines of output context. Places a line containing -- between contiguous groups of matches. </li></ul>
  27. 27. WC COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>It prints the number of lines, words, and bytes in the file. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>wc file_name </li></ul><ul><li>EXAMPLE: </li></ul><ul><li> wc myfil </li></ul>
  28. 28. TOUCH COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>It changes the date/time stamp of the file filename to the current time. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>touch file_name </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>touch kk </li></ul>
  29. 29. SHRED COMMAND <ul><li>DESCRITION: Repeatedly overwrite the contents of the file filename with garbage, so that nobody will ever be able to read its original contents again. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>shred filename </li></ul>
  30. 30. OD COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>Display contents as octal numbers. This can be useful when the output contains non-printable characters. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>od my_file |more </li></ul>
  31. 31. PSTREE COMMAND <ul><li>DESCRIPITON: </li></ul><ul><li>It lists the processes in a tree format. This can be VERY useful when working with WebSphere or other heavy duty applications. </li></ul><ul><li>SYNTAX: pstree </li></ul>
  32. 32. MAN COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>It formats and displays the on-line manual pages. </li></ul><ul><li>EXAMPLE: </li></ul><ul><li>-C config_file </li></ul><ul><li>Specify the configuration file to use; the default is /etc/man.config. (See man.conf(5).) </li></ul><ul><li>-M path </li></ul><ul><li>Specify the list of directories to search for man pages. Separate the directories with colons. An empty list is the same as not specifying -M at all. See SEARCH PATH FOR MANUAL PAGES. </li></ul>
  33. 33. BC COMMAND <ul><li>DESCRIPTION: </li></ul><ul><li>It is an arbitrary precision calculator language. </li></ul><ul><li>EXAMPLE:bc </li></ul>