You are on page 1of 10

echo -e "User name: $USER (Login name: $LOGNAME)"

echo -e "Current Shell: $SHELL"

echo -e "Home Directory: $HOME"

echo -e "Your O/s Type: $OSTYPE"

echo -e "PATH: $PATH"

echo -e "Current directory: `pwd`"

echo -e "Currently Logged: $nouser user(s)"

echo "Available shell:`cat /etc/shells`"

echo "CPU Informations :`cat /proc/cpuinfo`"

echo "CPU Informations :`cat /proc/meminfo`"

OUTPUT:

[mohana@localhost ~]$ bash system.sh

User name: mohana (Login name: mohana)

Current Shell: /bin/bash

Home Directory: /home/mohana

Your O/s Type: linux-gnu

PATH: /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mohana

/bin

Current directory: /home/mohana

Currently Logged: user(s)

Available shell:/bin/sh

/bin/bash

/sbin/nologin
/bin/ash

/bin/bsh

/bin/ksh

/usr/bin/ksh

/usr/bin/pdksh

/bin/tcsh

/bin/csh

/bin/zsh

CPU Informations :processor :0

vendor_id : GenuineIntel

cpu family : 15

model :2

model name : Intel(R) XEON(TM) CPU 1.80GHz

stepping :4

cpu MHz : 1785.080

cache size : 512 KB

physical id :0

siblings :1

core id :0

cpu cores :1

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes
fpu_exception : yes

cpuid level :2

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat

pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm

bogomips : 3571.76

CPU Informations :MemTotal: 1034608 kB

MemFree: 600788 kB

Buffers: 32896 kB

Cached: 229444 kB

SwapCached: 0 kB

Active: 180256 kB

Inactive: 193592 kB

HighTotal: 131008 kB

HighFree: 252 kB

LowTotal: 903600 kB

LowFree: 600536 kB

SwapTotal: 1534196 kB

SwapFree: 1534196 kB

Dirty: 376 kB

Writeback: 0 kB

Mapped: 136428 kB

Slab: 38652 kB

CommitLimit: 2051500 kB

Committed_AS: 397128 kB
PageTables: 7888 kB

VmallocTotal: 106488 kB

VmallocUsed: 2904 kB

VmallocChunk: 103452 kB

HugePages_Total: 0

HugePages_Free: 0

Hugepagesize: 2048 kB

[mohana@localhost ~]$

You might also like