Tuesday, November 15, 2005

Linux Cool Commands

Linux Conversion: Tutorial - Convert from Red Hat to Debian Remotely.

CPU Information: View CPU Information including processor, vendor_id, cpu family, model, model name, stepping, cpu MHz, cache size, physical id and much more

cat /proc/cpuinfo

Memory Information: View memory information

cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 2104721408 1756086272 348635136 0 171274240 632188928
Swap: 2097434624 23314432 2074120192
MemTotal: 2055392 kB
MemFree: 340464 kB
MemShared: 0 kB
Buffers: 167260 kB
Cached: 607604 kB
SwapCached: 9768 kB
Active: 741528 kB
ActiveAnon: 268996 kB
ActiveCache: 472532 kB
Inact_dirty: 212624 kB
Inact_laundry: 45804 kB
Inact_clean: 38408 kB
Inact_target: 207672 kB
HighTotal: 1179520 kB
HighFree: 323304 kB
LowTotal: 875872 kB
LowFree: 17160 kB
SwapTotal: 2048276 kB
SwapFree: 2025508 kB
Committed_AS: 484020 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB


Partition Tables Information: list partition tables for devices listed in /proc/partitions
-l List the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used. - man fdisk)

fdisk -l
[root@plain scripts]# fdisk -l

Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 268 2048287+ 82 Linux swap
/dev/sda3 269 399 1052257+ 83 Linux
/dev/sda4 400 8924 68477062+ f Win95 Ext'd (LBA)
/dev/sda5 400 8924 68477031 83 Linux

Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 8924 71681998+ 83 Linux

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 24321 195358401 83 Linux

Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 24321 195358401 83 Linux


Restart sendmail: You can also you stop and start instead of restart.

/etc/rc.d/init.d/sendmail restart
# OR
service sendmail restart




text

CODE


text

CODE


text

CODE


text

CODE



Resources:
Reference Sheets: HTTP Status Codes, Top Level Domains reference sheet, Shell commands, Packet Forwarding, RFC 1812 - IP v4 Routers, IP SySCTL, TCP Tuning, TCP Whitepaper, Tuning Server

0 Comments:

Post a Comment

<< Home