music
OSdata.com: programming text book 

OSdata.com

shell programming

summary

    This chapter looks at UNIX (and Linux) shell programming.

free book on UNIX/Linux System Administration

Teach Yourself UNIX/Linux System Administration and Shell Programming

free computer programming text book project

table of contents
If you like the idea of this project,
then please donate some money.
more information on donating

Google

shell programming

    This chapter looks at UNIX (and Linux) shell programming.

    You may wonder why a chapter on shell scripting is in a programming book. And you may not even read this line because your professor probably has cut this entire chapter out of the version used in your class.

    There are actually several good reasons to include a chapter on shell scripting.

    The chapter can serve as background material so that a student new to UNIX (or Linux or Mac OS X) will be able to make effective use of the shell for work on programming assignements.

    There are actual classes in shell scipting, especially at junior colleges and community colleges.

    This chapter goes beyond the typical material in a shell scripting class and presents material related to either downloading and compiling existing software (including ports to new hardware and/or operating systems) or for preparing your own software for release via the internet.

other

   “22. A good system can’t have a weak command language.” —Alan Perlis, Epigrams on Programming, ACM’s SIGPLAN Notices Volume 17, No. 9, September 1982, pages 7-13

chapter contents

  1. cool shell tricks
  2. UNIX/Linux history
  3. choice of shells
  4. connecting to a shell (Telnet and SSH; terminal emulator)
  5. shell basics (book conventions; root or superuser; starting your shell; login and password; prompt; command example)
  6. login/logout (login; select system; account name; password; terminal type; logout; exit)
  7. passwd (setting password; local password; periodic changes; 100 most common passwords; secure passwords; superuser)
  8. command structure (single command; who; failed command; date; options, switches, or flags; universal time; arguments; options and arguments; operators and special characters)
  9. quick tour of shell commands
  10. man (using man for help; man sections)
  11. cat (creating files; example files for this book; viewing files; combining files)
  12. command separator (semicolon)
  13. less, more, pg last updated: 27 Aug 2012
  14. file system basics (graphics examples; directory tree; important directories; home directory; parent and child directories; absolute paths; relative paths; dots, tildes, and slashes)
  15. pwd
  16. command history
  17. built-in commands
  18. ls
  19. cd
  20. cp
  21. mv
  22. rm (recursive)
  23. shred
  24. mkdir
  25. alias
  26. pipe
  27. sysadmin and root/superuser
  28. sudo and root
  29. su
  30. who
  31. advanced file systems
  32. major directories
  33. Network File System (NFS)
  34. chmod
  35. chown
  36. management tools
  37. df
  38. du
  39. processes
  40. ps
  41. kill
  42. nice
  43. w
  44. uname
  45. uptime
  46. top
  47. lsof
  48. free
  49. vmstat
  50. defaults (screencapture; Mac Flashback Trojan)
  51. init (init; Linux run levels)
  52. sendmail
  53. ifconfig (view configuration; static IP address)
  54. arp
  55. netstat (view connections; main info; routing address)
  56. route (view connections; routing commands)
  57. ping (test packets; measuring)
  58. nslookup
  59. traceroute (entire route; etiquette)
  60. cURL
  61. sysstat
  62. at (example; removing a job; timing)
  63. back ups
  64. tar
  65. touch (multiple files; specific time)
  66. find
  67. sed (fixing end of line; adding line numbers)
  68. awk (remove duplicate lines)
  69. screencapture (from graphic user interface; changing defaults; command line screenshots)
  70. signals
  71. LAMP
  72. installing software from source
  73. test bed
  74. grep
  75. ssh
  76. vim
  77. diff
  78. sort
  79. export
  80. xargs
  81. gzip
  82. bzip2
  83. unzip
  84. shutdown
  85. ftp
  86. crontab
  87. service
  88. mount
  89. whereis
  90. whatis
  91. locate
  92. tail
  93. mysql
  94. yum
  95. rpm
  96. date
  97. wget
  98. file permissions
  99. nano
  100. troff
  101. command summaries
  102. Forth-like routines

free music player coding example

    Coding example: I am making heavily documented and explained open source code for a method to play music for free — almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).

    View music player in action: www.musicinpublic.com/.

    Create your own copy from the original source code/ (presented for learning programming).

    Work on this project is very slow because I am homeless. I am available for work if someone can provide an indoor place to work in Costa Mesa, California, electricity, internet connections, a flat raised working surface (such as a table or desk), a sitting device (such as a chair or stool), and a fully functional reasonably modern used computer. I’m already homeless, so you don’t need to pay me (and I understand how much business people hate the minimum wage law). Just give me a chance to work.


return to table of contents
free downloadable college text book
free downloadable system administrator and shell programming book

view text book
HTML file

Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.

previous page next page
previous page next page

free book on UNIX/Linux System Administration

Teach Yourself UNIX/Linux System Administration and Shell Programming

free computer programming text book project

Building a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming.

If you like the idea of this project,
then please donate some money.

send donations to:
Milo
PO Box 1361
Tustin, California 92781

    At the time I am homeless. This greatly interferes with my ability to create this project, which can help nearly 20 million U.S. college students and more than 150 million students world-wide. I am looking for 30 rich people or corporations willing to donate $10 a month to my church so that the church can provide a place indoors for me to continue work. If you want to donate, please see help project. Thanks much.

Supporting the entire project:

    If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church)

more information on donating

Some or all of the material on this web page appears in the
free downloadable college text book on computer programming.


I do the news as an unpaid volunteer for KOCI 101.5 FM, Newport Beach/Costa Mesa (also available on the web)


Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2010, 2012 Milo

    Created: November 8, 2010

    Last Updated: November 20, 2012


return to table of contents
free downloadable college text book
free downloadable system administrator and shell programming book

previous page next page
previous page next page