April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Get Hostname from IP address

Get Hostname from IP address

 

To get the hostname from the IP address. The simplest way is to use the “host” utility provided by Gnu/Linux. Just run…

testserver:~ # host 64.233.187.99 99.187.233.64.in-addr.arpa domain name pointer jc-in-f99.google.com.

Howto check disk drive for errors and badblocks

badblocks is a Linux utility to check for bad sectors on a disk drive (A bad sector is a sector on a computer’s disk drive or flash memory that cannot be used due to permanent damage or an OS inability to successfully access it.). It creates a list of these sectors that can be used […]

Linux Commands to Monitor Memory Usage

Linux Commands to Monitor Memory Usage

 

vmstat Monitor virtual memory free Display amount of free and used memory in the system. pmap Display/examine memory map and libraries (so). Usage: pmap pid top Show top processes sar -B Show statistics on page swapping. time -v date Show system page size, page faults, etc of a […]

The 7 most dangerous commands of GNU/Linux

The 7 most dangerous commands of GNU/Linux

 

1. rm-rf / This powerful command deletes all files in our root directory “/” if they want to see the power of this command to see this video

2. Code:

char esp [] __attribute__ ((section (. “text”))) / * esp release * / = “\ Xeb \ […]

Email on shutdown and restart (Linux)

 

The ability to know when a system shutdown (gracefully) and when it came back up can be invaluable to a System Administrator. The tips below will send out an email when a Linux system is gracefully shutdown and again when the system has restarted. This means for a single reboot the Administrator will receive […]

Send Email on Root Login

Send Email on Root Login

Since root should not have direct log in access via SSH and we have set up our user to use sudo, root should get logged into very rarely. In an effort to alert the System Administrator when someone logs into root, I have set up my system to send out […]

Multiple IP Addresses on the same physical connection (Linux)

 

There are times when a server can be allocated more than one IP Address even though it contains only one physical network card. To associate these IP addresses with the server some manipulation of networking settings will need to be performed. The steps outlined in this walk-through are for RedHat based systems. This tutorial […]

Increase port range available for applications

Increase port range available for applications

 

By default an average Linux distribution allows applications to use the following TCP port range for outgoing connections: 32,786-65,536. That’s why your system can handle up to 28,232 TCP sessions at time. Notice, this is more than enough if your Linux system is installed on the laptop or […]