Basic C L I

1,430 views
1,331 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,430
On SlideShare
0
From Embeds
0
Number of Embeds
528
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Basic C L I

  1. 1. Basic CLI Session 2 By: Bahaa S. Salama (bahaa2008)
  2. 2. Why brother ? <ul><li>Powerful
  3. 3. Easier to get help (Not descriptive)
  4. 4. Performance (Take less resources) </li></ul>“ A child you use a computer by looking at the pictures. When he grow up, he learn to read and write.” William Shotts, Jr
  5. 5. Shell and Terminal <ul><li>Shell is a command-line interpreter sh,ash,bash,csh,ksh,zsh,busybox
  6. 6. Terminal or terminal emulators is a emulator to real shell (console) xterm, konsole, gnome-terminal </li></ul>
  7. 7. Managing Files <ul><li>List Files ls
  8. 8. Create file touch
  9. 9. Copy file cp
  10. 10. Move file mv
  11. 11. Delete file rm
  12. 12. Display file cat - less - more </li></ul>
  13. 13. ls <ul><li>-l long listing
  14. 14. -d directories
  15. 15. -h human readable sizes
  16. 16. -a all files
  17. 17. -w wide listing </li></ul>
  18. 18. Managing Directories <ul><li>List directories ls
  19. 19. Make directory mkdir
  20. 20. Change to directory cd
  21. 21. Copy directory cp
  22. 22. Move directory mv
  23. 23. Remove directory rmdir
  24. 24. Current directory pwd </li></ul>
  25. 25. Interesting commands <ul><li>Date and Time date
  26. 26. Calender cal
  27. 27. Manuals man
  28. 28. Information info </li></ul>
  29. 29. Interesting CLI Tricks <ul><li>Playing music and video
  30. 30. Chatting and Web
  31. 31. Displaying Images
  32. 32. Tweeting from CLI
  33. 33.
  34. 34.
  35. 35. And the list is still going ^_^ </li></ul>
  36. 36. How to get help <ul><li>Man pages
  37. 37. Info pages
  38. 38. Google
  39. 39. Forums
  40. 40. IRC
  41. 41. Community
  42. 42. Do u want more ? </li></ul>
  43. 43. Break
  44. 44. Working Multiple Files <ul><li>Using the wild cards </li><ul><li>* for multiple characters
  45. 45. ? for single character </li></ul><li>Using regex </li><ul><li>To be covered later </li></ul></ul>
  46. 46. Searching for Files <ul><li>Using find </li><ul><li>-name
  47. 47. -size
  48. 48. -type
  49. 49. -user </li></ul></ul>
  50. 50. Redirection and Piping <ul>put to file > get from file < append to file >> pipe | Note: more about redirecting of output in the bash sessions </ul>
  51. 51. Symbolic Links <ul><li>What is links ?
  52. 52. Types of links </li><ul><li>Soft links
  53. 53. Hard links </li></ul><li>How to make a link ? </li></ul>
  54. 54. Linux Directories <ul>/bin /sbin /home /etc /media /tmp /boot /dev </ul><ul>/root /usr/bin /usr/sbin /var/log /var/cache /lib /opt </ul>
  55. 55. Know more about your pc <ul><li>CPU cat /proc/cpuinf
  56. 56. Memory cat /proc/meminfo
  57. 57. PCI Cards lspci
  58. 58. USB Devices lsusb
  59. 59. Network interfaces ifconfig
  60. 60. Free memory free -m
  61. 61. Monitor Working processes top </li></ul>
  62. 62. Break
  63. 63. Permissions <ul><li>Why Permissions ?
  64. 64. User,Group,Other
  65. 65. Read,Write,Execute
  66. 66. Permissions symbolically </li><ul><li>r read u user
  67. 67. w write g group
  68. 68. x execute o other </li></ul></ul>
  69. 69. Permissions - cont. <ul>Permissions numerically <ul>7 rwx 3 -wx 6 rw- 2 -w- 5 r-x 1 --x 4 r-- 0 --- </ul><li>Change user chown
  70. 70. Change group chgrp
  71. 71. Change permissions chmod </li></ul>
  72. 72. References <ul><li>Wikipedia
  73. 73. http://linuxzoo.net
  74. 74. http://grussell.org/ns/lectures.html
  75. 75. http://www.linuxawy.org/node/46
  76. 76. http://www.linuxawy.org/node/51 </li></ul>
  77. 77. Questions
  78. 78. Thanks

×