Linux system administration pdf free download

Comprehensive information on DSL, wiki, forums, howtos, documentation. Damn Small Linux is a very versatile 50MB mini desktop oriented Linux distribution. DSL was linux system administration pdf free download developed as an experiment to see how many usable desktop applications can fit inside a 50MB live CD.

But over time Damn Small Linux grew into a community project with thousands of development hours put into refinements including a fully automated remote and local application installation system and a very versatile backup and restore system which may be used with any writable media including a USB device, floppy disk, or a hard drive. All applications have been chosen for the best balance of functionality, size and speed. In our quest to save space and have a fully functional desktop we’ve made many GUI administration tools which are fast yet still easy to use. Curious about who we are? Supports Application launching from limited icons. Where to go to from here? If you are buying anything at all, use our links to fund the project!

In this article we will review sed, the well-known stream editor, and share 15 tips to use it in order to accomplish the goals mentioned earlier, and more. Every system administrator has to deal with plain text files on a daily basis. Knowing how to view certain sections, how to replace words, and how to filter content from those files are skills you need to have handy without having to do a Google search. What if we need to view a section in the middle?

On the other hand, it’s possible that you want to print the entire file except a certain range. It’s possible that you’re interested in set of non-consecutive lines, or in more than one range. Of course, you can indicate a single line through its corresponding number instead of a range. Sometimes configuration files are loaded with comments. While this is certainly useful, it may be helpful to display only the configuration directives sometimes if you want to view them all at a glance.

The vertical bars indicate boolean operations, whereas the backward slash is used to escape the vertical bars. To replace a word beginning with uppercase or lowercase with another word, we can also use sed. This tip may come in handy if you want to inspect a large configuration file. Inserting a blank space every other line and piping the output to less will result in a more-friendly reading experience. Linux, removing hidden newline characters inserted by some text editors used in those platforms.

Then changes will not be returned to the screen, but will be saved to the file. Sometimes it’s a good idea to save a backup copy of the original file just in case. 1 represents the beginning of each line up to the comma. 2 is a placeholder for everything that is right of the comma to the end of the line. Feel free to change it to whatever you wish. Sometimes replacing all instances of a given word, or a random few, is not precisely what we need. Perhaps we need to perform the replacement if a separate match is found.

Then we will convert multiple spaces into a single one. Is there any other tip that you use on a regular basis and would like to share with us and the rest of the community? If so, feel free to let us know using the comment form below. We are thankful for your never ending support. Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work. Your name can also be listed here.

I got a question here. Is there a option to roll back to original content once after using sed command to replace any? Even though I have used regex a few times, I keep finding it difficult to create them, thank you for this excellent tips. I am glad that you found these tips useful. Please help us spread the word by sharing this article in your social network profiles!

Thank you for taking the time to comment! Please helps us to spread the word by sharing this article through your social media profiles! Your email address will not be published. Notify me of followup comments via e-mail. How to Install Nagios 4.