Sunday 20 September 2015

Installing and Using PUTTY Application

PUTTY:
Putty is very useful application that an be used to connect to Serial Ports and SSH(Secure Shell) and  network protocol to authenticate account credentials to the Open Shift Online servers for secure communication, and supports both RSA and DSA keys for SSH authentication. It’s mostly used on windows to connect to remote devices.

1) Download PUTTY Form the official website.  www.putty.org



 2) Save the Puty.exe file and Run Putty-installer.exe  


 3) Download PUTTY.EXE

4)   Select NEXT


 5) Select NEXT
 6) Here setup will install putty into the folder 

 7) The installer will prompt you for a Start Menu folder in which to create short cuts.



 8) Select "Create a desktop icon for PuTTY", and select "Next".

9) Select "Install" after you have done .



10) Select "Finish" the installer will by default open Putty’s Read me file.

Tuesday 15 September 2015

Basic Commands for Linux


make directories---mkdir
mkdir [OPTION][DIRECTORY]
-p   :parents  no error if existing, make parent directories as needed
-v   :verbose  print a message for each created directory
-help:this help and exit
-version:information and exit

cd - change directories
mv- change the name of a directory
pwd - print working directory
rmdir - Remove an existing directory
rm -r
chown - change file owner and group
chown [OPTION] OWNER[:[GROUP]] FILE
chown [OPTION] :GROUP FILE
chown [OPTION] --reference=RFILE FILE
chmod - change file access permissions
chmod [-r] permissions filenames
u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.
Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:
400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
ls - Short listing of directory contents
-a        list hidden files
-d        list the name of the current directory
-F        show directories with a trailing '/'
            executable files with a trailing '*'
-g        show group ownership of file in long listing
-i        print the inode number of each file
-l        long listing giving details about files  and directories
-R        list all subdirectories encountered
-t        sort by time modified instead of name
cp - Copy files
cp  myfile yourfile
cp -i myfile yourfile
cp -i /data/myfile
cp -dpr srcdir destdir
ln - Creates a symbolic link to a file.
ln -s test symlink
locate - A fast database driven file locator.
slocate -u
more - Allows file contents or piped output to be sent to the screen one page at a time
less - Opposite of the more command
cat - Sends file contents to standard output. This is a way to list the contents of short files to the screen. It works well with piping.
whereis - Report all known instances of a command
wc - Print byte, word, and line counts
bg
bg jobs Places the current job (or, by using the alternative form, the specified jobs) in the background, suspending its execution so that a new user prompt appears immediately. Use the jobs command to discover the identities of background jobs.
cal month year - Prints a calendar for the specified month of the specified year.
cat files - Prints the contents of the specified files.
clear - Clears the terminal screen.
cmp file1 file2 - Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs.
diff file1 file2 - Compares two files, reporting all discrepancies. Similar to the cmp command, though the output format differs.
dmesg - Prints the messages resulting from the most recent system boot.
fg
fg jobs - Brings the current job (or the specified jobs) to the foreground.
file files - Determines and prints a description of the type of each specified file.
find path -name pattern -print
Searches the specified path for files with names matching the specified pattern (usually enclosed in single quotes) and prints their names. The find command has many other arguments and functions; see the online documentation.
finger users - Prints descriptions of the specified users.
free  - Displays the amount of used and free system memory.
ftp hostname
 ispell files - Checks the spelling of the contents of the specified files.
killall program
killall - signal program
Kills all processes that are instances of the specified program or sends the specified signal to all processes that are instances of the specified program.
mail - Launches a simple mail client that permits sending and receiving email messages.
man title
man section title - Prints the specified man page.
ping host - Sends an echo request via TCP/IP to the specified host. A response confirms that the host is operational.
reboot - Reboots the system (requires root privileges).
shutdown minutes
shutdown -r minutes
Shuts down the system after the specified number of minutes elapses (requires root privileges). The -r option causes the system to be rebooted once it has shut down.
sleep time - Causes the command interpreter to pause for the specified number of seconds.
sort files - Sorts the specified files. The command has many useful arguments; see the online documentation.
split file - Splits a file into several smaller files. The command has many arguments; see the online documentation
sync - Completes all pending input/output operations (requires root privileges).
telnet host - Opens a login session on the specified host.
top - Prints a display of system processes that's continually updated until the user presses the q key.
traceroute host - Uses echo requests to determine and print a network path to the host.
uptime - Prints the system uptime.
w - Prints the current system users.
wall - Prints a message to each user except those who've disabled message reception. Type Ctrl-D to end the message.