Creating a Symbloic Link

SYNTAX: ln -s current_folder new_file current_folder is the destination for the link, it must already exist. new_file is the name of the link to be created. If new_file is an existing folder, any existing data will not be visible. Example. # ln -s server:/share /myfolder

Removing ^M characters in VI

When porting a text file from Windows to UNIX you will quite often get a ^M on the end of every line. Apart from look bad and make it hard to read, if you text file happens to be a script, then this can also effect the way your script is run. To remove the ^M characters at the end of all lines in vi, use this command. :%s/^V^M//g To get the ^V you need to type Control+V and Control+M for the ^M.

Changing the screen resolution for CDE

You can change your video card, monitor, or screen resolution settings for CDE at any time by:
  • At the login window select Command Line Login from the Options drop-down list.
  • Log in as root
  • At the shell prompt type in kdmconfig and make your desired changes (see note below)
  • Back at the shell prompt, type in init 6 to reboot your system.
  • Note : When using VMware, choose Xsun not the other option. Xsun seems to work better. Although you then can't change your screen resolution within the Sun Java Desktop.

    Removing old files in UNIX

    To remove files older than 90 days from the current directory and all sub directories try this: find . -name "*" -mtime +90 -exec rm -rf {} \; If you only want to list how much space each file or folder is using using try: find . -name "*" -mtime +90 -exec du -sh {} \; If you want to search for large log file, try find . -name "*.log" -exec du -sh {} \;

    Missing Java Font Error

    Sometime when trying to run the Oracle installer I get this error message come up. Warning: Cannot convert string "-monotype-arial-regular-r-normal *-140-*-*-p-*-iso8859-1" to type FontStruct warning: Unable to load any usable ISO8859-1 font This is how you can fix it: # xset fp+ /usr/openwin/lib/X11/fonts/TTbitmaps

    Auto Logon to Windows XP

    Auto Logon to Windows by Doug Knox, Microsoft MVP, Tewksbury, Massachusetts You can configure Windows XP to automate the logon process if your computer is not part of a domain. 1. Click Start, click Run, and type control userpasswords2 2. Clear the Users must enter a username and password to use this computer check box. 3. Click Apply. 4. Enter the user name and password you wish to automatically log on with, and then click OK. 5.

    Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer