type the below command and change the below criteria to suite to your search : find /ENTER/PATH -type f -print0 | xargs -0 grep -i ENTER_TEXT_TO_SEARCH
Shutdown ubuntu/esx/redhat server From windows using plink
The easiest way to execute any command from windows using putty installation. The example below you can shutdown your linuxbox server from windows using shutdown command Example: “C:Program Files”puttyplink.exe -ssh root@ip -pw ****** shutdown -h now Usage: plink [options] [user@host [command] Options: -V print version information and exit -pgpfp print PGP key fingerprints and exit […]
Skype problem
In the meantime, you can follow the steps below to fix the problem manually. Windows If the Skype icon is displayed in the system tray at the bottom right of the screen, right-click it and select Quit. Click Start, type “run” and press Enter. (On Windows XP: Click Start and then Run.) Type “%appdata%skype” and […]
HowTo – Batch Image Resize on Linux
Suppose you want resize every your photos to put it on web. As you know, you can’t upload your photos on a web page with the highest resolution because a web gallery became inaccessible and too slow to load. Suppose that you have a folder containing every photos of you holidays and you want resize […]
Top command Description
Description of few parameters of top command: wa = Waiting for I/O us = User space sy = system/kernel ni = Nice Process id = Idle hi = Hardware Interrupts si = Software Interrupts EDIT: 1. us -> User CPU time: The time the CPU has spent running users’ processes that are not niced. 2. […]
Find Duplicate IP address
Log in as root and type the following # arping -D -I eth0 -c 2 10.5.70.2 ARPING 10.5.70.2 from 0.0.0.0 eth0 Unicast reply from 10.5.70.2 [00:02:55:C7:1D:49] for 10.5.70.2 [00:02:55:C7:1D:49] 4.222ms Sent 1 probes (1 broadcast(s)) Received 1 response(s) [root@govath-pc ~]# echo $? 1
Facebook Chat Now Available with XMPP Pidgin
Configure Pidgin . Do Ctrl+A to open the ‘Accounts’ window, then ‘Add’. On the ‘Basic’ tab, select the XMPP Protocol. Username: Your Facebook username Domain: chat.facebook.com Resource: Pidgin Password: your Facebook password Local alias: Alias On the Advanced tab, then enter the following: Connect port: 5222 Connect server: chat.facebook.com Uncheck ‘Require SSL/TLS’ You’re now set […]
Linux Setfacl Getfacl ACL examples
Some Basic examples of setting permissions to Files. Granting an additional user read access $ setfacl -m u:lisa:r file Revoking write access from all groups and all named users (using the effective rights mask) $ setfacl -m m::rx file Removing a named group entry from a file’s ACL $ setfacl -x g:staff file Copying the […]
Remove screen saver from linux
Linux disable screen blanking i.e. preventing screen going blank It is easy to disable screen saver under X window. But when it comes to text based login or terminal you will not find easy way to disable text based power saving mode (i.e. when your screen goes blank after a few minutes). So how do […]
how to check folder/directory capacity in linux
NAME du – estimate file space usage SYNOPSIS du [OPTION]… [FILE]… DESCRIPTION Summarize disk usage of each FILE, recursively for directories. Mandatory arguments to long options are mandatory for short options too. -a, –all write counts for all files, not just directories -B, –block-size=SIZE use SIZE-byte blocks -b, –bytes print size in bytes -c, –total […]