Python for Unix and Linux System Administration [Noah Gift] by Noah Gift, Jeremy Jones

By Noah Gift, Jeremy Jones

Python is a perfect language for fixing difficulties, particularly in Linux and Unix networks. With this pragmatic booklet, directors can assessment numerous projects that frequently happen within the administration of those structures, and learn the way Python delivers a extra effective and no more painful option to deal with them.

Show description

Read Online or Download Python for Unix and Linux System Administration [Noah Gift] (2009) PDF

Best python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via info constructions, Washington and Lee college professor Kenneth A. Lambert provides the entire vital subject matters in CS1 and CS2 in a single quantity. This good value layout offers teachers with a constant method of instructing introductory programming and knowledge buildings over a typical two-term path series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for facts research is worried with the nuts and bolts of manipulating, processing, cleansing, and crunching facts in Python. it's also a realistic, smooth advent to medical computing in Python, adapted for data-intensive purposes. this can be a booklet in regards to the components of the Python language and libraries you'll have to successfully resolve a huge set of knowledge research difficulties.

Python and AWS

For those who intend to take advantage of Amazon net providers (AWS) for distant computing and garage, Python is a perfect programming language for constructing functions and controlling your cloud-based infrastructure. This cookbook will get you all started with greater than dozen recipes for utilizing Python with AWS, in response to the author’s boto library.

Artificial Intelligence with Python

Construct real-world synthetic Intelligence functions with Python to intelligently have interaction with the realm round you approximately This ebook Step into the fantastic international of clever apps utilizing this complete advisor input the area of man-made Intelligence, discover it, and create your personal purposes paintings via easy but insightful examples that would get you up and working with man made Intelligence very quickly Who This booklet Is For This e-book is for Python builders who are looking to construct real-world synthetic Intelligence purposes.

Additional resources for Python for Unix and Linux System Administration [Noah Gift] (2009)

Sample text

Since you are reading this book, we assume you have attained some level of familiarity over the Unix shell. If that is the case, then gaining some level of mastery over IPython will be easy. One of the reasons that it is unclear what you should do when you first see the IPython prompt, is that what you can do is virtually unlimited. So it is more appropriate to think in terms of what you want to do. All of the features of the Python language are available to you from within the IPython prompt. Plus, there are a number of IPython “magic” functions available to you.

1Gi 96% / 0Bi 100% /dev 0Bi 100% /dev 0Bi 100% /net 0Bi 100% /home 193Gi 36% /Volumes/Backup 225Gi 52% /Volumes/EditingDrive Now we get the exact same output that we get from script that doesn’t contain functions. If you are puzzled, this is a good sign. To see the reason we get the same exact output, we just need to look at the source code. If you are following along at home, open up another terminal tab or window and look at the script pysysinfo_func: #Main function that call other functions def main(): uname_func() disk_func() main() The problem is that main function we created at the end of the last chapter is coming back to bite us.

Page [options] OBJECT If no object is given, use _ (last output). Options: -r: page str(object), don't pretty-print it. And here is one final piece of IPython help that is great for generating a summary of the way things work, as well as a summary of the magic functions themselves. , obj?? obj). : List names in 'foo' containing 'abc' in them. : Information about IPython's 'magic' % functions. Magic functions are prefixed by %, and typically take their arguments without parentheses, quotes or even commas for convenience.

Download PDF sample

Rated 4.55 of 5 – based on 41 votes