I just installed and configure a new Sun SPARC Enterprise M3000 server. It seems that when I telnet to the sever from a remote computer it takes a while to connect and get a login prompt. Once I am able…
Tag: Linux
Forgot the root password for my Red Hat Enterprise Linux 5 server, how do I change it?
I built this Red Hat Enterprise Linux 5 server in VMware a while ago and forgot the root password. I can log in as a user but it does not have the privileges to change the root IDs password. Well,…
Unix bash script to check if the files exists in the directory
As a server administrator I seldom have to check to see if a file exists in the directory. But what if you have a long list of files that you need to check for? Checking for the existence of many…
Scripts to automate the process of identifying and compiling an RDM to LUN mapping list for VMware ESX 3.0
In an earlier posting I listed a copy of the article explaining how to manually create a RDM to LUN mapping for VMware ESX. I have created scripts to completly automate this process, ftp the result and email the result…
Command to display the current run level in Solaris
If you forget the current run level you have loaded in Solaris, here is a handy command to help you find out what it is. who -r This will output to screen the current run-level.
Deleting a large file does not free up space in Unix.
The root file system on my Solaris Unix server was low on free space, it was 98% full. Upon investigation I found out that there was a very large file 1.8 G in size. This file nohup.out was created by…
Changing the NTP server in Solaris or Linux.
Here is how you can change the NTP server’s information on your Solaris server. Edit /etc/inet/ntp.conf add the below line server ntp.paris.hilton.com You will now need to restart the NTP service. /etc/init.d/xntpd stop /etc/init.d/xntpd start The last thing you need…
How to automate ftp login and file transfer with bash script
Sometime ago I had posted a Korn script to automate FTP login and upload of file on a Unix or Linux computer. The default shell for most Linux servers is bash. I ran into a situation on a VMware ESX…
Awk the swiss army knife of the Unix toolkit.
The awk command is very handy when you need to filter the contents of a file, a pipe,or keyboard. It searches each line of input for patterns that you specify and when the pattern is matched, it performs an action.…
Explanation of Standard input-output in Unix and Linux
Once a command is run, a process is created. This process then opens three flows: stdin, called the standard input, where the process will read the input data. By default stdin refers to the keyboard; STDIN is identified by the…