We have moved to www.dataGenX.net, Keep Learning with us.

Saturday, December 31, 2011

Windos Run Commands -- Part 2


To Access…                                                                       RunCommand
Event Viewer
eventvwr.msc
Files and Settings Transfer Tool
migwiz

File Signature Verification Tool
sigverif

Findfast
findfast.cpl

Firefox (if installed) 
firefox

Folders Properties
folders

Fonts
control fonts

Fonts Folder
fonts

Free Cell Card Game
freecell

Game Controllers 
joy.cpl

Group Policy Editor (XP Prof)
gpedit.msc

Hearts Card Game
mshearts

Help and Support
helpctr

HyperTerminal
hypertrm

Iexpress Wizard
iexpress

Indexing Service
ciadv.msc

Internet Connection Wizard
icwconn1

Internet Explorer
iexplore

Internet Properties 
inetcpl.cpl

Internet Setup Wizard
inetwiz

IP Configuration (Display Connection Configuration) ipconfig /all

IP Configuration (Display DNS Cache Contents) ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents) ipconfig /flushdns
IP Configuration (Release All Connections)
ipconfig /release
IP Configuration (Renew All Connections)
ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS) ipconfig /registerdns
IP Configuration (Display DHCP Class ID)
ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID)
ipconfig /setclassid
Java Control Panel (if installed)
jpicpl32.cpl

Java Control Panel (if installed)
javaws

Keyboard Properties
control keyboard
Local Security Settings
secpol.msc

Local Users and Groups
lusrmgr.msc

Logs You Out Of Windows 
logoff

Friday, December 30, 2011

Compressing and Archiving files


* gzip & gunzip ( *.gz )
* bzip2 & bunzip2 ( *.bz2 )
* zip & unzip ( *.zip )

gzip : The compress program


-d    Uncompressing a "gzipped" file  (  gunzip  <==> gzip -d  )
-r    Recursive compression



tar : The archival program

For creating a disk archive that contains a grp of file or an entire dir structure.
tar option

-c       Create an archive
-x       Extract file from archive
-t       Diaplay files in archive
-f arch     Specify the archive arch

Creating an archive ( -c )
$ tar -cvf archive.tar file1 file2      ( c - create, v - diaplay list , f - specify the name )

Extracting an archive ( -x )
$ tar -xvf archive.tar

Viewing the archive ( -t )
$ tar -tvf archive.tar


 zip & unzip : Compressing and archiving together  


$ zip archive.zip file1 file2 file3
$ unzip archive.zip


-r    ecursive compression
-v    viewing the archive

 

dos2unix AND unix2dos : Converting between DOS and UNIX

Here r the 2 lines from a DOS file, atul, viewed on a unix system with the vi editor :

Line 1^M
Line 2^M


$ od -bc atul  
{ this command is used to check the CR-LF in file }

There is a ^M ( ctrl - m ) representing the CR sequence at the end of each line. An octal dump confirm this :
The CR-LF combination is represention by the octal value 015 -012 and the escape sequesnce \r\n. Conversion of this file to UNIX is just a simple matter of removing the \r. This is often done automatically when downloading a UNIX file from windows machine using ftp, but sometimes u have to do it yourself.

$ dos2unix atul.dos atul 
$ unix2dos atul.dos atul


* unix2dos inserts CR before every LF, and thus increase the file size by the no of line in the file.
* You can use dos2unix to delete the ^M char that occurs at the end of every line in the file typescript.
* If u view the unix file atul on windows using notepad but without performing the conversion then you'll see a single line : Line 1Line 2. In fact, whenever you see a single line on a windows machine that should have been multiple line.
* Never perform this conversion on a binary file.




Thursday, December 29, 2011

Windos Run Commands -- Part 1


To Access…
RunCommand
Accessibility Controls 
access.cpl
Accessibility Wizard
accwiz
Add Hardware Wizard
hdwwiz.cpl
Add/Remove Programs 
appwiz.cpl
Administrative Tools
control admintools
Adobe Acrobat (if installed)
acrobat
Adobe Designer (if installed)
formdesigner
Adobe Distiller (if installed)
acrodist
Adobe ImageReady (if installed)
imageready
Adobe Photoshop (if installed)
photoshop
Automatic Updates
wuaucpl.cpl
Bluetooth Transfer Wizard
fsquirt
Calculator
calc
Certificate Manager
certmgr.msc
Character Map
charmap
Check Disk Utility
chkdsk
Clipboard Viewer
clipbrd
Command Prompt
cmd
Component Services
dcomcnfg
Computer Management
compmgmt.msc
Control Panel
control
Date and Time Properties 
timedate.cpl
DDE Shares 
ddeshare
Device Manager
devmgmt.msc
Direct X Control Panel (if installed)*
directx.cpl
Direct X Troubleshooter
dxdiag
Disk Cleanup Utility
cleanmgr
Disk Defragment
dfrg.msc
Disk Management
diskmgmt.msc
Disk Partition Manager
diskpart
Display Properties
control desktop
Display Properties
desk.cpl
Display Properties (w/Appearance Tab Preselected) control color
Dr. Watson System Troubleshooting Utility
drwtsn32
Driver Verifier Utility
verifier






DBMS/SQL



1)  OReilly.SQL.Cookbook download
2)  Good sql_for_beginners  download
3)  IBM Informix Guide to SQL Tutorial  download

Linux/Unix




1)  OReilly - Sed & Awk 2nd Edition. download
2)  OReilly_running_linux_4th_edition. download
3)  Linux-101-Hacks. download
4)  LP.4th.Ed.2009.  download
5)  Linux tutorial download
  



Java


       
1)  Java Complete Reference ed 5 - Herbert Schildt download
2) 

Record your nix session : SCRIPT




"script" command is use to record your nix session, whatever you are typing on terminal, whether it is input or output, is recorded in a file "typesctipt"

$ script
   Script started, file is typescript
$         { Anothe shell, child shell of login shell }
$ exit  ( ctrl -d )


Script done, recorded file is typescript.

  You can also use
    script -a              ( append in the existing file )
    script logfile        ( create a logfile of your session )

tips ::
* Whenever use "script" always give the output filename like
         $ script record1  or script record2

* Otherwise, when you are using "script" command second time, it will overwrite the first one output file