Linux

1,293 views
1,290 views

Published on

Learn Linux installation with help of screenshots and various basic and advanced commands of Linux

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

No Downloads
Views
Total views
1,293
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
102
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Linux

  1. 1. LINUX INSTALLATION & LINUX COMMANDS -BY H. ANKUSH.JAIN
  2. 2. WHAT IS LINUX ? <ul><li>Unix-type operating system </li></ul>
  3. 3. INSTALL LINUX <ul><li>Insert the cd and restart the system </li></ul><ul><li>The black screen with a choice for language appears. Select the comfortable language. </li></ul>
  4. 4. The folowing screen appears
  5. 5. The computer will now boot from the CD/DVD. Click on the Install Ubuntu button.
  6. 6. STEP 1:- Language selection. select the comfortable language. The click on the forward button to proceed.
  7. 7. STEP 2:- Select the time zone of your location by clicking on the the red dot near your place on the map. Proceed FORWARD.
  8. 8. STEP 3:- Click on your keyboard layout. Again FORWARD.
  9. 9. STEP 4:- Take Manual (recemended) because of flexibility. Press forward.Partition table comes.For dual use ext3 for only one partition in which Linux is installed and to use fat32 for all other partitions. Leave the partition where Windows is installed as such if you wish to facilitate dual boot Create one partition in ext3 format and set the mount point as ‘/’ backslash. Its better to give around 5 GB for this partition. A swap area double the size of your RAM is needed. press FORWARD.
  10. 11. STEP 5:- Give your Details Here. Now click on Forward.
  11. 12. STEP 6:- Step 6 unfortunately has no screenshots. They ask whether you want to migrate your user settings like user accounts from your existing OS which would be Windows in most cases. I never select this option. But if its needed you can do it.
  12. 13. STEP 7:- “Ready to Install”. The last step... You see all the selections you have made in the first six steps and see an install button. You can verify them, change them if needed by going back. When all changes have been made, press on INSTALL button.
  13. 14. Now they start the installation procedures. They set up the partitions, format it. Copies the necessary OS files into the / directory or root directory. It will take some time.
  14. 15. click on the Restart now option and wait for restarting. Login using the username and password given during installation
  15. 16. Login using the username and password given during installation
  16. 17. The linux screen appears.
  17. 18. COMMANDS
  18. 19. ls - List information about file(s) SYNTAX: ls [Options]... [File]... [Options]= -a, -A, -b, -B, -c, -C ....
  19. 20. mkdir Create new folder(s) SYNTAX mkdir [Options] folder... OPTIONS = -m, -p
  20. 21. cd - Change Directory Syntax cd [Options] [Directory] Options= -P, -L
  21. 22. cat> - Creates a File(s) SYNTAX cat> filename...
  22. 23. cat Display the contents of a file Syntax cat [Options] [File]... Options = -A, -b, -e
  23. 24. awk - Find and Replace text, database sort/validate/index Syntax: awk <options> 'Program' File1 ... options = -F FS, -f ...
  24. 25. head - Output the first part of file(s) SYNTAX head [options]... [file]... Options: -c, -q, -v...
  25. 26. tail Output the last part of files Syntax tail [options]... [file]... Options: -f, -c bytes...
  26. 27. nl Number lines and write files SYNTAX nl [options]... [File]... OPTIONS: -b STYLE, -d CD ....
  27. 28. cut Divide a file into several parts Syntax cut [OPTION]... [FILE]... OPTIONS: -b BYTE-LIST, -n, -s ...
  28. 29. egrep Search file(s) for lines that match an extended expression Syntax: egrep [ options ] 'PATTERN' files ... options: -c, -s ...
  29. 30. cmp Compare two files Syntax cmp options... FromFile [ToFile] Options: -c, -l ...
  30. 31. diff-Display the differences between two files Syntax diff [options] from-file to-file Options: -a, -b, -B ...
  31. 32. du Estimate file space usage Syntax du [options]... [file]... OPTIONS: -a, -b, -c ...
  32. 33. file - Determine file type SYNTAX: file file-name
  33. 34. look-Display lines beginning with a given string Syntax: look [-df] [-t termchar] string [file] Options: -d, -f ,-t
  34. 35. sort Sort text files Syntax sort [options] [file...] options: -c, -m
  35. 36. sum Print a checksum for a file Syntax sum [options]... [file]... Options: -r, -s ...
  36. 37. wc Print byte, word, and line counts Syntax wc [options]... [file]... options: -c, -w, -l ...
  37. 38. fgrep-Search file(s) for lines that match a fixed string Syntax: fgrep <options> ... all options are the same as grep
  38. 39. rm Remove files Syntax rm [options]... file... options: -d, -f ...
  39. 40. rmdir Remove folder(s) Syntax rmdir [options]... folder(s)... Options: -p
  40. 41. clear Clear terminal screen SYNTAX : clear
  41. 42. alias Create an alias Syntax alias [-p] [name[=value] ...] Key: -p, -a
  42. 43. date Display or change the date & time Syntax date [option]... [+Format] options: -d, -f ...
  43. 44. time Measure Program running time Syntax time [option...] command [arg...] Options: -o, -a, -f ...
  44. 45. times User and system times Syntax times The return status is zero.
  45. 46. cal Display a calendar Syntax cal [-mjy] [[month] year] Options: -m, -j, -y ...
  46. 47. free Display memory usage SYNTAX: free
  47. 48. df Display free disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
  48. 49. df Display free disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
  49. 50. dig DNS lookup Syntax:dig [@server] [-b address] [-c class] [-f filename] [-k filename][-p port#] [-t type] [-x addr] [-y name:key] [-4] [-6][name] [type] [class] [queryopt...]
  50. 51. id Print user and group id's SYNTAX id [options]... [username] OPTIONS: -g, -G, -n ...
  51. 52. man Help manual Syntax man [-k] [command Options: -s, -k
  52. 53. pwd Print Working Directory Syntax pwd options] Options: -L, -P
  53. 54. dirs-Display list of remembered directories Syntax dirs [options] Options: -c, -l, -p ...
  54. 55. hostname Print or set system name SYNTAX hostname [name]
  55. 56. logname: Print current login name SYNTAX: logname Prints the calling user's name, as found in the file`/var/run/utmp', and exits with a status of 0.
  56. 57. who-Print all usernames currently logged in Syntax- who [options] [file] [am i] options: -m, -q, -s ...
  57. 58. whoami- Print the current user id and name (`id -un') Syntax: whoami
  58. 59. echo Display message on screen Syntax echo [options]... [string]... Options: -n, -e, -E ...
  59. 61. type Describe a command Syntax type [name ...]
  60. 62. expr Evaluate expressions Syntax expr expression...
  61. 63. sleep: Delay for a specified time Syntax: sleep [NUMBER [s/m/h/d]... s- second; m- minute; h- hour; d- day
  62. 64. help: Display help for a built-in command
  63. 65. dircolors Colour setup for `ls' Syntax: eval `dircolors [options]... [file]` options: -b, -c ...
  64. 66. env Environment variables Syntax: env [OPTION]... OPTION: -u, -i
  65. 67. Fsck: File system consistency check and repair Syntax: fsck [options] [filesystem] ... options: -r, -s, -t ..
  66. 68. top List processes running on the system Syntax: top options options: -b, -c, -d ...
  67. 69. history Command History SYNTAX history [option] options: -c, -d, -a ...
  68. 70. Linux advanced commands <ul><li># cal 2007- show the timetable of 2007 </li></ul><ul><li># cat /proc/cpuinfo- show information CPU info </li></ul><ul><li># cat /proc/interrupts - show interrupts </li></ul><ul><li># cat /proc/meminfo - verify memory use </li></ul><ul><li># cat /proc/swaps- show file(s) swap </li></ul><ul><li># cat /proc/version - show version of the kernel </li></ul><ul><li># cat /proc/net/dev - show network adpters and statistics </li></ul>
  69. 71. 9)# cat /proc/net/dev - show network adpters and statistics 10)# cat /proc/mounts - show mounted file system(s) 11)# clock -w - save date changes on BIOS 12)# date - show system date 13)# date 041217002007.00- set date and time - MonthDayhoursMinutesYear.Seconds 14)# dmidecode -q - show hardware system components - (SMBIOS / DMI) 15)# hdparm -i /dev/hda displays the characteristics of a hard-disk
  70. 72. 16)# lspci -tv display PCI devices 17)# lsusb -tv show USB devices 18)# uname -m show architecture of machine(2) 19)# uname -r show used kernel version 20)# arch - show architecture of machine(1)
  71. 73. Thank You

×