Spiga

WebAdminstration Quick Tips: Unix Adminstrative commands

arp

usage: arp

command used for checking ethernet connectivity and IP address. The command displays the contents based on the results from route command and ifconfig details. Mostly used to get the IP address based on the configuration of network cards.

df

usage: df -h or df -i

Displays the filesystem informaton based on the requirements. -h option displays the information in human readable format and -i option is used for displaying information based on the i nodes usage.

du

usage : du -sch filename/foldername or du -sch *

Displays disk usage information based on the tags, the disk usage can be for a file or a specific directory. It can also be used to get the summary of disk usage on the specific folder or a specific partition based on the location from which the command is ran.

ifconfig

usage: ifconfig or ifconfig ethX:M ipaddress netmask

Ifconfig is normally used to configure the network addresses or to check the working of the current network interfaces on the server. Also you can use the command to add up a specific IP address to a network interface, the process can be alternatively done by editing the file at /etc/sysconfig/network-scripts/ifcfg-ethX file and then restarting the network. Please note that the directory location mentioned is only for redhat based servers, the location may be different in other flavours of linux.

init

usage: init a

where a will be the runlevel number to be started with.

netstat

usage: netstat -nlap

this is used to provide summary on the network usage and the sockets currently active on the server. Again the -r option will be providing the route for particular connections along with the socket details.

nslookup

usage: nslookup domainname

Used to find the IP address information for the particular host and checks the domainname.

ps

usage : ps aux

this is the process usage summary and displays the process id and the status of the process, whether it is in sleep ( S ) state or (R) running or (D) terminated state.

route

usage: route -n

used to find the routing table details on the computer will be effective on the times when there is a connectivity issue. Again using route add and route del commands can be defined to add or remove routing entries. Thank you.

shred

usage: shred -v filename

this will help you remove the files by overwriting the details there. This should be helpful in removing the data without of the fear of retreiving any useful information on this.

top

usage: top -c -d2

the options will help you get detailed list of commands and the operations active on the server and while running the top command you can type the key "h" and have the details sorted out for further use

traceroute

usage: traceroute domainname

this should be helpful to get the detailed route from the source to the destination domainname.

0 comments: