All posts by Ramesh Jha

Learning bash-commands- tutorial-2

An easy way to learn linux commands-tutorial-2
1. pwd command : To see the current working directory use pwd command.
SYNTAX : pwd
rk10@rk-desktop:~$ pwd
#For more information on cd command just type help cd ,in your bash shell.
2. cp command : It is used for copying the files from one directory to another.Here I am copying the file xyz.txt from home directory to the desktop.
SYNTAX : cp filename destination
rk10@rk-desktop:~/Desktop/test$ ls            #test directory is empty at this time
rk10@rk-desktop:~/Desktop/test$ cd ../
rk10@rk-desktop:~/Desktop$ cp xyz.txt /home/rk10/Desktop/test
rk10@rk-desktop:~/Desktop$ cd test
rk10@rk-desktop:~/Desktop/test$ ls
3. ls command : It is used to display the files and sub directories in the current working directory.
rk10@rk-desktop:~/Desktop/security$ ls
black_listed_IP  firestarter-events.txt  my_id
dns1.txt                netstat_1.txt
4. rm command : It is used to delete the file,but note that the files will be deleted permanently.
SYNTAX : rm filename
rk10@rk-desktop:~/Desktop/test$ ls
rk10@rk-desktop:~/Desktop/test$ rm abc.txt
rk10@rk-desktop:~/Desktop/test$ ls

Easy Way to learn bash commands-tutorial-1|Linux-Ubuntu CLI

Bash comes installed with the most of the linux distribution(With MAC-OS also) such as in Ubuntu. The aim of this tutorial to explain about the need and importance about the bash commands followed by the practical use of basic commands.

These days there are so many excellent charming and cool graphical user interfaces are available So you may think that learning about the bash commands and command line interface are unnecessary, probably you like the abstraction created by graphical interfaces and you are able to do the tasks by simply clicking the mouse.

But in the case if you want to know the background explaination or the communication involved between your application softwares and operating system, learning bash commands is not a bad idea(Actually it’s a GREAT IDEA). As it allows you to pass and execute commands to kernel of your linux machine and hence it finish the task in less time as compared to GUI. In linux based distributions such as ubuntu, basics of bash commands is necessary to perform some administrative task. Hence if you are going to be an computer programmer or network security expert or you want to administrate your computer well,then you can enjoy learning bash commands.In fact it is easy and interesting…

Some basic commands in bash shell :

1. CD command :It is used for changing the working directory in the bash shell.Suppose you are working in home directory and you want to change it to Desktop then you can use the cd command as- SYNTAX : cd directory(to which you want to go)

rk10@rk-desktop:~$ cd Desktop               #here I have used relative path,you can use full path if the selected sub directory/or other destination  is not available in that directory.

2. MAN Command
To access the Manual.
man cd

How To Learn Ubuntu-Linux Commands

Learning bash/zsh/ssh shell commands is not so complex and boring as it seems.In fact when you will start learning bash shell commands then its initial steps may  looks ugly but when you will have some basic idea about commands then afterwards you will feel a keen interest in learning further commands.Working on command  line  interface is really have its own taste and significance even though in high graphical environment era.In linux ubuntu, if you want to do some admininstrative  task which is related to the information contained within the system files,then you can’t do that directly;the reason behind this is- all the users of the linux have some restricted access by default.

If you want to finish that administrative task then you will have to login as a root user,which is really not so simple in linux because of the linux ubuntu security policy(That’s why linux operating system is secure by default in compare to other operating system like windows where a five year child can corrupt the whole system by deleting a system file).In other ways you can finish such administrative task by using command line in few minutes,by gaining  the temperory root power using sudo command followed by the user account password.

To learn the basic/advanced linux-ubuntu bash shell commands simply follow these basic steps :

STEP1 : Learn some simple bash-commands then Open the bash/terminal from Application=>accessories=>terminal or use CTRL+ALT+F2 to open a virtual console(Return  to the graphical interface by pressing CTRL+ALT+F7).

STEP2 : For more details on any command just type help command_name(about which you want to know more),bash itself is a great place to learn more about commands and their parameters, or use the man command to access the bash manual.

STEP3 : Try to use the commands frequently that you learned.

STEP4 : That’s all ! Enjoy learning about the commands.. and for more info and tutorial on the ubuntu-bash commands visit the next posts,which contains

Start Learning Basics Linux Commands

Programming Environment in Ubuntu-Linux

Ubuntu – a GNU/Linux distribution, comes with the default text editor “gedit” ( it is the default text editor in GNOME desktop package and ubuntu comes with GNOME desktop by default), which is an excellent source code editor. Gedit supports syntax coloring/highlighting/.. and it catches the proper coloring with the extension.Hence you should give the proper extension to its file name for the particular programming languages(otherwise its o.k if you won’t give any extension).There are many color schemes available for gedit syntax coloring feature.

Gedit is fit for creating and editing simple & small programs for all kinds of code editing, but for large programming projects it is better is not a bad idea to use any Integrated Development Environment (IDE).There are many IDE’s available for Ubuntu. Some of them are –

1. KDevelop : Latest verson 3.9.95(using KDE 4.3.2) : It is an open source IDE, which is designed for linux,windows,mac OS x,Free BSD,Solaris.It is widely used  for c++,Qt and other programming languages.Download it.

2. Eclipse : It is a good IDE for developing plugins ,database applications,java programming ..etc.It is available for all major platforms.Download it.

3. Bluefish : It is an excellent editor for web designers and web programmers. It is used  for editing HTML,DHTML,PHP,SQl..etc. but mainly focused on editing dynamic and interactive websites.It is an opensource developement project and comes under GPL license. Download it.

4.Anjuta : It is a good IDE for software developement because it has features like advanced programming facilities(+Project management),interactive debugger,source editor,application wizard,GUI designer,profiler etc.Due to its simple and usable interface it is recommended for efficient developement.Download it.

5 Netbeans : An open source and free IDE for software developers.It contains all the tools required to create web and mobile applications,enterprise,professional desktop with JAVA,C/C++,PHP,Ruby and Groovy.It is very easy to install and available for all the major platforms including Linux,Windows,Mac OS X and Solaris. Download it.

Update: It’s an old post, so you might want to checkout the updated Version of this Post – IDE for Ubuntu

Who is Hacker!

First you should understand the correct meaning of the term because,the term ‘hacker’ is being misused globally from the past 10 years.Initially the term hacker referred to those computer expert (from MIT) e.g Richard Stallman, who did some thing special in the field of computer science in the sense of improvement,those who were ready to learn more about the computers,tried to increase the efficiency of the computer programs.

After some years most kiddies(those who use some hacking tools but don’t know actually they work) also started calling himself as a hacker.The media has also an important role in misusing the term hacker world wide very ignorantly. Hence these days some people uses the term ethical before the term hacker in order to explore the positive sense,although it is not necessary if you know the actual meaning of the term hacker.So the real hacker never delete the others computer files or other negative activities.Hence hack the computers but never do something which can harm to anyone .Always do something which can be beneficial for the security systems or economy or your country or simply for humans.

“Hacking Means Exploring the Limits of What’s Possible” – So if you like to tweak things either just for fun or learning (but not harming some one for personal gain), then you’re a Hacker!