Posts

Showing posts from May, 2014

How to open two Skype accounts at the same time in windows

Yes it is possible.! We can run two Skype accounts on Windows machine at the same time. To do that you have to go to Start-> Run Type the below command - Do not exclude quotes and click OK If you use 32 bit operating systems: "C:\Program Files\Skype\Phone\Skype.exe" /secondary 64 bit operating systems: "C:\Program Files (x86)\Skype\Phone\Skype.exe" /secondary Also read : Tips to create super strong passwords easely Change your password right now - Heartbleed Write one liner Batch Script to Take Your File Backup 7 Types of Dangerous Virus 2 Software to Keep Your Passwords Safe and Secure

Learning Basic VI commands and shortcuts

 It might useful for Linux beginners. Command Mode  Default mode of vim  Move by character: Arrow Keys, h, j, k, l  Move by word: w, b  Move by sentence: ), (  Move by paragraph: }, {  Jump to line x: xG  Jump to end: G Insert mode  i begins insert mode at the cursor  A append to end of line  I insert at beginning of line  o insert new a line (below)  O insert new line (above Ex Mode o :w writes (saves) the file to disk o :wq writes and quits o :q! quits, even if changes are lost Manipulating Text     change (c)     cut (d)     yank (y)     paste (p) without target     Line in Action     Line as in action     Letter l     Word w     Sentence ahead )     Sentence behind (     Paragraph above {     Paragraph below } Undoing Changes (Command Mode)     u undo most recent change.     U undo all changes to the current line since the cursor landed on the line.     Ctrl-r redo last "undone" change Multiple windows     Multiple document

How to use IF in bash shell script with example

If condition with sample bash script Now, you can use the if statement to test a condition. If command the general syntax is as follows: if condition then command1 command2 ... commandN fi If given condition is true than the command1, command2..commandN are executed. Otherwise script continues If the condition is true then the following commands get executed. If not the script continues with the next command.  Let’s have a practical example for this. Open a text editor and create the script called check.sh : #!/bin/bash read -p "Enter a password" password if test "$password" == "LinuxAdmin" then echo "Password verified." fi Save and close the file. Give executable permission to check.sh to do so type following command: chmod +x check.sh  ./check.sh Sample Outputs: Enter a password : LinuxAdmin Password verified. Let’s check what if we give wrong password - Run it again: ./check.sh Sample Output: Enter a pas