Contents of linux <ul><li>Install and configure </li></ul><ul><li>uninstall </li></ul><ul><li>Commands </li></ul><ul><li>s...
Introduction to linux This language was especially developed for creating the UNIX system. Using this new technique, it wa...
Installation and configure
installation <ul><li>Installation Overview: </li></ul><ul><li>It's wise to collect configuration information on your hardw...
First installation step <ul><li>The easy way: </li></ul><ul><li>If you have an EIDE/ATAPI CDROM (normal these days), check...
Installation Overview <ul><li>First Installation Steps: The Easy Way </li></ul><ul><li>If you have an EIDE/ATAPI CDROM (no...
Basic parts of an istallation kit <ul><li>Here are the basic parts of an installable distribution: </li></ul><ul><li>The R...
Getting prepared for installation <ul><li>First, collect any manuals you have on your hardware -- motherboard, video card,...
Configuration of linux <ul><li>The default Ubuntu configuration is easy enough to use for most users. If you use your comp...
<ul><li>To help you further, you can enable Ubuntu to install software from more repositories than those that come as stan...
Linux commands
Create directories <ul><li>mkdir - make directories </li></ul><ul><li>usage: </li></ul><ul><li>mkdir [OPTION] DIRECTORY </...
<ul><li>-p, parents  no error if existing, make parent directories as needed </li></ul><ul><li>-v, verbose  print a messag...
To change directories <ul><li>cd -to change directories </li></ul><ul><li>Use cd to change directories. Type cd followed b...
Move directories <ul><li>mv- change the name of a directory </li></ul><ul><li>Type mv followed by the current name of a di...
Present working directories <ul><li>pwd - print working directory </li></ul><ul><li>will show you the full path to the dir...
To change file owner and group <ul><li>chown - change file owner and group </li></ul><ul><li>Usage: </li></ul><ul><li>chow...
<ul><li>-dereference affect the referent of each symbolic link, rather than the symbolic link itself </li></ul><ul><li>-h,...
<ul><li>-no-preserve-root do not treat `/' specially (the default) </li></ul><ul><li>-preserve-root fail to operate recurs...
<ul><li>The  following options modify how a hierarchy </li></ul><ul><li>The  following options modify how a hierarchy is t...
Change file access permissions <ul><li>chmod - change file access permissions </li></ul><ul><li>Usage: </li></ul><ul><li>c...
<ul><li>o - Other. </li></ul><ul><li>a - All. </li></ul><ul><li>r - Read the file. </li></ul><ul><li>w - Write or edit the...
Short listing of directory contents <ul><li>ls - Short listing of directory contents </li></ul><ul><li>-a  list hidden fil...
Copy file command <ul><li>cp - Copy files </li></ul><ul><li>cp  myfile yourfile </li></ul><ul><li>Copy the files &quot;myf...
<ul><li>Copy the file &quot;/data/myfile&quot; to the current working directory and name it &quot;myfile&quot;. Prompt bef...
Cat command <ul><li>cat - Sends file contents to standard output. This is a way to list the contents of short files to the...
Clear and compare between two files <ul><li>clear - Clears the terminal screen. </li></ul><ul><li>cmp file1 file2 - Compar...
Extra commands <ul><li>To check sum: </li></ul><ul><li>cksum [man page] - checksum and count the bytes in a file </li></ul...
<ul><li>fgrep [man page] - print lines matching a pattern </li></ul><ul><li>find [man page] - search for files in a direct...
<ul><li>echo: </li></ul><ul><li>Display message on screen, writes each given STRING to standard output, with a space betwe...
<ul><li>Join: </li></ul><ul><li>Join lines on a common field, writes to standard output a line for each pair of input line...
<ul><li>passwd: </li></ul><ul><li>Modify a user password. </li></ul><ul><li>SYNTAX </li></ul><ul><li>passwd [options...]  ...
<ul><li>-S, --status  report password status on the named account (root only) </li></ul><ul><li>--stdin  read new tokens f...
How to uninstall linux <ul><li>Unstalling an operating system usually means leaving your system unbootable. </li></ul><ul>...
Upcoming SlideShare
Loading in …5
×

Divya

584
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
584
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Divya

  1. 1. Contents of linux <ul><li>Install and configure </li></ul><ul><li>uninstall </li></ul><ul><li>Commands </li></ul><ul><li>samples </li></ul>
  2. 2. Introduction to linux This language was especially developed for creating the UNIX system. Using this new technique, it was much easier to develop an operating system that could run on many different types of hardware. Linux can be downloaded in its entirety from the Internet completely for free. No registration fees, no costs per user, free updates, and freely available source code in case you want to change the behavior of your system. LinusTorvalds, a young man studying computer science at the university of Helsinki, thought it would be a good idea to have some sort of freely available academic version of UNIX, and promptly started to code
  3. 3. Installation and configure
  4. 4. installation <ul><li>Installation Overview: </li></ul><ul><li>It's wise to collect configuration information on your hardware before installing. Know the vendor and model number of each card in your machine; collect the IRQs and DMA channel numbers. You probably won't need this information -- but if it turns out you do, you'll need it very badly. </li></ul><ul><li>If you want to run a &quot;dual-boot&quot; system (Linux and DOS or Windows or both), rearrange (repartition) your disk to make room for Linux. If you're wise, you'll back up everything first! . </li></ul>
  5. 5. First installation step <ul><li>The easy way: </li></ul><ul><li>If you have an EIDE/ATAPI CDROM (normal these days), check your machine's BIOS settings to see if it has the capability to boot from CD-ROM. Most machines made after mid-1997 can do this. </li></ul><ul><li>If yours is among them, change the settings so that the CD-ROM is checked first. This is often in a 'BIOS FEATURES' submenu of the BIOS configuration menus. </li></ul><ul><li>Then insert the installation CD-ROM. Reboot. You're started.If you have a SCSI CDROM you can often still boot from it, but it gets a little more motherboard/BIOS dependent. Those who know enough to spend the extra dollars on a SCSI CDROM drive probably know enough to figure it out. </li></ul><ul><li>The Hard Way </li></ul><ul><li>Make installation floppies. </li></ul><ul><li>Boot an installation mini-Linux from the floppies in order to get access to the </li></ul><ul><li>CD-ROM. </li></ul>
  6. 6. Installation Overview <ul><li>First Installation Steps: The Easy Way </li></ul><ul><li>If you have an EIDE/ATAPI CDROM (normal these days), check your machine's BIOS settings to see if it has the capability to boot from CD-ROM. Most machines made after mid-1997 can do this. </li></ul><ul><li>If yours is among them, change the settings so that the CD-ROM is checked first. This is often in a 'BIOS FEATURES' submenu of the BIOS configuration menus. </li></ul><ul><li>Then insert the installation CD-ROM. Reboot. You're started. </li></ul>
  7. 7. Basic parts of an istallation kit <ul><li>Here are the basic parts of an installable distribution: </li></ul><ul><li>The README and FAQ files. These will usually be located in the top-level directory of your CD-ROM and be readable once the CD-ROM has been mounted under Linux. (Depending on how the CD-ROM was generated, they may even be visible under DOS/Windows.) It is a good idea to read these files as soon as you have access to them, to become aware of important updates or changes. </li></ul><ul><li>A number of bootdisk images (often in a subdirectory). If your CD-ROM is not bootable, one of these is the file that you will write to a floppy to create the boot disk. You'll select one of the above bootdisk images, depending on the type of hardware that you have in your system.Basic Parts of an Installation Kit </li></ul>
  8. 8. Getting prepared for installation <ul><li>First, collect any manuals you have on your hardware -- motherboard, video card, monitor, modem, etc. -- and put them within easy reach. </li></ul><ul><li>Second, gather detailed information on your hardware configuration. One easy way to do this, if you're running MS-DOS 5.0, or up, is to print a report from the Microsoft diagnostic utility msd.exe (you can leave out the TSR, driver, memory-map, environment-strings and OS-version parts). Among other things, this will guarantee you full and correct information on your video card and mouse type, which will be helpful in configuring X later on. </li></ul><ul><li>Third, check your machine for configuration problems with supported hardware that could cause an un-recoverable lockup during Linux installation. </li></ul><ul><li>It is possible for a DOS/Windows system using IDE hard drives andCD ROM to be functional even with the master/slave jumpers on the drives incorrectly set. Linux won't fly this way. If in doubt, check your master-slave jumpers! </li></ul>
  9. 9. Configuration of linux <ul><li>The default Ubuntu configuration is easy enough to use for most users. If you use your computer more than most, you will inevitably want to configure Ubuntu to suit your tastes. </li></ul><ul><li>If you have never used GNOME, you will want to learn the parts of the Ubuntu desktop. The top left of the desktop includes the menu bar, the centre of almost all configuration options. The other parts of the desktop are also explained on pages dealing with the top right and the bottom of the Ubuntu desktop. </li></ul><ul><li>Unless you are perfectly content with the software that comes with Ubuntu, you will want to install more at some point. Most guides on the Internet tell you how to use &quot; sudo apt-get&quot; and other special incantations to install software. Ubuntu, however, comes with its own software installer called Synaptic. You can learn how to use it under &quot;Adding Ubuntu Software and other linux software to ubuntu. </li></ul>
  10. 10. <ul><li>To help you further, you can enable Ubuntu to install software from more repositories than those that come as standard. By adding repositories, you can install non -official Ubuntu software. Further, you can scrap everything that comes with Ubuntu and install your own, customised repository list.Configure Ubuntu </li></ul>
  11. 11. Linux commands
  12. 12. Create directories <ul><li>mkdir - make directories </li></ul><ul><li>usage: </li></ul><ul><li>mkdir [OPTION] DIRECTORY </li></ul><ul><li>Options: </li></ul><ul><li>Create the DIRECTORY(ies), if they do not already exist. </li></ul><ul><li>Mandatory arguments to long options are mandatory for short options too. </li></ul><ul><li>-m, mode=MODE set permission mode (as in chmod), not rwxrwxrwx - umask </li></ul>
  13. 13. <ul><li>-p, parents no error if existing, make parent directories as needed </li></ul><ul><li>-v, verbose print a message for each created directory </li></ul><ul><li>-help display this help and exit </li></ul><ul><li>-version output version information and exit </li></ul>
  14. 14. To change directories <ul><li>cd -to change directories </li></ul><ul><li>Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below. </li></ul>
  15. 15. Move directories <ul><li>mv- change the name of a directory </li></ul><ul><li>Type mv followed by the current name of a directory and the new name of the directory. </li></ul><ul><li>Ex: mv testdir newnamedir </li></ul>
  16. 16. Present working directories <ul><li>pwd - print working directory </li></ul><ul><li>will show you the full path to the directory you are currently in. This is very handy to use, especially when performing some of the other commands on this page. </li></ul><ul><li>Remove directories </li></ul><ul><li>rmdir - Remove an existing directory </li></ul><ul><li>rm -r </li></ul><ul><li>Removes directories and files within the directories recursively. </li></ul>
  17. 17. To change file owner and group <ul><li>chown - change file owner and group </li></ul><ul><li>Usage: </li></ul><ul><li>chown [OPTION] OWNER[:[GROUP]] FILE </li></ul><ul><li>chown [OPTION] :GROUP FILE </li></ul><ul><li>chown [OPTION] --reference=RFILE FILE </li></ul><ul><li>Options: </li></ul><ul><li>Change the owner and/or group of each FILE to OWNER and/or GROUP. With --reference, change the owner and group of each FILE to those of RFILE. </li></ul><ul><li>-c, changes like verbose but report only when a change is made </li></ul><ul><li>-L traverse every symbolic link to a directory encountered </li></ul><ul><li>-P do not traverse any symbolic links (default) </li></ul>
  18. 18. <ul><li>-dereference affect the referent of each symbolic link, rather than the symbolic link itself </li></ul><ul><li>-h, no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can change the ownership of a symlink) </li></ul><ul><li>-from=CURRENT_OWNER:CURRENT_GROUP </li></ul><ul><li>change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute. </li></ul>
  19. 19. <ul><li>-no-preserve-root do not treat `/' specially (the default) </li></ul><ul><li>-preserve-root fail to operate recursively on `/' </li></ul><ul><li>-f, -silent, -quiet suppress most error messages </li></ul><ul><li>-reference=RFILE use RFILE's owner and group rather than the specifying OWNER:GROUP values </li></ul><ul><li>-R, -recursive operate on files and directories recursively </li></ul><ul><li>-v, -verbose output a diagnostic for every file processed </li></ul><ul><li>The following options modify how a hierarch </li></ul>
  20. 20. <ul><li>The following options modify how a hierarchy </li></ul><ul><li>The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect. </li></ul><ul><li>-H if a command line argument is a symbolic link to a directory, traverse it </li></ul><ul><li>-L traverse every symbolic link to a directory encountered </li></ul><ul><li>-P do not traverse any symbolic links (default) </li></ul>
  21. 21. Change file access permissions <ul><li>chmod - change file access permissions </li></ul><ul><li>Usage: </li></ul><ul><li>chmod [-r] permissions filenames </li></ul><ul><li>r Change the permission on files that are in the subdirectories of the directory that you are currently in. permission Specifies the rights that are being granted. Below is the different rights that you can grant in an alpha numeric format.filenames File or directory that you are associating the rights with Permissions </li></ul>
  22. 22. <ul><li>o - Other. </li></ul><ul><li>a - All. </li></ul><ul><li>r - Read the file. </li></ul><ul><li>w - Write or edit the file. </li></ul><ul><li>x - Execute or run the file as a program. </li></ul>
  23. 23. Short listing of directory contents <ul><li>ls - Short listing of directory contents </li></ul><ul><li>-a list hidden files </li></ul><ul><li>-d list the name of the current directory </li></ul><ul><li>-F show directories with a trailing '/' </li></ul><ul><li>executable files with a trailing '*' </li></ul><ul><li>-g show group ownership of file in long listing </li></ul><ul><li>-i print the inode number of each file </li></ul><ul><li>-l long listing giving details about files and directories </li></ul><ul><li>-R list all subdirectories encountered </li></ul><ul><li>-t sort by time modified instead of nam </li></ul>
  24. 24. Copy file command <ul><li>cp - Copy files </li></ul><ul><li>cp myfile yourfile </li></ul><ul><li>Copy the files &quot;myfile&quot; to the file &quot;yourfile&quot; in the current working directory. This command will create the file &quot;yourfile&quot; if it doesn't exist. It will normally overwrite it without warning if it exists. </li></ul><ul><li>cp -i myfile yourfile </li></ul><ul><li>With the &quot;-i&quot; option, if the file &quot;yourfile&quot; exists, you will be prompted before it is overwritten. </li></ul><ul><li>cp -i /data/myfile </li></ul>
  25. 25. <ul><li>Copy the file &quot;/data/myfile&quot; to the current working directory and name it &quot;myfile&quot;. Prompt before overwriting the file. </li></ul><ul><li>cp -dpr srcdir destdir </li></ul><ul><li>Copy all files from the directory &quot;srcdir&quot; to the directory &quot;destdir&quot; preserving links (-poption), file attributes (-p option), and copy recursively (-r option). With these options, a directory and all it contents can be copied to another dir </li></ul>
  26. 26. Cat command <ul><li>cat - Sends file contents to standard output. This is a way to list the contents of short files to the screen. It works well with piping. </li></ul><ul><li>To display calendar: </li></ul><ul><li>cal month year - Prints a calendar for the specified month of the specified year. </li></ul><ul><li>To print contents of specified files: </li></ul><ul><li>cat files - Prints the contents of the specified files. </li></ul>
  27. 27. Clear and compare between two files <ul><li>clear - Clears the terminal screen. </li></ul><ul><li>cmp file1 file2 - Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs. </li></ul><ul><li>diff file1 file2 - Compares two files, reporting all discrepancies. Similar to the cmp command, though the output format differs. </li></ul>
  28. 28. Extra commands <ul><li>To check sum: </li></ul><ul><li>cksum [man page] - checksum and count the bytes in a file </li></ul><ul><li>cp [man page] - copy files and directories </li></ul><ul><li>To display date: </li></ul><ul><li>date [man page] - print or set the system date and time </li></ul><ul><li>dd [man page] - convert and copy a file </li></ul><ul><li>du [man page] - estimate file space usage </li></ul>
  29. 29. <ul><li>fgrep [man page] - print lines matching a pattern </li></ul><ul><li>find [man page] - search for files in a directory hierarchy </li></ul><ul><li>fold [man page] - wrap each input line to fit in specified width </li></ul><ul><li>G- </li></ul><ul><li>grep [man page] - print lines matching a pattern </li></ul>
  30. 30. <ul><li>echo: </li></ul><ul><li>Display message on screen, writes each given STRING to standard output, with a space between each and a newline after the last one. </li></ul><ul><li>Syntax: </li></ul><ul><li>echo [options]... [string]... </li></ul><ul><li>exit: </li></ul><ul><li>Exit from a program, shell or log out of a Unix network. </li></ul><ul><li>Syntax: </li></ul><ul><li>exit </li></ul>
  31. 31. <ul><li>Join: </li></ul><ul><li>Join lines on a common field, writes to standard output a line for each pair of input lines that have identical join fields. </li></ul><ul><li>SYNTAX: </li></ul><ul><li>join [Options]... File1 File2 </li></ul><ul><li>open: </li></ul><ul><li>Open a file in its default application. </li></ul><ul><li>Syntax: </li></ul><ul><li>open Files... </li></ul>
  32. 32. <ul><li>passwd: </li></ul><ul><li>Modify a user password. </li></ul><ul><li>SYNTAX </li></ul><ul><li>passwd [options...] </li></ul><ul><li>OPTIONS </li></ul><ul><li>-d, --delete delete the password for the named account (root only) </li></ul><ul><li>-f, --force force operation (effectively calls `chfn'?) </li></ul><ul><li>-k, --keep-tokens keep non-expired authentication tokens </li></ul><ul><li>-l, --lock lock the named account (root only) </li></ul>
  33. 33. <ul><li>-S, --status report password status on the named account (root only) </li></ul><ul><li>--stdin read new tokens from stdin (root only) </li></ul><ul><li>-u, --unlock unlock the named account (root only) </li></ul><ul><li>-?, --help Show this help message </li></ul><ul><li>--usage Display brief usage message </li></ul>
  34. 34. How to uninstall linux <ul><li>Unstalling an operating system usually means leaving your system unbootable. </li></ul><ul><li>Operating system will not work without their boot files or if they are never called by the boot loader. </li></ul><ul><li>therefore,to remove the presence of an operating system,it is enough to dereference it from the boot loader menu. </li></ul><ul><li>Alternatively, you can also delete its files or replace them with another operating system. </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×