Subscribe
Tutorial search

Linux Script Tutorials


Sort by:
Count the Number of Lines in a File in UNIX
Count the Number of Lines in a File in UNIX
There is no official way to get the number of lines in a file with Unix, but here is a script that can achieve the desired effect.
Difficulty:
FreeBSD Admin Commands and Tools
FreeBSD Admin Commands and Tools
This short guide shows most useful FreeBSD admin commands. It's only a list of commands and parameters and is not a complete description of those commands/apps. For more info about every command see respective man pages.
Difficulty:
Sort command in unix with example
Sort command in unix with example
Sorting is one of essential task we always need to perform and UNIX or Linux has great suppot for sorting by using sort command. No matter what kind of shell script you are writing or you are looking for some information or reports many times you need to sort the output from one command or a set of line. In this UNIX sort command tutorial we will see how we can use sort command in UNIX to achieve our sorting goal. This tutorial contains some of practical example of sort command for sorting data in UNIX. With the use of “uniq” and “sort” command you can remove duplicates and present a sorted data in UNIX.
Difficulty:
List of special bash parameters and there expansions ?
List of special bash parameters and there expansions ?
Many of us use bash script for doing housekeeping and other stuff but occasionally and not much aware of special bash parameters. When I was new to bash shell and Linux and looking on some already written bash script I used to get baffled with special bash symbols like $@, $_, $1 etc.
Difficulty:
Install PHP Modules for a FreeBSD Production Web Server
Install PHP Modules for a FreeBSD Production Web Server
Let's say we want to build a FreeBSD Production Web Server with a list of php modules that will be installed after we install PHP, Apache and MySQL. Here is a script to do that, very usefull if we will install many servers in the future.
Difficulty:
Controlling print jobs in Unix with Postscript
Controlling print jobs in Unix with Postscript
Postscript is the programming language used to control the majority of printers for personal computers. It gives you more control over how a text file will appear when printed, including the typeface, whether to print in portrait or landscape, how far to indent, etc.
Difficulty:
A Guide to Lua : Making an IRC Bot
A Guide to Lua : Making an IRC Bot
o: Whats up? I guess if your here, that means you want to learn about Lua, a highly portable and really nifty language designed for scripting applications. To demonstrate it, we're going to go all the way from setting up a stub C++ environment to creating an OO networking class and a fully functional IRC Bot.
Difficulty:
Bash Scripting: Automate Linux
Bash Scripting: Automate Linux
We all love Linux, but sometimes its a bit to much to handle all the hassle.
Difficulty:
operating system accessment help
operating system accessment help
Write a script with an infinite loop that provides the following options: 1. Enter items and print bill 2. Reprint bill... 3. Backup bill directory
Difficulty:
Using Tar in linux to make a backup
Using Tar in linux to make a backup
Using Tar in linux to make a backup This is just a small example of how you can use the TAR application with linux to generate a powerfull backup script triggered by a cron.
Difficulty:
Quake 3 Arena server start/stop/restart script for linux
Quake 3 Arena server start/stop/restart script for linux
Script for server owners to easier control server, it has start, restart, stop and status commands
Difficulty:
Quake 3 Arena server check script
Quake 3 Arena server check script
Script that checks if your quake 3 arena server is still running, if not it will start it up
Difficulty:
Poor Mans Self-Extracting Archive
Poor Mans Self-Extracting Archive
I'm going to be up-front about this...creating a shell script that is a self-extracting archive is rather useless. However, the concept behind it is. This entire tutorial hinges around a few simple things: grep, cut, sed, and the pound sign ( # ).
Difficulty:
The Virtualization Innovation Comparison of 2009 and 2010
The Virtualization Innovation Comparison of 2009 and 2010
#Linux Scripting with #Vim editor, Part 1: Start using #Vimscript > http://bit.ly/bNQKWR #Ubuntu #Fedora #SUSE #Linux Scripting with #Vim editor, Part 2: User-defined functions > http://bit.ly/d5mRnW #Ubuntu #Fedora #SUSE #Linux Scripting with Vim editor Part 3: Explore #Vimscript's lists & arrays > http://bit.ly/cxHqdh #Ubuntu #Fedora #SUSE Linux Scripting with Vim editor, Part 4: Use dictionaries for faster code > http://bit.ly/bIbr9B #Ubuntu #Fedora #SUSE Behind IBM's Surge in Storage? - fid out from IBM’s GM for Storage, Brian Truskowski > http://su.pr/2fHx1s > http://www.eweek.com/c/a/Data-Storage/Whats-Behind-IBMs-Surge-in-Storage-538382/> Learn why Ruby is a powerful scripting alternative to the usual shell scripting > http://www.ibm.com/developerworks/aix/library/au-rubysysadmin/index.htm?ca=dgr-twtrRuby4Adminsdth-AIX Enter into the world of metaprogramming, Groovy-style with closures, ExpandoMetaClass, and categories > http://www.ibm.com/developerworks/java/library/j-pg06239.html?ca=dgr-twtrGroovyMetaPrgdth-JV This article approaches the world of Python development from a PHP developer's perspective > http://www.ibm.com/developerworks/opensource/library/os-php-pythonbasics/index.html?ca=dgr-twtrPython4PHPdth-OS athenahealth Taps IBM to Streamline Back Office Processes, Improve Data Capture for Physicians > http://su.pr/1AhOhq > http://www-03.ibm.com/press/us/en/pressrelease/29982.wss?ca=dgr-twtrathenahealthdth-IBM Learn 5 good PHP programming habits that can help you bang-out awesome code > http://www.ibm.com/developerworks/opensource/library/os-php-5goodhabits/index.html?ca=dgr-twt5PHP-Habitsdth-OS IBM health initiative rooted in 430,000 lives > http://su.pr/2hfjKj IBM’s reach is growing > http://su.pr/2cByll > http://www.masshightech.com/stories/2010/04/19/daily42-IBM-health-initiative-rooted-in-430000-lives.html > http://www-935.ibm.com/services/us/gbs/bus/html/bcs_healthcare.html Made in IBM Labs: Writer's Block? IBM Researchers Have the Cure This article explores virtualization innovations for 2009 and 2010, including coverage of IBM's newly released POWER7 systems, which alters the 2010 landscape. Most AIX admins understand the virtualization features available to them on their System p platform through PowerVM. What about the other UNIX hardware platforms? What do they have to offer and how do some of their features compare to PowerVM.
Difficulty:
Modify and extend the powerful Vim Scripting editor
Modify and extend the powerful Vim Scripting editor
This article explores Vimscript's support for lists and arrays.
Difficulty:
Search Term(s) (1): script