High Availbility

OS & Virtualization

Thursday, September 21, 2006

Basic Linux commands and links

These are some of the common linux OS commands for checking various system parameters.


  1. To check for OS version
    # uname -a
  2. To check 32 bit or 64 bit
    # uname -m
  3. To check memory
    # cat /proc/meminfo
  4. to check CPU info
    # cat /proc/cpuinfo
  5. to check linux version
    # cat /etc/redhat-release
  6. to check hard disk space
    # df -h or df -k
  7. to check kernel parameters
    # cat /etc/sysctl.conf
  8. Finding files
    # whereis filename
  9. Getting to GUI screen. The default boot runlevel is set in the file /etc/inittab with the initdefault variable
    # startx or # init 5
  10. Starting and stopping services (eg samba services)
    # service smb start
    # service smb stop
    # service smb status
    the chkconfig command can be used to adjust which applications start at each runlevel
    # chkconfig --list
  11. CRONTAB Basic
    # crontab -e
    # crontab -l

    A crontab file is comprised of six fields:

    fields values
    ------ ------

    Minute 0-59
    Hour 0-23
    Day of month 1-31
    Month 1-12
    Day of Week 0 - 6, with 0 = Sunday

Some common linux commands for checking Oracle

  • List all Oracle error messages from the alert.log file
    "grep"
    -v : show lines that do not contain the string
    -h : basic usage description
    # grep ORA- alert.log
  • Find out file system usage for Oracle destination
    # df -k grep oradata

Some useful Linux links and tutorial

Linux and Oracle links

No comments: