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. sysadmin and root/superuser
  24. sudo and root
  25. su
  26. who
  27. major directories
  28. shred
  29. df
  30. du
  31. ps
  32. w
  33. uptime
  34. top
  35. free
  36. vmstat
  37. defaults (screencapture; Mac Flashback Trojan)
  38. init (init; Linux run levels)
  39. ifconfig (view configuration; static IP address)
  40. arp
  41. netstat (view connections; main info; routing address)
  42. route (view connections; routing commands)
  43. ping (test packets; measuring)
  44. nslookup
  45. traceroute (entire route; etiquette)
  46. sysstat
  47. at (example; removing a job; timing)
  48. tar
  49. touch (multiple files; specific time)
  50. find
  51. sed (fixing end of line; adding line numbers)
  52. awk (remove duplicate lines)
  53. screencapture (from graphic user interface; changing defaults; command line screenshots)
  54. installing software from source
  55. test bed
  56. grep
  57. ssh
  58. vim
  59. diff
  60. sort
  61. export
  62. xargs
  63. gzip
  64. bzip2
  65. unzip
  66. shutdown
  67. ftp
  68. crontab
  69. service
  70. kill
  71. mount
  72. chmod
  73. chown
  74. mkdir
  75. uname
  76. whereis
  77. whatis
  78. locate
  79. tail
  80. mysql
  81. yum
  82. rpm
  83. date
  84. wget
  85. file permissions
  86. nano
  87. troff
  88. 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: August 31, 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