GNU/Linux Command-Line Tools Summary
Total Page:16
File Type:pdf, Size:1020Kb
GNU/Linux Command-Line Tools Summary Gareth Anderson somecsstudent(at)gmail.com Conversion from LyX to DocBook SGML, Index generation Chris Karakas GNU/Linux Command-Line Tools Summary by and Gareth Anderson Conversion from LyX to DocBook SGML, Index generation Chris Karakas This document is an attempt to provide a summary of useful command-line tools available to a GNU/Linux based operating system, the tools listed are designed to benefit the majority of users and have being chosen at the authors discretion. This document is not a comprehensive list of every existent tool available to a GNU/Linux based system, nor does it have in-depth explanations of how things work. It is a summary which can be used to learn about and how to use many of the tools available to a GNU/Linux based operating system. Revision History Revision 1.1 28th February 2006 Revised by: CK Corrected typos, generated new index (9000 index entries!). Revision 1.0 6th February 2006 Revised by: GA Major restructuring, now in a docbook book format. Removed large chunks of content and revised other parts (removed chapters and sectioned some areas more). This is likely the final release by the author, I hope that someone finds this guide useful as I do not intend to continue work on this guide. Revision 0.7.1 25th February 2005 Revised by: CK Set special characters in math mode, produced PDF and PS with Computer Modern fonts in OT1 encoding and created correct SGML for key combinations. Revision 0.7 5th December 2004 Revised by: GA Updated document with new grammatical review. Re-ordered the entire Text section. Removed a fair amount of content. Revision v0.6 20th April 2004 Revised by: GA Attempted to fix document according to TLDP criticisms. Added notes and tips more sectioning. Now complying to the open group standards for the UNIX system trademark. Document should be ready for TLDP site. Revision v0.5 6th October 2003 Revised by: GA Fixed a variety of errors as according to the review and made some consistency improvements to the document. Revision v0.4 15th July 2003 Revised by: GA Made small improvements to the document as suggested (so far) by the thorough TLDP review, improved consistency of document and made small content additions. Revision v0.3 26th June 2003 Revised by: GA Minor errors fixed, updated the appendix with information for finding where a tool is from. Fixed referencing/citation problems and improved further reading and intro sections, added an audio section. Revision v0.2 20th April 2003 Revised by: GA This is the initial public release. Added more code-style then before, broke text-section into more subsections. Improved consistency of document and fixed various index entries. Revision v0.1 27th March 2003 Revised by: GA This is the initial draft release (the first release to be converted from LyX to DocBook SGML). Table of Contents 1. Introduction......................................................................................................... 1 1.1. Formats.........................................................................................................................1 1.2. Who would want to read this guide? ............................................................................2 1.3. Who would not want to read this guide?......................................................................3 1.4. Availability of sources...................................................................................................3 1.5. Conventions used in this guide .....................................................................................4 1.6. Resources used to create this document .......................................................................6 1.7. Feedback .......................................................................................................................6 1.8. Contributors..................................................................................................................7 2. Legal .................................................................................................................... 9 2.1. Disclaimer .....................................................................................................................9 2.2. License ..........................................................................................................................9 3. The Unix Tools Philosophy ................................................................................10 4. Shell Tips............................................................................................................11 4.1. General Shell Tips ......................................................................................................11 4.2. The command-line history ..........................................................................................14 4.3. Other Key combinations .............................................................................................16 4.4. Virtual Terminals and screen......................................................................................16 5. Help ....................................................................................................................18 6. Directing Input/Output .....................................................................................21 6.1. Concept Definitions ....................................................................................................21 6.2. Usage ..........................................................................................................................21 6.3. Command Substitution...............................................................................................23 6.4. Performing more than one command..........................................................................24 7. Working with the file-system..............................................................................26 7.1. Moving around the filesystem.....................................................................................26 7.1.1. Finding files.....................................................................................................28 7.2. Working with files and folders ....................................................................................30 7.3. Mass Rename/copy/link Tools ...................................................................................36 8. Finding information about the system ...............................................................38 8.1. Date/Time/Calendars.................................................................................................41 8.2. Finding information about partitions .........................................................................42 9. Controlling the system .......................................................................................44 9.1. Mounting and Unmounting (Floppy/CDROM/Hard-drive Partitions) ......................44 9.2. Shutting Down/Rebooting the System .......................................................................45 9.3. Controlling Processes..................................................................................................47 9.4. Controlling services.....................................................................................................51 10. Managing users .................................................................................................53 10.1. Users/Groups ............................................................................................................53 iii 11. Text Related Tools............................................................................................55 11.1. Text Editors ..............................................................................................................55 11.2. Text Viewing Tools ...................................................................................................55 11.3. Text Information Tools .............................................................................................57 11.4. Text manipulation tools............................................................................................59 11.5. Text Conversion/Filter Tools....................................................................................64 11.5.1. Conversion tools ............................................................................................66 11.6. Finding Text Within Files ........................................................................................66 12. Mathematical tools ...........................................................................................68 13. Network Commands .........................................................................................70 13.1. Network Configuration..............................................................................................71 13.2. Internet Specific Commands .....................................................................................72 13.3. Remote Administration Related ...............................................................................74 14. Security.............................................................................................................77 14.1. Some basic Security Tools.........................................................................................78 14.2. File Permissions ........................................................................................................78 15.