End telnet session
close
To create a directory structure without prompting the message directory does not exist
Change hostname in Redhat
List iptables rulesiptables -t nat --line-numbers -n -L
List total size of current directory (in KB)
Problem
tar commands:
kill -3 process-id (Will not kill the process. Will create a threaddump useful for java troubleshooting)
To recursively search for a string in Linux
Problem:
You check file existence using test command.
Extract substring based on index.
We usually assign some value to a variable and reuse the variable. There could also be situations where we need the variable name when value is passed.
Create a file named servers with the following
eval is a nice function and particularly useful to resolve the value of nested unix variables properly. Here is a scenario.
NTP Setup in RHEL
This script will allow to login to remote servers with no password after first time execution.
Tune tcp parameters in Solaris
ifconfig eth0:1 {ip-address} netmask 255.255.255.0
Installing VMware Tools
File system mounts can be found:
Add these two lines to /etc/security/limits.conf file
1. Get PID using ps -ef | grep nscd
Problem:
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Solaris: mount -F nfs {nas_name}:{source_volume_directory} {target_directory}
Print no. of CPUs
Run command: uname -a
List crontab