Cygwin Commands for Text Manipulation
DOS has a few commands like find, findstr and sort which can be used to manipulate text. ($ help <cmd> shows the usage help for all these commands.) However, their usage is very different from those that a Unix user may be familiar with. One of the best things about Cygwin is that these commands useful for “quick and dirty” work on large chunks of text data are easy to learn, are consistent across all Unix-based OSs, have a number of options, and are quite extensive. When used in combination, they can save a lot of programming. ($ <command> <option> <inputs> is the general format for almost any of these commands. $ <command> –help shows the usage information.) Note that all the commands below work on text... [Read more]
Use CCleaner to Clean Your Computer
There are a lot of utilities that can be used to clean a computer. These do something more than the usual “Disk Cleanup” ($ cleanmgr), are easy to use with custom features and are faster too. Cleaning up your computer can improve its performance and ensure greater privacy. For a while now, I have been using Piriform’s CCleaner. It is one of the most comprehensive utilities of its kind. CCleaner’s primary feature is the Cleaner. First, it will analyze the system, fetch the files that it is going to delete from the recycle bin, browser caches, other application caches, and many other obscure locations. The user can choose which areas to scan for and which to leave alone. Then the files can be deleted using any of the four secure file... [Read more]
Environment Variables
Environment variables are a set of dynamic variables that can determine the environment in which a process runs. While they are more easily visible and often used in Unix-based OSs, they are equally essential on Windows. A little knowledge is especially important to write batch programs (.BAT). The command env typed in your command prompt or Cygwin terminal will list the entire set of environment variables and their current values. My Computer –> Properties –> Advanced –> Environment Variables will also show you the Windows environment variables divided into two categories: System variables and User variables. While on cmd each variable can be referred to using %ENVIRONMENT-VARIABLE%, on Cygwin and all Unix-based OSs they are... [Read more]
The Pirate Bay Trial Begins
We have all heard of the Pirate Bay, the bit torrent search engine site. It was sued by some biggies of the MPAA like MGM Pictures and Sony BMG, and the case began its trial yesterday in the Stockholm district court.\r\n\r\nA police investigation took place way back in 2006 and the current trial is considered a consequence. The trial is being closely observed by the world because its judgment has the power to determine the future of the Internet regarding copyright infringement laws and rethink where cyber law stands.\r\n\r\nThe Pirate Bay is a Swedish site that facilitates users by providing links to torrents. It is considered the world’s largest bit torrent tracker and with an Alexa Rank of 109, I can now imagine how popular the site has... [Read more]
How to Set Windows Logon Warning Message
Especially in systems that are part of an enterprise domain, you may have noticed a warning message after pressing Ctrl+Alt+Del and before the login window. It is called a Legal Notice. While it is irritating most of the times, there is a good reason why it exists. Especially in labs, for instance, all systems have similar account usernames and passwords for convenience. It is not uncommon for someone to accidentally log into someone else’s system and proceed as though it were his or her own. If you are an administrator of a system which needs restricted access, you can create a custom legal notice which warns other users from accidental misuse. Open the Registry Editor (Ctrl+R –> regedit), navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows... [Read more]




