gk
Wednesday, January 19, 2011
Saturday, January 15, 2011
Shell
In Linux Shell means Command interpreter
Que. How to find out current shell name?
Ans. # cat /etc/shells (for all shell in system)
# echo $SHELL (for current shell name)
Basic command line editing:
Que. How to find out current shell name?
Ans. # cat /etc/shells (for all shell in system)
# echo $SHELL (for current shell name)
Basic command line editing:
- ctrl+l (clear the screen)
- ctrl+u (clear the line)
- ctrl+r (search through previously used commands)
- ctrl+c (cancel currently running command)
- Tab (auto complete)
- Up and Down arrow keys (recall command that previously used)
- try ESC and .(period)
Monday, January 3, 2011
Basic Hacking skills
- Learn how to program.
- Get one of the open-source project and learn to use and run it.
- Learn how to use the world wide web and write HTML.
- If you don't have functional English, leaarn it.
Saturday, January 1, 2011
Hello World compared in C# and IronPython
A small Hello World app in C#
using System;
class Hello
{
private string _msg;
public Hello()
{
_msg = "Hello World";
}
public Hello(string msg)
{
_msg = msg;
}
public void SayHello()
{
Console.WriteLine(
_msg);
}
public static void Main()
{
Hello app = new Hello();
app.SayHello();
}
}
Equivalent in IronPython
class Hello(object):
def __init__(self, msg='hello world'):
self.msg = msg
def SayHello(self):
print self.msg
app = Hello ()
app.SayHello()
Subscribe to:
Posts (Atom)