Skip to main content


Showing posts from June, 2014

Idea: Computer Resources Management

Computer Resources Management Common mistakes are done by most of computer users which is related to computer resource management.
1. Disk Management:- This problems comes when user dump a lot of data and find that there is no more disk space in system. Solution: Use backup management software
2. File Management:- If a user create a lot of duplicate files and unable to find the required file. Solution: Use repository management software
3. Process Management:- User start many process without requirement then program response time is very bad. Solution: Be aware about system
4. Network Management:- When user not monitoring network connection create by system then there is bad network response which browsing. Solution: Close unused network connection. Be aware about system networking.

5. Reference/Search Management:-
User always need to search within system for files. But unable to find it correctly.
Solution: Enable search in system in its best way by taking help of OS utilities. Use r…

Howto: Linux Kill and Logout Users

Howto: Linux Kill and Logout Users
. One of such utility is skill which is responsible to send a signal to users and process such as: Halt user terminalKill user and logout# skill -STOP -u vivek
# skill -CONT -u vivek
# skill -KILL -u vivek
Task: Kill and Logout All Users# skill -KILL -v /dev/pts/*
pkill command syntax pkill -KILL -u {username}

kill command To halt or stop a user called vivek, enter:
# pkill -STOP -u vivek
To resume a user called vivek, enter:
# pkill -CONT -u vivek
To kill all php-cgi process owned by vivek user, enter:
# pkill -KILL -u vivek php-cgi

Logging out my remote SSH session pkill -9 -t pts/0pkill -9 -t pts/tty-number. -t is the switch to specify tty

How to logout or kill other user session? Well, let’s start saying that you need to be root to do that, and that it is not polite or a good idea to do that, unless that user is not logged with permission.
It is always better to politely ask her to …

RSYNC for the effective copy of bulk data in Linux

RSYNC For Copy the bulk files in Linux
The question behind the copy files other then copy command is here. Some problem comes while using the cp command 1. if some problem comes and the cp command stop then you need to again start the command for copy the file over existing file that may fully copy not may not be. you need to check it before copy the files.  2. Bulk data files has problem with cp command because the requirement is different for it, Like speed, each file should be copy correctly, copy for backup purpose, delete the source file after copy, copy using networkcopy data need to compresscreate a list of copy filescopy in segmenthandling the shut-down & restart of system These all things can't possible using cp command only

SO the rsync command work here for all above problem

this command will not work with * for delete the files
rsync -avz --delete /home/john/server1/* remote.server:/home/john/files/

use it without * for delete the files
rsync -avz --delete /home/j…

How can I find the installation date of my Linux system ?

On Fedora, Redhat, and Centos you can retrieve the install date from the creation date of /root/install.log.

One method is to get the package details of the "basesystem" package:
# rpm -qi basesystem Other methods include checking the creation date of the files "install.log" in the /root directory or "anaconda.*" logs in the /var/log directory: # ls -l /root/install.log # ls -l /var/log/anaconda.* ls -lct /etc | tail -1 | awk '{print $6, $7}'ll -lct /etc/localtime

Linux Routing

Linux Routing I have faced many time problem related to routing tables. If I have more then one network card then I need to use routing for better management. As Linux administrator need to work on only command line, so I am listing the resource and common routing commands. Display routing table # route -n # ip route list # netstat -nr Add default gateway in routing table# route add default gw eth0# ip route add dev eth0for another gateway # route add -net $NET netmask $MASK gw $GATEWAY # route add -net netmask gw
Linux static routing config for eth1 interface In CentOS/RedHat # cat /etc/sysconfig/network-scripts/route-eth0
default dev eth0 via dev eth0

In Ubuntu/Debian
# vim /etc/network/interfaces #### Ubuntu Linux add persistent route command of your Ethernet configuration #### post-up route add -net netmask gw Ubuntu Linux - This is your defau…